• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • 任务脚本回城问题,求解!

    Discussion in 'Honorbuddy 援助区' started by xanigdigd, Nov 15, 2013.

    1. xanigdigd

      xanigdigd Member

      Joined:
      Sep 11, 2012
      Messages:
      44
      Likes Received:
      0
      Trophy Points:
      6

      我制作了一个任务脚本,我想把他制作成背包满了或装备损坏了飞行回城的脚本.
      但是出现一个问题.如果在背包满了或装备损坏这时读取脚本,他会飞行回城, 然后如果在打怪过程中背包满了或装备损坏了,他只会自己骑陆地坐骑回城,而且修理售卖的npc还不是我设置的那个!
       
    2. claud321

      claud321 Member

      Joined:
      Sep 15, 2013
      Messages:
      67
      Likes Received:
      1
      Trophy Points:
      6
      下面 对于整个脚本设定的回城修理参数 设定较低的数值
      【<MinDurability>0.1</MinDurability>】
      【<MinFreeBagSlots>1</MinFreeBagSlots>】

      脚本运行一个循环之后,检查背包空间 和装备耐久的时候设定较高的数值,以保证在下一个循环再运行过程中不会触发上面所设定的数值. (耐久设定为40%,背包剩余空间设定为25格~30格)
      【<If Condition="(Me.LowestDurabilityPercent &lt; 0.4) || (Me.FreeBagSlots &lt; 25)" >】
       
    3. xanigdigd

      xanigdigd Member

      Joined:
      Sep 11, 2012
      Messages:
      44
      Likes Received:
      0
      Trophy Points:
      6
      <HBProfile>
      <Name>恐惧废土</Name>
      <MinLevel>1</MinLevel>
      <MaxLevel>144</MaxLevel>
      <Factions>99999</Factions>

      <MailGrey>false</MailGrey>
      <MailWhite>true</MailWhite>
      <MailGreen>true</MailGreen>
      <MailBlue>true</MailBlue>
      <MailPurple>true</MailPurple>

      <SellGrey>true</SellGrey>
      <SellWhite>false</SellWhite>
      <SellGreen>false</SellGreen>
      <SellBlue>false</SellBlue>
      <SellPurple>false</SellPurple>
      <Vendors>

      </Vendors>

      <Mailboxes>
      </Mailboxes>



      <QuestOrder>

      <CustomBehavior File="UserSettings" FindVendorsAutomatically="False" UseRandomMount="False" FindMountAutomatically="False" />

      <While Condition="Me.Level &gt; 1" >

      <If Condition="(Me.FreeBagSlots &lt; 10) || (Me.LowestDurabilityPercent &lt; 0.5)" > <!-- Will go vendor/repair if needed -->

      <CustomBehavior File="Message" Text="包既将满,装备快有损坏了,既将回城修理" LogColor="Yellow" />

      <CustomBehavior File="Misc\RunLua" Lua="UseItemByName(6948)" WaitTime="10000" />
      <CustomBehavior File="WaitTimer" WaitTime="10000" GoalText="Waiting for hearth*{TimeRemaining}" />
      <CustomBehavior File="Message" Text="Succesfully hearthed, moving to repair vendor." LogColor="Yellow" />

      <CustomBehavior File="FlyTo" X="147.875" Y="3194.917" Z="214.7608" />

      <SetVendor>
      <Vendors>
      <Vendor Name="琥珀匠师齐克" Entry="64599" Type="Repair" X="147.875" Y="3194.917" Z="214.7608" />
      </Vendors>
      </SetVendor>
      <CustomBehavior File="Message" Text="Repairing and selling all my grey items." LogColor="Yellow" />
      <CustomBehavior File="WaitTimer" WaitTime="10000" />
      <RunTo X="269.0798" Y="3152.222" Z="214.5012" />

      <CustomBehavior File="Message" Text="Moving to the mailbox near the Inn." LogColor="Yellow" />
      <SetMailbox>
      <Mailboxes>
      <Mailbox X="269.0798" Y="3152.222" Z="214.5012" />
      </Mailboxes>
      </SetMailbox>

      <CustomBehavior File="ForceSetVendor" DoMail="True" DoRepair="True" DoSell="True" DoTrain="False" />

      <CustomBehavior File="FlyTo" X="147.875" Y="3194.917" Z="214.7611" />
      <CustomBehavior File="ForcedDismount" />
      <CustomBehavior File="ForceSetVendor" DoSell="True" DoRepair="True" DoTrain="False" DoMail="True" />

      </If>


      <CustomBehavior File="FlyTo" X="-1846.523" Y="4574.153" Z="42.8905" />
      <CustomBehavior File="ForcedDismount" />
      <If Condition="!Me.HasAura(&quot;Stealth&quot;)">
      <CustomBehavior File="RunMacro" Macro="/cast 潜行" />


      </If>
      <CustomBehavior File="RunMacro" Macro="/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1836.897" Y="4572.478" Z="40.03889" />
      <RunTo X="-1820.089" Y="4574.372" Z="36.16377" />
      <RunTo X="-1797.064" Y="4575.006" Z="34.11617" />
      <RunTo X="-1790.297" Y="4575.682" Z="33.49314" />
      <CustomBehavior File="RunMacro" Macro="/targetenemy\n/cast 搜索\n/cast 速度爆发" NumOfTimes="4" />
      <RunTo X="-1767.342" Y="4554.982" Z="35.88469" />
      <CustomBehavior File="RunMacro" Macro="/targetenemy\n/cast 搜索\n/cast 速度爆发" NumOfTimes="3" />
      <RunTo X="-1754.981" Y="4557.175" Z="32.9101" />
      <CustomBehavior File="RunMacro" Macro="/targetenemy\n/cast 搜索\n/cast 速度爆发" NumOfTimes="2" />
      <RunTo X="-1739.8" Y="4557.047" Z="35.73825" />
      <CustomBehavior File="RunMacro" Macro="/targetenemy\n/cast 搜索\n/cast 速度爆发" NumOfTimes="3" />
      <CustomBehavior File="RunMacro" Macro="/cast 疾跑" NumOfTimes="1" />
      <RunTo X="-1759.281" Y="4559.116" Z="34.28712" />
      <RunTo X="-1780.157" Y="4572.766" Z="34.12199" />
      <RunTo X="-1800.173" Y="4576.928" Z="35.60217" />
      <RunTo X="-1828.048" Y="4573.964" Z="37.25922" />
      <RunTo X="-1854.664" Y="4571.136" Z="43.26624" />

      <CustomBehavior File="FlyTo" X="-1321.347" Y="4128.521" Z="43.28828" />
      <CustomBehavior File="ForcedDismount" />
      <If Condition="!Me.HasAura(&quot;Stealth&quot;)">
      <CustomBehavior File="RunMacro" Macro="/cast 潜行" />
      </If>

      <RunTo X="-1279.894" Y="4106.229" Z="58.04371" />
      <RunTo X="-1274.877" Y="4106.574" Z="59.92048" />
      <CustomBehavior File="RunMacro" Macro="/targetenemy\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1259.632" Y="4108.597" Z="56.05082" />
      <RunTo X="-1259.423" Y="4097.559" Z="53.85752" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1254.529" Y="4083.895" Z="50.42051" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1231.975" Y="4075.193" Z="53.17125" />
      <RunTo X="-1220.563" Y="4062.968" Z="52.82507" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <CustomBehavior File="RunMacro" Macro="/cast 暗遁"/>
      <RunTo X="-1197.536" Y="4053.745" Z="53.35573" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1177.023" Y="4050.717" Z="54.05685" />
      <RunTo X="-1159.648" Y="4068.135" Z="44.73203" />
      <RunTo X="-1151.035" Y="4056.007" Z="32.71432" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1134.453" Y="4066.525" Z="23.76022" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1114.243" Y="4077.75" Z="27.85802" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1106.682" Y="4081.873" Z="29.22857" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1107.587" Y="4095.712" Z="31.34867" />
      <RunTo X="-1105.618" Y="4121.276" Z="36.89817" />
      <RunTo X="-1099.708" Y="4128.862" Z="35.14733" />
      <CustomBehavior File="RunMacro" Macro="/cast 疾跑" NumOfTimes="1" />
      <RunTo X="-1081.115" Y="4136.333" Z="27.9675" />
      <RunTo X="-1080.287" Y="4142.902" Z="28.53418" />
      <CustomBehavior File="RunMacro" Macro="/targetenemy\n/cast 搜索\n/cast 速度爆发" NumOfTimes="3" />
      <RunTo X="-1081.676" Y="4133.812" Z="27.49154" />
      <RunTo X="-1094.134" Y="4124.467" Z="27.70517" />
      <RunTo X="-1091.394" Y="4111.612" Z="19.44817" />
      <RunTo X="-1065.798" Y="4133.744" Z="5.451208" />
      <CustomBehavior File="RunMacro" Macro="/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1050.478" Y="4163.436" Z="4.008311" />
      <RunTo X="-1064.417" Y="4199.629" Z="6.414347" />
      <RunTo X="-1084.53" Y="4221.789" Z="14.05448" />
      <RunTo X="-1084.408" Y="4233.591" Z="12.53265" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1076.553" Y="4255.297" Z="11.23" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1070.734" Y="4280.989" Z="10.41296" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1076.771" Y="4278.266" Z="12.21803" />
      <CustomBehavior File="RunMacro" Macro="/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1104.182" Y="4279.849" Z="22.36307" />
      <RunTo X="-1122.238" Y="4279" Z="28.49854" />
      <RunTo X="-1135.216" Y="4278.908" Z="33.82925" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1135.539" Y="4265.062" Z="32.80275" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1138.243" Y="4256.464" Z="36.25995" />
      <RunTo X="-1184.592" Y="4241.289" Z="59.00594" />
      <CustomBehavior File="RunMacro" Macro="/targetenemy\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1183.487" Y="4248.731" Z="57.04451" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1204.516" Y="4247.399" Z="60.14597" />
      <CustomBehavior File="RunMacro" Macro="/targetenemy\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1204.997" Y="4231.835" Z="60.62907" />
      <RunTo X="-1223.989" Y="4234.213" Z="60.55951" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1243.505" Y="4232.708" Z="58.12051" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1242.006" Y="4220.277" Z="58.28801" />
      <RunTo X="-1253.174" Y="4224.513" Z="58.17258" />
      <RunTo X="-1257.129" Y="4219.267" Z="58.16817" />
      <CustomBehavior File="RunMacro" Macro="/targetenemy\n/cast 搜索\n/cast 速度爆发" NumOfTimes="2" />
      <RunTo X="-1277.914" Y="4220.111" Z="57.49617" />
      <CustomBehavior File="RunMacro" Macro="/targetenemy\n/cast 搜索\n/cast 速度爆发" NumOfTimes="2" />
      <RunTo X="-1274.714" Y="4253.117" Z="58.84073" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1262.207" Y="4255.023" Z="58.79419" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1248.179" Y="4258.868" Z="58.2503" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1243.668" Y="4272.127" Z="59.72231" />
      <CustomBehavior File="RunMacro" Macro="/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1245.073" Y="4285.894" Z="65.03063" />
      <RunTo X="-1249.548" Y="4309.395" Z="76.33516" />
      <RunTo X="-1254.82" Y="4325.59" Z="81.65792" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克操纵者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1251.632" Y="4334.799" Z="82.66978" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1241.474" Y="4342.249" Z="82.86209" />
      <CustomBehavior File="RunMacro" Macro="/target 扎尼提克穿刺者\n/cast 闷棍\n/cast 搜索\n/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1242.157" Y="4341.796" Z="82.85889" />
      <CustomBehavior File="RunMacro" Macro="/cast 速度爆发" NumOfTimes="1" />
      <RunTo X="-1224.137" Y="4328.453" Z="83.32822" />
      <RunTo X="-1218.938" Y="4311.083" Z="77.51928" />
      <RunTo X="-1206.589" Y="4293.01" Z="71.36487" />

      </While>
      </QuestOrder>
      </HBProfile>
       
    4. xanigdigd

      xanigdigd Member

      Joined:
      Sep 11, 2012
      Messages:
      44
      Likes Received:
      0
      Trophy Points:
      6
      求给看一下! 上面是我制作的脚本!
      我想把他制作成背包满了或装备损坏了飞行回城的脚本.
      但是出现一个问题.如果在背包满了或装备损坏这时读取脚本,他会飞行回城, 然后如果在打怪过程中背包满了或装备损坏了,他只会自己骑陆地坐骑回城,而且修理售卖的npc还不是我设置 的那个!

      应该哪里要修改一下才会正常!上面我采用的是炉石回城,只有第一把会炉石,然后后面就不会了,只会陆地坐骑回去!
       
    5. claud321

      claud321 Member

      Joined:
      Sep 15, 2013
      Messages:
      67
      Likes Received:
      1
      Trophy Points:
      6

    Share This Page