pixonszn
08-28-2013, 16:10
Hello everyone! I have a little problem with health potion buying in Venore :(
Basically, I made a script to do so, but my bot char don't want to buy any health potions :(
fastExiva _healthpotionid = 0A 01
fastExiva _healthpot = 5
fastExiva _idcost = 45
fastExiva _health = $numericalexp:{$_healthpot$}-{$countitems:{$_healthpotionid$}$}$
fastExiva _hpcost = $numericalexp:{$_health$}*{$_idcost$}$
onGMpause
:buypotion
sayMessage hi
waitX 2
sayInTrade withdraw $_hpcost$
waitX 2
sayInTrade yes
waitX 1
move 33007,32060,6
move 33001,32073,6
move 32971,32085,6
sayMessage hi
waitX 2
sayInTrade trade
waitX 2
sayMessage exiva > 07 00 7A $_healthpotionid$ 00 $numbertohex2:{$numericalexp:{$_health$}$}$ 00
waitX 2
closeConnection
My bot char suppose to withdraw money from the bank, go to potion store, say "hi", "trade", buy 1-5 potions (depends how many potions do I need) and log out. It gets needed money, goes to store, starts trading and logs out, but when I log in, the potions aren't bought. I have no idea what is wrong. It would be nice if someone could help me :)
Basically, I made a script to do so, but my bot char don't want to buy any health potions :(
fastExiva _healthpotionid = 0A 01
fastExiva _healthpot = 5
fastExiva _idcost = 45
fastExiva _health = $numericalexp:{$_healthpot$}-{$countitems:{$_healthpotionid$}$}$
fastExiva _hpcost = $numericalexp:{$_health$}*{$_idcost$}$
onGMpause
:buypotion
sayMessage hi
waitX 2
sayInTrade withdraw $_hpcost$
waitX 2
sayInTrade yes
waitX 1
move 33007,32060,6
move 33001,32073,6
move 32971,32085,6
sayMessage hi
waitX 2
sayInTrade trade
waitX 2
sayMessage exiva > 07 00 7A $_healthpotionid$ 00 $numbertohex2:{$numericalexp:{$_health$}$}$ 00
waitX 2
closeConnection
My bot char suppose to withdraw money from the bank, go to potion store, say "hi", "trade", buy 1-5 potions (depends how many potions do I need) and log out. It gets needed money, goes to store, starts trading and logs out, but when I log in, the potions aren't bought. I have no idea what is wrong. It would be nice if someone could help me :)