I trying do my script to do refill and deposit but he dont work very good, someone can find me error plis :P
Ok I fixed the potion buying part. I didnt test the part where it sells after you come back for no capacity, but all of the potion buying works. I simplified the code with it, hope thats fine. With as little as you're carrying for potions, you don't need to split it up into smaller portions. Hope it works for you. Also, when it buys potions, I took out the part where it puts the potion ID into the exiva command. It NEVER works for me and always comes across as an invalid packet format. I just change the ID when I change potions.
setChaoticMovesOFF
#By Saracene
setFollow
setFriendly
setMeleeKill cyclops drone
setMeleeKill cyclops smith
setMeleeKill cyclops
setMeleeKill bat
setPriority cyclops smith:+1
setPriority cyclops drone:+2
setLootOn
setLoot 55 OD
setLoot D7 0B
move 32449,32067,8
move 32407,32065,8
move 32421,32048,8
move 32434,32048,8
move 32453,32057,8
move 32463,32043,8
move 32452,32069,8
move 32447,32092,8
move 32438,32103,8
move 32452,32100,8
move 32461,32113,8
move 32478,32114,8
move 32478,32114,8
move 32476,32089,8
move 32492,32051,8
move 32485,32035,8
move 32475,32035,8
move 32487,32061,8
move 32478,32089,8
move 32450,32095,8
move 32454,32084,8
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:refil$
IfTrue ($mycap$#number<=#2500) Goto $nlineoflabel:depo$
gotoScriptLine 0
:depo
move 32451,32070,8
move 32449,32069,7
move 32433,32141,7
move 32368,32178,7
move 32362,32199,7
sayMessage hi
waitX 3
sayInTrade trade
waitX 3
sayInTrade exiva > 7B D6 0C 00 $numbertohex1:{$countitems:55 OD$}$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:bye$
move 32344,32229,7
sayMessage hi
waitX 3
sayInTrade deposit all
waitX 3
sayInTrade Yes
move 32344,32229,7
move 32368,32178,7
move 32433,32141,7
move 32449,32069,7
move 32451,32070,8
gotoScriptLine 0
:refil
fastExiva _manapotionid = 0C 01
# How many manas do you have?
fastExiva _manas = 50
# How much does 1 potion cost? MP = 50, SMP = 80, GMP = 120
fastExiva _idcost = 50
move 32451,32070,8
move 32449,32069,7
move 32433,32141,7
move 32368,32178,7
move 32344,32229,7
fastExiva _mana = $numericalexp:{$_manas$}-{$countitems:{$_manapotionid$}$}$
fastExiva _manacost = $numericalexp:{$_mana$}*{$_idcost$}$
saymessage hi
sayInTrade deposit all
sayInTrade yes
sayInTrade withdraw $_manacost$
sayInTrade yes
waitx 1
move 32400,32220,7
saymessage hi
waitx 2
sayInTrade trade
fastExiva > 96 04 $hex-tibiastr:vial$
waitx 2
fastExiva > 96 04 $hex-tibiastr:yes$
waitx 1
fastExiva > 96 04 $hex-tibiastr:yes$
fastExiva > 96 04 $hex-tibiastr:yes$
waitx 2
fastExiva > 96 04 $hex-tibiastr:trade$
waitx 2
sayMessage exiva > 7A 0C 01 00 $numbertohex1:{$_mana$}$ 00 00
waitx 1
move 32344,32229,7
move 32368,32178,7
move 32433,32141,7
move 32449,32069,7
move 32451,32070,8
gotoScriptLine 0
Powered by vBulletin® Version 4.2.5 Copyright © 2021 vBulletin Solutions Inc. All rights reserved.