slayer123
03-05-2012, 15:08
Hey! I found a great script to blackd but it gets critical error when i run it ... : ( Someone knows where's the problem?
########Made by Byczarz##############
fastExiva < B4 19 $hex-tibiastr:Welcome to Byczarz's Kazordoon training script! Script has: potion buyer, depositer, stones refiller, run on danger!$
waitX 1
fastExiva < B4 19 $hex-tibiastr:Remember to edit config and active putting stones to hand in trainer!!$
##########################################
:start
#############CONFIG#######################
#######EDIT HERE!!########################
#Should script drop hams and meats on ground? (1= yes 0= no)
fastExiva _drop = 1
#####################################
#What's your vocation? (paladin= 1 knight= 2)
fastExiva _prof = 1
#####################################
#Put here amount of stones to go depot(optional- for paladins)
fastExiva _stonestodp = 20
#####################################
#Under how many cap should script go depot? (do not make it *100!!)
fastExiva _capek = 5
#####################################
##put here number of amount of you potions to refil
fastExiva _potionsamount = 4
#####################################
#pu here how much does you potions cost
fastExiva _potionscost = 45
#####################################
#put here ID of your potions
fastExiva _potionid = 0A 01
#####################################
#put here ID of your empty potion flasks:
fastExiva _vialid = 0A 01
#####################################
#Put here ID of your training weapon:
fastExiva _skill = F5 06
#####################################
#Put here ID of your strong weapon(like serpent sword, bright sword etc.)
fastExiva _exp = CD 0C
#####################################
#To wich hand should script put the weapon (06= left. 05= right.):
fastExiva _hand = 06
#####################################
#####################################
setBot OldLootMode=1
setFriendly
onGMpause
onDangerGoto $nlineoflabel:danger$
#White Mushroom
setLoot 8B 0E
#Meat
setLoot F9 0D
#Ham
setLoot FE 0D
#Cash
setLoot D7 0B
#Iron Ore
setLoot F8 16
#Lump of a Dirt
setLoot DC 25
#Bear Paw
setLoot 08 17
#######################
SetMaxAttackTimeMs 150000
setChaoticMovesON
#######################
setMeleeKill bat
setMeleeKill rat
setMeleeKill wolf
setMeleeKill spider
setMeleeKill poison spider
setMeleeKill bear
setMeleeKill goblin
setMeleeKill dwarf
setMeleeKill dwarf soldier
setMeleeKill rotworm
#######################
setPriority dwarf soldier:+2
##############################
###DO NOT TOUCH IT!##########
##cap*100
fastExiva _cap = $numericalexp:{$_capek$}*100$
#ID stones
fastExiva _idstones = F5 06
##############################
#
IfTrue ($_prof$#number=#2) Goto $nlineoflabel:knight$
IfTrue ($countitems:{$_idstones$}$#number<=#$_stonestodp$) Goto $nlineoflabel:dp$
:knight
IfTrue ($mycap$#number<=#$_cap$) Goto $nlineoflabel:dp$
IfTrue ($countitems:{$_potionid$}$#number<=#$_potionsamount$) Goto $nlineoflabel:dp$
#putting training weapon on
sayMessage exiva #$_skill$ $_hand$
move 32549,31906,8
move 32543,31899,8
move 32529,31881,8
move 32546,31876,8
move 32551,31877,9
move 32546,31884,9
move 32529,31875,9
move 32485,31875,9
move 32442,31877,9
move 32424,31909,9
move 32421,31920,9
move 32442,31877,9
move 32484,31876,9
move 32545,31876,9
move 32546,31876,8
IfTrue ($_drop$#number=#0) Goto $nlineoflabel:nope$
resetLoot
#Meat
setLoot F9 0D
#Ham
setLoot FE 0D
dropLootOnGround 32545,31876,9
:nope
gotoScriptLine $nlineoflabel:start$
:dp
setNoFollow
setChaoticMovesOFF
fastExiva < B4 19 $hex-tibiastr:Script is going to depot!$
sayMessage exiva #$_exp$ $_hand$
move 32544,31907,8
move 32545,31908,7
move 32555,31924,7
move 32557,31924,6
move 32566,31940,6
move 32567,31940,7
move 32581,31920,7
move 32584,31904,7
move 32579,31893,7
move 32579,31891,8
move 32579,31894,8
move 32579,31896,9
move 32584,31973,9
move 32584,31971,10
move 32595,31938,10
move 32605,31921,10
move 32605,31919,9
move 32648,31928,9
move 32646,31908,9
move 32645,31907,8
##########################################
##########################################
:BANK
###POTS CONFIGS###
fastExiva _potionstobuy = $countitems:{$_vialid$}$
fastExiva _cashfromvials = $numericalexp:{$countitems:{$_vialid$}*5$
fastExiva _potioncost = $numericalexp:{$_potionstobuy$}*{$_potionscost$}$
fastExiva _allpotionscost = $numericalexp:{$_potioncost$}-{$_cashfromvials$}$
##########################################
##########################################
move 32649,31907,8
sayMessage hi
waitX 2
sayInTrade deposit all
waitX 2
sayInTrade yes
waitX 2
sayInTrade withdraw $_allpotionscost$
waitX 2
sayInTrade yes
waitX 2
sayInTrade balance
waitX 1
sayInTrade bye
move 32664,31914,8
resetLoot
#White Mushroom
setLoot 8B 0E
#Meat
setLoot F9 0D
#Ham
setLoot FE 0D
putLootOnDepot
move 32664,31914,8
move 32624,31921,8
move 32624,31919,7
move 32625,31920,7
move 32626,31919,6
move 32608,31925,6
move 32607,31924,5
:npc
move 32617,31929,5
#follow npc
sayMessage exiva >05 00 A2 68 00 00 40
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
IfTrue ($countitems:{$_potionid$}$#number>=#$_potionsamount$) Goto $nlineoflabel:kupione$
move 32627,31929,5
:npc2
#follow npc
sayMessage exiva >05 00 A2 68 00 00 40
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
IfTrue ($countitems:{$_potionid$}$#number>=#$_potionsamount$) Goto $nlineoflabel:kupione$
move 32629,31925,5
#otwieranie drzwi
sayMessage exiva >0A 00 82 74 7F B4 7C 05 20 1E 01 01
:npc3
#follow npc
sayMessage exiva >05 00 A2 68 00 00 40
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
IfTrue ($countitems:{$_potionid$}$#number>=#$_potionsamount$) Goto $nlineoflabel:kupione$
move 32629,31920,5
:npc4
#follow npc
sayMessage exiva >05 00 A2 68 00 00 40
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
IfTrue ($countitems:{$_potionid$}$#number>=#$_potionsamount$) Goto $nlineoflabel:kupione$
:kupione
move 32607,31926,5
move 32607,31926,6
move 32603,31923,6
move 32602,31924,7
move 32603,31926,8
move 32613,31922,8
move 32613,31922,9
move 32606,31920,9
move 32605,31921,10
move 32585,31973,10
move 32584,31973,9
move 32580,31928,9
move 32578,31895,9
move 32579,31894,8
move 32580,31892,8
move 32579,31893,7
move 32567,31940,7
move 32567,31941,6
move 32557,31924,6
move 32555,31924,7
move 32545,31908,7
move 32543,31908,8
gotoScriptLine $nlineoflabel:start$
:danger
fastExiva < B4 19 $hex-tibiastr:Your character became attacked by:{$lastpkname$}! Going to ab'dendriel depot!$
sayMessage exiva log $shorttime$ Your character became attacked by $lastpkname$!
fastExiva < B4 19 $hex-tibiastr:Name of PK and time can be found in 'mylogs' folder in main BlackD's folder. Files name is: log_{$charactername$}.txt$
setChaoticMovesOFF
setNoFollow
sayMessage exiva #$_exp$ $_hand$
IfTrue ($myx$#number=#8) Goto $nlineoflabel:8$
move 32475,31878,9
move 32529,31875,9
move 32543,31879,9
move 32545,31876,8
:8
move 32544,31908,8
move 32546,31908,7
move 32568,31870,7
move 32605,31846,7
move 32632,31823,7
move 32641,31764,7
move 32640,31728,7
move 32647,31700,7
move 32654,31675,7
move 32655,31674,8
move 32680,31679,8
move 32681,31685,8
move 32682,31685,7
move 32682,31684,6
move 32682,31684,5
move 32682,31684,4
move 32682,31684,3
closeConnection
########Made by Byczarz##############
fastExiva < B4 19 $hex-tibiastr:Welcome to Byczarz's Kazordoon training script! Script has: potion buyer, depositer, stones refiller, run on danger!$
waitX 1
fastExiva < B4 19 $hex-tibiastr:Remember to edit config and active putting stones to hand in trainer!!$
##########################################
:start
#############CONFIG#######################
#######EDIT HERE!!########################
#Should script drop hams and meats on ground? (1= yes 0= no)
fastExiva _drop = 1
#####################################
#What's your vocation? (paladin= 1 knight= 2)
fastExiva _prof = 1
#####################################
#Put here amount of stones to go depot(optional- for paladins)
fastExiva _stonestodp = 20
#####################################
#Under how many cap should script go depot? (do not make it *100!!)
fastExiva _capek = 5
#####################################
##put here number of amount of you potions to refil
fastExiva _potionsamount = 4
#####################################
#pu here how much does you potions cost
fastExiva _potionscost = 45
#####################################
#put here ID of your potions
fastExiva _potionid = 0A 01
#####################################
#put here ID of your empty potion flasks:
fastExiva _vialid = 0A 01
#####################################
#Put here ID of your training weapon:
fastExiva _skill = F5 06
#####################################
#Put here ID of your strong weapon(like serpent sword, bright sword etc.)
fastExiva _exp = CD 0C
#####################################
#To wich hand should script put the weapon (06= left. 05= right.):
fastExiva _hand = 06
#####################################
#####################################
setBot OldLootMode=1
setFriendly
onGMpause
onDangerGoto $nlineoflabel:danger$
#White Mushroom
setLoot 8B 0E
#Meat
setLoot F9 0D
#Ham
setLoot FE 0D
#Cash
setLoot D7 0B
#Iron Ore
setLoot F8 16
#Lump of a Dirt
setLoot DC 25
#Bear Paw
setLoot 08 17
#######################
SetMaxAttackTimeMs 150000
setChaoticMovesON
#######################
setMeleeKill bat
setMeleeKill rat
setMeleeKill wolf
setMeleeKill spider
setMeleeKill poison spider
setMeleeKill bear
setMeleeKill goblin
setMeleeKill dwarf
setMeleeKill dwarf soldier
setMeleeKill rotworm
#######################
setPriority dwarf soldier:+2
##############################
###DO NOT TOUCH IT!##########
##cap*100
fastExiva _cap = $numericalexp:{$_capek$}*100$
#ID stones
fastExiva _idstones = F5 06
##############################
#
IfTrue ($_prof$#number=#2) Goto $nlineoflabel:knight$
IfTrue ($countitems:{$_idstones$}$#number<=#$_stonestodp$) Goto $nlineoflabel:dp$
:knight
IfTrue ($mycap$#number<=#$_cap$) Goto $nlineoflabel:dp$
IfTrue ($countitems:{$_potionid$}$#number<=#$_potionsamount$) Goto $nlineoflabel:dp$
#putting training weapon on
sayMessage exiva #$_skill$ $_hand$
move 32549,31906,8
move 32543,31899,8
move 32529,31881,8
move 32546,31876,8
move 32551,31877,9
move 32546,31884,9
move 32529,31875,9
move 32485,31875,9
move 32442,31877,9
move 32424,31909,9
move 32421,31920,9
move 32442,31877,9
move 32484,31876,9
move 32545,31876,9
move 32546,31876,8
IfTrue ($_drop$#number=#0) Goto $nlineoflabel:nope$
resetLoot
#Meat
setLoot F9 0D
#Ham
setLoot FE 0D
dropLootOnGround 32545,31876,9
:nope
gotoScriptLine $nlineoflabel:start$
:dp
setNoFollow
setChaoticMovesOFF
fastExiva < B4 19 $hex-tibiastr:Script is going to depot!$
sayMessage exiva #$_exp$ $_hand$
move 32544,31907,8
move 32545,31908,7
move 32555,31924,7
move 32557,31924,6
move 32566,31940,6
move 32567,31940,7
move 32581,31920,7
move 32584,31904,7
move 32579,31893,7
move 32579,31891,8
move 32579,31894,8
move 32579,31896,9
move 32584,31973,9
move 32584,31971,10
move 32595,31938,10
move 32605,31921,10
move 32605,31919,9
move 32648,31928,9
move 32646,31908,9
move 32645,31907,8
##########################################
##########################################
:BANK
###POTS CONFIGS###
fastExiva _potionstobuy = $countitems:{$_vialid$}$
fastExiva _cashfromvials = $numericalexp:{$countitems:{$_vialid$}*5$
fastExiva _potioncost = $numericalexp:{$_potionstobuy$}*{$_potionscost$}$
fastExiva _allpotionscost = $numericalexp:{$_potioncost$}-{$_cashfromvials$}$
##########################################
##########################################
move 32649,31907,8
sayMessage hi
waitX 2
sayInTrade deposit all
waitX 2
sayInTrade yes
waitX 2
sayInTrade withdraw $_allpotionscost$
waitX 2
sayInTrade yes
waitX 2
sayInTrade balance
waitX 1
sayInTrade bye
move 32664,31914,8
resetLoot
#White Mushroom
setLoot 8B 0E
#Meat
setLoot F9 0D
#Ham
setLoot FE 0D
putLootOnDepot
move 32664,31914,8
move 32624,31921,8
move 32624,31919,7
move 32625,31920,7
move 32626,31919,6
move 32608,31925,6
move 32607,31924,5
:npc
move 32617,31929,5
#follow npc
sayMessage exiva >05 00 A2 68 00 00 40
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
IfTrue ($countitems:{$_potionid$}$#number>=#$_potionsamount$) Goto $nlineoflabel:kupione$
move 32627,31929,5
:npc2
#follow npc
sayMessage exiva >05 00 A2 68 00 00 40
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
IfTrue ($countitems:{$_potionid$}$#number>=#$_potionsamount$) Goto $nlineoflabel:kupione$
move 32629,31925,5
#otwieranie drzwi
sayMessage exiva >0A 00 82 74 7F B4 7C 05 20 1E 01 01
:npc3
#follow npc
sayMessage exiva >05 00 A2 68 00 00 40
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
IfTrue ($countitems:{$_potionid$}$#number>=#$_potionsamount$) Goto $nlineoflabel:kupione$
move 32629,31920,5
:npc4
#follow npc
sayMessage exiva >05 00 A2 68 00 00 40
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
IfTrue ($countitems:{$_potionid$}$#number>=#$_potionsamount$) Goto $nlineoflabel:kupione$
:kupione
move 32607,31926,5
move 32607,31926,6
move 32603,31923,6
move 32602,31924,7
move 32603,31926,8
move 32613,31922,8
move 32613,31922,9
move 32606,31920,9
move 32605,31921,10
move 32585,31973,10
move 32584,31973,9
move 32580,31928,9
move 32578,31895,9
move 32579,31894,8
move 32580,31892,8
move 32579,31893,7
move 32567,31940,7
move 32567,31941,6
move 32557,31924,6
move 32555,31924,7
move 32545,31908,7
move 32543,31908,8
gotoScriptLine $nlineoflabel:start$
:danger
fastExiva < B4 19 $hex-tibiastr:Your character became attacked by:{$lastpkname$}! Going to ab'dendriel depot!$
sayMessage exiva log $shorttime$ Your character became attacked by $lastpkname$!
fastExiva < B4 19 $hex-tibiastr:Name of PK and time can be found in 'mylogs' folder in main BlackD's folder. Files name is: log_{$charactername$}.txt$
setChaoticMovesOFF
setNoFollow
sayMessage exiva #$_exp$ $_hand$
IfTrue ($myx$#number=#8) Goto $nlineoflabel:8$
move 32475,31878,9
move 32529,31875,9
move 32543,31879,9
move 32545,31876,8
:8
move 32544,31908,8
move 32546,31908,7
move 32568,31870,7
move 32605,31846,7
move 32632,31823,7
move 32641,31764,7
move 32640,31728,7
move 32647,31700,7
move 32654,31675,7
move 32655,31674,8
move 32680,31679,8
move 32681,31685,8
move 32682,31685,7
move 32682,31684,6
move 32682,31684,5
move 32682,31684,4
move 32682,31684,3
closeConnection