所有HB API都在开发文档里 https://www.thebuddyforum.com/honor...orum/144971-honorbuddy-api-documentation.html 脚本里还会用到HB目录下Quest Behaviors文件夹里的所有文件,具体参数你可以打开里面的文件自己查看
好的,感谢,那我简单说下我的情况。我想写一个脚本,用任务模式或者钓鱼模式,在指定地点钓鱼,当背包满了以后,召唤达拉然大象的修理,卖掉背包里的东西,我脚本写了一半,每次用钓鱼模式执行,包满了就没有动作了。我发到下面,请您帮我看一下。 <?xml version="1.0" encoding="UTF-8"?> <HBProfile> <Name>风暴峡湾稀有鱼</Name> <MinDurability>0.4</MinDurability> <MinFreeBagSlots>5</MinFreeBagSlots> <SellGrey>True</SellGrey> <SellWhite>true</SellWhite> <SellGreen>False</SellGreen> <SellBlue>False</SellBlue> <Blackspots> </Blackspots> <ProtectedItems> <Item Name = "炉石" Entry = "6948"/> <Item Name = "要塞炉石" Entry = "110560"/> <Item Name = "达拉然炉石" Entry = "45912"/> <Item Name = "驼鹿角鱼钩" Entry = "133713"/> <Item Name = "古代维库指环" Entry = "133715"/> <Item Name = "浸水的龙鳞" Entry = "133716"/> <Item Name = "奥术鱼饵" Entry = "139175"/> <Item Name = "雷铸爪勾枪" Entry = "138111"/> </ProtectedItems> <Vendors> <Vendor Entry="32639" Name="Gnimo" X="2799.459" Y="2546.379" Z="142.6669" Nav="Fly" Type="Repair"/> </Vendors> <Mailboxes> </Mailboxes> <Hotspots> <Hotspot X="2799.459" Y="2546.379" Z="142.6669" /> </Hotspots> <QuestOrder> <RunTo X="2799.459" Y="2546.379" Z="142.6669" /> <While Condition="(Me.GetSkill(Styx.SkillLine.Fishing).CurrentValue >= 1)"> </While> <If Condition="(Me.LowestDurabilityPercent <= 0.3) || (Me.FreeBagSlots <= 3)"> <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.Yellow, "【提醒】耐久不足或背包空间: 耐久度: " + Me.LowestDurabilityPercent);" /> <If Condition="SpellManager.CanCast(61425) || SpellManager.CanCast(61447) || SpellManager.CanCast(122708)" > <CustomBehavior File="Message" Text="【提醒】尝试使用大象或牦牛修理。" LogColor="Lime" /> <CustomBehavior File="ForceSetVendor" DoRepair="True" DoSell="True" /> <CustomBehavior File="WaitTimer" WaitTime="2000" /> <CustomBehavior File="ForcedDismount" /> </If> </If> <GrindUntil Nav="Run" Condition="Me.Level >= 111.0" /> </QuestOrder> </HBProfile>
你可以参考这个 https://www.thebuddyforum.com/honor...-horde-frostdeep-minnow-cavedweller-farm.html </QuestOrder>之间里要有<While Condition="true" >这样才可以一直循环
E大你好,根据这个脚本我写出来了,确实能用,但是还是无法实现背包满了之后召唤大象卖东西,如何在钓鱼 <CustomBehavior File="FlyTo" DestName="FishingShack" X="2799.459" Y="2546.379" Z="142.6669" /> <CustomBehavior File="MrFishit" X="2799.459" Y="2546.379" Z="142.6669" CollectItemId="133907" MoveToPool="true" UseFishingGear="true" Vendors="true" Me.FreeBagSlots = "2" /> 这段代码之间加入一个背包空间判定啊?