PB Warning: Custom ActionFish()
Compile Error :
It would be great if it will also unlock the baracks you get at the beginning but where you need to do a quest chain for![]()
Gusy, there are great news! I FOUND A WAY TO INTERACT WITH BOXES WITHOUT FUCKING ID'S.
Professionbuddy's profile will remove a lot of problems!
I will post new profile this night.
Gusy, there are great news! I FOUND A WAY TO INTERACT WITH BOXES WITHOUT FUCKING ID'S.
Professionbuddy's profile will remove a lot of problems!
I will post new profile this night.
quick question, when running in mine, with a toon that already has mining, do you turn off mining in HB setting or leave it on? and what about herbalist?
<If Condition="(GetItemCount(114781) >= 10)" >
<CustomBehavior File="TargetAndMoveToMob" MobId="84248" WaitForNpcs="True" MoveWithinMaxRangeOfMob="5" IgnoreLoSToTarget="True" />
<CustomBehavior File="InteractWith" MobId="84248" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="40"/>
<!-- While I have 10 Lumber -->
<While Condition="(GetItemCount(114781) >= 10)" >
<CustomBehavior File="Misc\RunLua" Lua="C_Garrison.RequestShipmentCreation()" NumOfTimes="1" WaitTime="1000" />
</While>
</If>
<If Condition="(ObjectManager.GetObjectsOfType<WoWGameObject>().Any(u => (u.Entry == 237027) && u.Distance <= 50))" >
<CustomBehavior File="InteractWith" MobId="237027" NumOfTimes="4" WaitForNpcs="False" CollectionDistance="40" MovementBy="ClickToMoveOnly" />
<CustomBehavior File="TargetAndMoveToMob" MobId="87217" WaitForNpcs="True" MoveWithinMaxRangeOfMob="5" IgnoreLoSToTarget="True" />
<CustomBehavior File="InteractWith" MobId="87217" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="40"/>
<!-- While I have 30 Garrison Resources -->
<While Condition="(GetCurrencyAmount(824) >= 30)" >
<CustomBehavior File="Misc\RunLua" Lua="C_Garrison.RequestShipmentCreation()" NumOfTimes="1" WaitTime="1000" />
</While>
</If>
<!-- Work orders -->
<If Condition="(GetItemCount(116053) >= 5)" >
<CustomBehavior File="InteractWith" MobId="85514" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="40" MovementBy="ClickToMoveOnly" />
<!-- While I have 5 Draenic Stone -->
<While Condition="(GetItemCount(116053) >= 5)" >
<CustomBehavior File="Misc\RunLua" Lua="C_Garrison.RequestShipmentCreation()" NumOfTimes="1" WaitTime="1000" />
</While>
</If>
I have a suggestion to improve the "C_Garrison.RequestShipmentCreation()" Lua calls. Instead of having it run 21 times per building, I recommend using a while condition instead.
First off, I suggest replacing the Lumber Mill section's lines 121-125 with this:
HTML:<If Condition="(GetItemCount(114781) >= 10)" > <CustomBehavior File="TargetAndMoveToMob" MobId="84248" WaitForNpcs="True" MoveWithinMaxRangeOfMob="5" IgnoreLoSToTarget="True" /> <CustomBehavior File="InteractWith" MobId="84248" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="40"/> <!-- While I have 10 Lumber --> <While Condition="(GetItemCount(114781) >= 10)" > <CustomBehavior File="Misc\RunLua" Lua="C_Garrison.RequestShipmentCreation()" NumOfTimes="1" WaitTime="1000" /> </While> </If>
...and the Trade Post work order section, lines 128-133:
HTML:<If Condition="(ObjectManager.GetObjectsOfType<WoWGameObject>().Any(u => (u.Entry == 237027) && u.Distance <= 50))" > <CustomBehavior File="InteractWith" MobId="237027" NumOfTimes="4" WaitForNpcs="False" CollectionDistance="40" MovementBy="ClickToMoveOnly" /> <CustomBehavior File="TargetAndMoveToMob" MobId="87217" WaitForNpcs="True" MoveWithinMaxRangeOfMob="5" IgnoreLoSToTarget="True" /> <CustomBehavior File="InteractWith" MobId="87217" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="40"/> <!-- While I have 30 Garrison Resources --> <While Condition="(GetCurrencyAmount(824) >= 30)" > <CustomBehavior File="Misc\RunLua" Lua="C_Garrison.RequestShipmentCreation()" NumOfTimes="1" WaitTime="1000" /> </While> </If>
...and the Garden work order section, lines 196-200:
HTML:<!-- Work orders --> <If Condition="(GetItemCount(116053) >= 5)" > <CustomBehavior File="InteractWith" MobId="85514" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="40" MovementBy="ClickToMoveOnly" /> <!-- While I have 5 Draenic Stone --> <While Condition="(GetItemCount(116053) >= 5)" > <CustomBehavior File="Misc\RunLua" Lua="C_Garrison.RequestShipmentCreation()" NumOfTimes="1" WaitTime="1000" /> </While> </If>
...and you get the idea. Just set each "C_Garrison" Lua's NumOfTimes=1 and wrap it in a While statement with the respective item/currency amount. This should really speed up the profile and greatly reduce the amount of lua calls.
Thanks for this awesome profile!
<While Condition="(ObjectManager.GetObjectsOfType<WoWGameObject>().Any(u => (u.Entry == 232542 || u.Entry == 232544 || u.Entry == 232543 || u.Entry == 232545 || u.Entry == 232541) && u.Distance <= 15))" >
<!-- Вагонетка -->
<CustomBehavior File="InteractWith" MobId="232541" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="15" WaitTime="1000" MovementBy="ClickToMoveOnly" />
<CustomBehavior File="InteractWith" MobId="232542" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="15" WaitTime="1000" MovementBy="ClickToMoveOnly" />
<CustomBehavior File="InteractWith" MobId="232544" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="15" WaitTime="1000" MovementBy="ClickToMoveOnly" />
<CustomBehavior File="InteractWith" MobId="232543" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="15" WaitTime="1000" MovementBy="ClickToMoveOnly" />
<CustomBehavior File="InteractWith" MobId="232545" NumOfTimes="1" WaitForNpcs="False" CollectionDistance="15" WaitTime="1000" MovementBy="ClickToMoveOnly" />
<CustomBehavior File="MyCTM" DestName="Mine (Right from stairs)" X="5495.918" Y="4462.643" Z="89.02313" />
</While>