以苏拉玛世界任务《枯法之争:梅瑞戴尔和琥珀谷》为例 如何在远距离选中枯法者,然后使用技能? 以下是我的代码,但是感觉不好;求教求教!!! <While Condition="HasQuest(43807)&& !IsQuestCompleted(43807)"> <CustomBehavior File="Hooks\DoWhen" ActivityName="ReturningZombies" AllowUseDuringCombat="true" LogExecution="false" UseAtInterval="500" > <CustomBehavior File="RunCode"><![CDATA[ if (Me.CurrentTarget != null && Me.CurrentTarget.Entry == 98555) { Lua.DoString("ExtraActionButton1:Click();"); await Coroutine.Sleep(2000); SpellManager.ClickRemoteLocation(Me.CurrentTarget.Location); } ]]> </CustomBehavior> </CustomBehavior> <CustomBehavior File="InteractWith" MobId="98555" Range="25" CollectionDistance="25" NumOfTimes="1"> <HuntingGrounds> <Hotspot X="1551.905" Y="4664.612" Z="148.0817" /> <Hotspot X="1502.666" Y="4731.902" Z="143.8503" /> <Hotspot X="1373.847" Y="4692.781" Z="129.6458" /> </HuntingGrounds> </CustomBehavior> </While>