• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • 脚本制作-近战如何远距离选中目标,不攻击,然后使用任务技能

    Discussion in 'Honorbuddy 援助区' started by wangkaifang, Oct 20, 2016.

    1. wangkaifang

      wangkaifang New Member

      Joined:
      Sep 18, 2016
      Messages:
      1
      Likes Received:
      0
      Trophy Points:
      0
      以苏拉玛世界任务《枯法之争:梅瑞戴尔和琥珀谷》为例
      如何在远距离选中枯法者,然后使用技能?
      以下是我的代码,但是感觉不好;求教求教!!!
      <While Condition="HasQuest(43807)&amp;&amp; !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>
       
    2. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      这个可以实现就可以了,我觉得这个不错了
       

    Share This Page