BBot - The best bot of the world

Full Version: Amunition reffil
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.