Log in

View Full Version : Need a lil help with spear refiller



loganh
07-28-2012, 21:35
Ok so so far I have not been able to put spear refiller into my script, I have
ifTrue ($countitems:d2 1c$#number<#2) Goto $:nlineoflabel:RefillSpears$
to go to the line of script
:RefillSpears
to start walking back to buy spears. When i get to bank i put
waitX 1
sayMessage hi
waitX 1
sayInTrade deposit all
sayInTrade yes
waitX 1
sayInTrade withdraw 250
sayInTrade yes
then i put my waypoints below this to walk to spear refiller but then idk what to put
waitX 1
sayMessage hi
waitX 1
sayInTrade trade
waitX 1
fastExiva buy:$_spearid$:$numericalexp:{$numericalexp:{$myca p$}/{$_spearweight$00}$}-1$

Idk what to put on that last line of code to say like idk refill me back to 15 spears? then go back to my hunting line of script :P
Help would be greatly appritiated ^.^

sharpie
08-21-2012, 21:51
ifTrue ($countitems:D2 1C$#number<=#2) Goto $:nlineoflabel:RefillSpears$
:RefillSpears
fastExiva _spearswanted = 15
fastExiva _spearid = D2 1C
fastExiva _spearcost = 10
fastExiva _spearneed = $numericalexp:{$_spearswanted$}-{$countitems:{$_spearid$}$}$
fastExiva _totalcost = $numericalexp:{$_spearcost$}*{$_spearneed$}$
[waypoints to walk to bank]
waitX 1
sayMessage hi
waitX 1
sayInTrade deposit all
waitx 1
sayInTrade yes
waitX 1
sayInTrade withdraw $_totalcost$
waitx 1
sayInTrade yes
waitX 1
[waypoints to walk to spear seller]
sayMessage hi
waitX 1
sayInTrade trade
waitX 1
sayInTrade exiva > 7A $_spearid$ 00 $numbertohex1:{$_spearneed$}$ 00 00
[waypoints to walk back to where you want to start]


I didnt test it, but it should work. Let me know if it doesnt. This will work for any throwable, just change the ID, the cost, and the amount you want to carry. The script will do the rest