BBot - The best bot of the world
Amunition reffil - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: Amunition reffil (/thread-18820.html)



Amunition reffil - skie - 11-22-2015

Hello,
i want to create script for paladin but i have problem with refil.
Is there any option to bot buy amunition (spear) for MAX cap - 30.??
script will go too bank, withdraw money for spear - 30 cap and than he will buy spear.


RE: Amunition reffil - Toni Ballador - 11-24-2015

Yeah, that's possible.
I'm not at home so I'm writing from my smartphone so I will tell you how to do it

I would create a manual macro like this:


CAP:=self.capacity() (creates a name for the current capacity)
CAP30:=VarSub( !CAP!, 30) (your capacity -30)
SPEARAMOUNT:=VarDiv( !CAP30!, 20) (your capacity -30 divided per 20) in case of royals put 25

Now when you use the trade features "bank withdraw" and "buy" you have to write !SPEARAMOUNT! In the amount of spears you want the bot to buy.


I repeat: Im not at home so I probably did some error, but you can try to solve it. It's good to train your scripting skills Wink

If you finally don't manage to do it I will create and test for you.