Can I force it to mail items everytime it goes to vendor? For halls of lightning profile it goes to vendor in the camp which has no mailbox, so it piles up tons of frostweave in bags and doesnt seem to go to a mailbox.
The Halls of Lightning profile is designed so that it goes to the mailbox -
only if- you are under 10 bagslots -
after- selling at the vendor.
The reason why is, the vendor is directly outside of the instance, but the mailbox is about 3 minutes away from the instance.
If we had it go to the mailbox every time it goes to sell, then it would be wasting a lot of time going to the mailbox when there's only a 1 to 2 items that actually need to be mailed.
With this, the bot will 'pile up' on mailable items, so when it goes to mail, it'll be worth the time.
It's just a little 'RPH' optimization technique that we use.
If you want it to go to the mailbox every time it sells, then all you'd have to do is:
- Open the profile with a notepad or code editor.
- Use 'CTRL+F' to find these words: <!-- Force town sell. -->
- After you find those words, you will see this under it: If Condition="(Me.FreeBagSlots <= 10)"
That is a
If code.
That first
If code is the detection code that tells the bot to go to the vendor when you're at or under 10 bagslots.
If you look a little bit further down a code you will see another
If code that is exactly the same.
This is the second code that tells the bot to mail if you are at or under 10 bagslots -
after- selling.
To make it go to the mailbox every time, all you would need to do is delete the entire first section of
If code.
PHP:
<!-- Force town sell. -->
<If Condition="(Me.FreeBagSlots <= 10)" >
<CustomBehavior File="Message" Text="Moving to Sell, Repair, Mail" LogColor="Lime" />
<CustomBehavior File="FlyTo" X="8911.244" Y="-1288.584" Z="1063.501" />
<CustomBehavior File="FlyTo" X="8897.434" Y="-1347.713" Z="1031.36" />
<CustomBehavior File="WaitTimer" WaitTime="1000" />
<CustomBehavior File="RunMacro" Macro="/dismount" />
<RunTo X="8891.013" Y="-1359.756" Z="1033.76" />
<SetVendor>
<Vendors>
<Vendor Name="Chester Copperpot" Entry="32477" Type="Food" X="8893.612" Y="-1361.069" Z="1033.906" />
</Vendors>
</SetVendor>
<CustomBehavior File="UserSettings" FindVendorsAutomatically="False" LootMobs="True" PullDistance="1" KillBetweenHotspots="True" LogoutForInactivity="False" />
<CustomBehavior File="ForceSetVendor" DoSell="True" DoRepair="True" DoMail="False" />
<CustomBehavior File="WaitTimer" WaitTime="1000" />
<RunTo X="8900.253" Y="-1344.676" Z="1029.835" />
<ClearVendor />
After you delete all of that, scroll all the way to the '
very' bottom of the code, and delete ONE of the
</If> codes.