Log in

View Full Version : 15. Port Hope North - by Fosforo



blackd
02-17-2011, 02:05
This script will hunt in the main floor north of Port Hope depot.
When full capacity it will go to town deposit the money and refill manas/healths to then continue hunting.

It was made for a Knight so it only buys 20 mana potions and 20 health potions. It goes back to depot if at any time it has less than 5 of any.
Where should you start the script: Port hope depot or near




onDangerGoto $nlineoflabel:danger$
fastExiva < B4 14 $hex-tibiastr:This script was coded by Fosforo.$
setBot OldLootMode=1
setChaoticMovesOFF
setVeryFriendly
setMeleeKill slime
setMeleeKill bug
setMeleeKill terror bird
setMeleeKill cobra
setMeleeKill crocodile
setMeleeKill centipede
setMeleeKill swamp troll
setMeleeKill cave rat
setMeleeKill snake
setMeleeKill smuggler
setMeleeKill wild warrior
setLoot D7 0B
setLoot F9 0D
setLoot 4E 0D
setLoot E4 0D
:huntPortHope
move 32599,32708,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32587,32704,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32577,32701,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32574,32687,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32595,32676,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32611,32684,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32639,32652,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32645,32666,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32643,32635,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32627,32617,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32653,32618,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32642,32601,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32674,32609,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32695,32600,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32710,32587,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32704,32618,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32677,32638,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32680,32650,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32680,32654,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32655,32672,7
IfTrue ($countitems:0C 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($countitems:0A 01$#number<#5) Goto $nlineoflabel:goDepositandRefill$
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:goDepositandRefill$
move 32649,32680,7
gotoScriptLine $nlineoflabel:huntPortHope$
:danger
move 32620,32716,7
move 32623,32750,7
move 32623,32743,7
waitX 1
sayMessage exiva close
:goDepositandRefill
move 32620,32716,7
move 32622,32751,7
move 32625,32751,7
sayMessage exiva > 64 03 03 03 03
move 32632,32739,6
fastExiva > 96 04 $hex-tibiastr:hi$
waitX 2
fastExiva > 96 04 $hex-tibiast: Deposit All$
waitX 1
fastExiva > 96 04 $hex-tibiastr:Yes$
waitX 1
IfTrue ($countitems:0C 01$#number<#60) Goto $nlineoflabel:buyManas$
IfTrue ($countitems:0A 01$#number<#20) Goto $nlineoflabel:buyHealth$
move 32625,32748,6
move 32624,32749,7
move 32622,32751,7
gotoScriptLine $nlineoflabel:huntPortHope$
:buyManas
fastExiva _mananeeded = $numericalexp:60-{$countitems:0C 01$}$
fastExiva _costmana = $numericalexp:50*{$_mananeeded$}$
move 32632,32738,6
waitX 1
fastExiva > 96 04 $hex-tibiastr:hi$
waitX 2
sayInTrade withdraw $_costmana$
waitX 1
fastExiva > 96 04 $hex-tibiastr:yes$
waitX 1
fastExiva > 96 04 $hex-tibiastr:bye$
waitX 1
move 32626,32742,6
move 32626,32743,5
move 32624,32741,5
sayMessage hi
waitX 1
sayInTrade trade
waitX 1
fastExiva > 7B 1D 01 00 $numbertohex1:{$countitems:1D 01$}$
waitX 1
fastExiva > 07 00 7A 0C 01 00 $numbertohex2:{$_mananeeded$}$
waitX 1
sayInTrade bye
waitX 1
move 32624,32741,5
move 32626,32743,5
move 32626,32742,6
IfTrue ($countitems:0A 01$#number<#30) Goto $nlineoflabel:buyHealth$
move 32625,32748,6
move 32624,32749,7
move 32622,32751,7
gotoScriptLine $nlineoflabel:huntPortHope$
:buyHealth
move 32632,32738,6
fastExiva _healthneeded = $numericalexp:20-{$countitems:0A 01$}$
fastExiva _costhealth = $numericalexp:45*{$_healthneeded$}$
waitX 1
sayMessage hi
waitX 2
sayInTrade withdraw $_costhealth$
waitX 1
sayInTrade yes
waitX 1
sayInTrade bye
waitX 1
move 32626,32742,6
move 32626,32743,5
move 32624,32741,5
sayMessage hi
waitX 1
sayInTrade trade
waitX 1
fastExiva > 7B 1D 01 00 $numbertohex1:{$countitems:1D 01$}$
waitX 1
fastExiva > 07 00 7A 0A 01 00 $numbertohex2:{$_healthneeded$}$
waitX 1
sayInTrade bye
waitX 1
move 32624,32741,5
move 32626,32743,5
move 32626,32742,6
move 32625,32748,6
move 32624,32749,7
move 32622,32751,7
gotoScriptLine $nlineoflabel:huntPortHope$

seanjoe
06-23-2012, 04:43
It just logouts when u start it in dp :/