Log in

View Full Version : UPDATEING SCRIPTS||Buying spears||buying and selling



Random-j
10-04-2008, 00:24
To fix your cap problems

IfTrue (mycap$#number<=#5000) Goto $nlineoflabel:Deposit Gold$
If your cap is below 50 change to 5000


Heres the code from my Ph scripts to updated buy Royal spears.


:hi
sayMessage hi
waitX 2
fastExiva _spears = $numericalexp:{$numericalexp:{$numericalexp:{$myca p$}/100$}/35$}-1$
fastExiva _spearcost = $numericalexp:{$_spears$}*15$
sayInTrade withdraw $_spearcost$
waitx 2
sayInTrade yes
:buyspear
sayMessage hi
waitX 2
sayInTrade trade
waitX 1
fastExiva > 07 00 7A D2 1C 00 $numbertohex2:{$_spears$}$ 00





Appearantly some people have been having some problems with buying and selling. So here are the packets.

Buying:

exiva > 07 00 7A xx xx 00 yy 00

At xx xx fill in item id, at yy fill in the amount in hex.
To get a number into hex use:

$numbertohex2:x$
The Id of a health potion is 0A 01 and lets assume I want to buy 10, that would make it.

exiva > 07 00 7A 0A 01 00 $numbertohex2:10$ 00

Selling:

exiva > 06 00 7B xx xx 00 yy 01
The id of an empty flask is: 1D 01 so to sell 5 it would make:

exiva > 06 00 7B 1D 01 00 $numbertohex2:5$ 01

This works for me, if you have any problems post me or someone else might be able to help.

Good luck!:D

Malice
10-04-2008, 06:13
Hi could you please post ur whole script of north PH plx scince i am a noob at scripts :)
Thank you

PauloOzz
11-17-2008, 15:46
still not working for me x=

Maeo
11-25-2008, 13:47
I modify PH North For pally with Spear buyyer, my frist trying in script, i think it work :x. It Go buy Spear when u got Less 8 Spears, and Deposit / Withdraw to bank for Buying Spears. I start bot in dp with all Spears and cash in bank.

Post commant plez :P


onGMpause
OnDangerGoTo $nlineoflabel:pk$
setFriendly
setFollow
setPriority slime:+3
setPriority Terror Bird:+2
setPriority tarantula:+1
setPriority centipede:+1
setPriority cave rat:-1
setMeleeKill Crab
setMeleeKill slime
setMeleeKill terror bird
setMeleeKill cobra
setMeleeKill crocodile
setMeleeKill centipede
setMeleeKill swamp troll
setMeleeKill cave rat
setMeleeKill snake
setMeleeKill spider
setMeleeKill bug
setMeleeKill tarantula
setLoot 4E 0D
setLoot E4 0D
setLoot D7 0B
IfTrue ($countitems:D2 1C$#number<=#8) Goto $nlineoflabel:depot$
move 32599,32708,7
move 32587,32704,7
move 32577,32701,7
move 32574,32687,7
IfTrue ($countitems:D2 1C$#number<=#8) Goto $nlineoflabel:depot$
move 32595,32676,7
move 32611,32684,7
move 32639,32652,7
move 32645,32666,7
IfTrue ($countitems:D2 1C$#number<=#8) Goto $nlineoflabel:depot$
move 32643,32635,7
move 32627,32617,7
move 32653,32618,7
move 32642,32601,7
IfTrue ($countitems:D2 1C$#number<=#8) Goto $nlineoflabel:depot$
move 32674,32609,7
move 32695,32600,7
move 32710,32587,7
move 32704,32618,7
IfTrue ($countitems:D2 1C$#number<=#8) Goto $nlineoflabel:depot$
move 32677,32638,7
move 32680,32650,7
move 32680,32654,7
move 32655,32672,7
move 32649,32680,7
gotoScriptLine 0
:depot
move 32633,32707,7
move 32629,32749,7
move 32629,32749,7
move 32632,32740,6
move 32632,32740,6
waitx 1
move 32632,32740,6
:hi
sayMessage exiva > 96 04 $hex-tibiastr:hi$
waitX 3
sayMessage exiva > 96 04 $hex-tibiastr:deposit all$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:yes$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:withdraw 1500$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:yes$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:balance$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:bye$
#spears
move 32631,32741,6
move 32630,32743,5
move 32633,32742,5
waitX 1
move 32633,32742,5
:hi
sayMessage hi
waitX 2
fastExiva _spears = $numericalexp:{$numericalexp:{$numericalexp:{$myca p$}/100$}/25$}-2$
fastExiva _spearcost = $numericalexp:{$_spears$}*15$
sayInTrade withdraw $_spearcost$
waitx 2
sayInTrade yes
:buyspear
sayMessage hi
waitX 2
sayInTrade trade
waitX 1
fastExiva > 07 00 7A D2 1C 00 $numbertohex2:{$_spears$}$ 00
move 32630,32743,5
move 32631,32741,6
move 32629,32748,6
move 32629,32750,7
gotoScriptLine 0
:pk
sayMessage exiva kill $lastpkname$
sayMessage exiva kill
sayMessage exiva cancel
gotoScriptLine 0