Log in

View Full Version : banuta 0,-1 - script check



butchelfk
04-07-2012, 20:59
Hi,
can you look at this script and tell me what is wrong? I used it on the newest tibia by the way.


setBot OldLootMode=1
setFollow
onTrapGiveAlarm
setLoot 05 0E
setLoot D9 0B
setLoot 0C 0C
setLoot 00 0C
setLoot 0A 01
setLoot 14 0D
setLoot 0C 01
setLoot CF 2C
setLoot 1D 0D
setLoot FB 16
setLoot F5 06
setLoot F7 2C
setLoot D7 0B
setMeleeKill Kongra
setMeleeKill Sibang
setMeleeKill tiger
setMeleeKill Merlkin
setMeleeKill Spider
setMeleeKill Crocodile
setMeleeKill Cobra
setMeleeKill Wasp
setMeleeKill Centipede
setMeleeKill Bat
setMeleeKill Bug
setPriority Kongra:+1
setPriority Merlkin:+2
setLootOn
:goCave
move 32653,32718,7
move 32678,32691,7
move 32698,32664,7
move 32719,32631,7
move 32736,32602,7
move 32760,32580,7
move 32772,32564,7
gotoScriptLine $nlineoflabel:hunting$
:hunting
setFollow
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
move 32772,32566,8
move 32755,32565,8
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
move 32779,32534,8
move 32762,32519,8
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
move 32787,32499,8
move 32819,32516,8
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
move 32819,32547,8
move 32849,32545,8
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
move 32847,32570,8
move 32789,32571,8
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
gotoScriptLine $nlineoflabel:ground$
:ground
move 32772,32567,7
move 32775,32571,6
move 32787,32583,7
move 32792,32585,6
move 32789,32585,5
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
move 32812,32583,7
move 32815,32581,6
move 32826,32575,7
move 32843,32565,7
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
move 32838,32553,7
move 32839,32550,6
move 32838,32548,5
move 32842,32534,7
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
move 32839,32525,7
move 32835,32512,6
move 32823,32510,7
move 32816,32508,6
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
move 32802,32523,7
move 32780,32521,7
move 32772,32534,6
move 32772,32562,7
IfTrue ($mycap$#number<=#1000) Goto $nlineoflabel:backDepot$
onDangerGoto $nlineoflabel:logDepot$
gotoScriptLine $nlineoflabel:hunting$
:backDepot
setNoFollow
move 32772,32566,8
move 32745,32604,7
move 32733,32625,7
move 32719,32639,7
move 32698,32661,7
move 32680,32680,7
move 32655,32706,7
move 32638,32731,7
move 32631,32750,7
move 32632,32747,6
gotoScriptLine $nlineoflabel:SellAndDeposit$
:SellAndDeposit
waitX 2
sayMessage hi
waitX 1
sayInTrade trade
waitX 1
sayMessage exiva sell:CF 2C:$countitems:CF 2C$
waitX 1
sayMessage exiva sell:F7 2C:$countitems:F7 2C$
waitX 1
sayMessage exiva sell:1D 0D:$countitems:1D 0D$
stackItems
move 32632,32739,6
waitX 1
fastExiva > 96 04 $hex-tibiastr:hi$
waitX 2
fastExiva > 96 04 $hex-tibiastr:deposit all$
waitX 1
fastExiva > 96 04 $hex-tibiastr:yes$
waitX 1
move 32629,32745,7
putLootOnDepot
gotoScriptLine $nlineoflabel:goCave$
:logDepot
resetKill
setNoFollow
move 32772,32566,8
move 32745,32604,7
move 32733,32625,7
move 32719,32639,7
move 32698,32661,7
move 32680,32680,7
move 32655,32706,7
move 32638,32731,7
move 32631,32750,7
move 32632,32747,6
closeConnection


Thanks a lot, Michal

bougbear
04-07-2012, 22:25
you need to tell us what it's not doing right before we can tell you whats wrong

butchelfk
04-07-2012, 22:55
my character stops when he back from -1 to the ground.

and please tell me, how i can turn off alerts like that?

21:58 BlackdProxy [255]: WARNING : YOU ARE UNDER PK ATTACK ! (spit nettle) Auto heal have been auto increased to 75 %

bistets
04-08-2012, 04:36
try to put it on safe list of runemaker.

unimporta
04-08-2012, 05:31
my character stops when he back from -1 to the ground.

and please tell me, how i can turn off alerts like that?

21:58 BlackdProxy [255]: WARNING : YOU ARE UNDER PK ATTACK ! (spit nettle) Auto heal have been auto increased to 75 %


For the "YOU ARE UNDER PK ATTACK!" message, you need to include this:


setMeleeKill spit nettle

In the
setMeleeKill series of statements.
If he stops when he's back from -1 to the ground, you need to check for extra messages that might appear that say that a certain action is impossible. If a message of that kind appears, it must like means that something changed in the map and the character cannot walk to the next X,Y,Z position. It might be that a new non walkable area appeared in an area that used to be walkable. Or maybe the script is just broken.

provocate
04-08-2012, 11:03
Like @bistets said, just put it on the safe list in Runemaker, you don't want you character running around 'spit nettle' with setMeleeKill, but if that extra exp is good for ya, then you should do exactly what @unimporta said.

butchelfk
04-08-2012, 18:28
Thanks guys, i'm ill now and haven't strenght for it, but tommorow i will try :)