BBot - The best bot of the world
How to use NPC.Trade.Money() and Self.Balance() ? - 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: How to use NPC.Trade.Money() and Self.Balance() ? (/thread-17445.html)



How to use NPC.Trade.Money() and Self.Balance() ? - spodniarz - 02-12-2015

Im got problem, i dont know how to use that macro

Quote:Self.Balance()
- The player current balance gathered from NPC Trade window

Quote:NPC.Trade.Money()
- The player current money gathered from NPC Trade window


Somebody can explain to me and write ready scripts? I dont know how to write that script, tired to make it ... x.x


Thanks Smile


@edit
After time im got that

Quote:balance:=Self.Balance()

NPC.Say(balance)
Macro.Wait(2000)
NPC.Say(transfer)
Macro.Wait(2000)
NPC.Say(!balance!)
Macro.Wait(2000)
NPC.Say(Character Name)
Macro.Wait(2000)
NPC.Say(yes)

And now how to transfer only 80% money? or 90? idk how to do this x.x


RE: How to use NPC.Trade.Money() and Self.Balance() ? - damiansnk - 02-12-2015

u can add how many money need for potions and transfer rest