Log in

View Full Version : dead script?



rarity
08-26-2012, 09:58
Well hello there,

I've tried snowmans mutated humans script but when i start it it bugs,
annyone around here wo can fix the problem for me?


########Made by Snowman##############
fastExiva < B4 19 $hex-tibiastr:Welcome to Snowman's Yalahar Mutated Humans with depositer and potion buyer script!$
waitX 3
##########################################
#############CONFIG#######################
##########################################
#put here number of amount of you potions to refil
fastExiva _potionsamount = 60
#put here number of cap to go dp
fastExiva _captodp = 300
#pu here how much does you potions cost
fastExiva _potionscost = 50
#put here ID of your potions
fastExiva _potionid = 0C 01
#put here ID of your empty potion flasks:
fastExiva _vialid = 1D 01
##########################################
##########################################
:cap *100
fastExiva _captogodp = $numericalexp:{$_captodp$}*100$
##########################################
:start
setChaoticMovesON
##########################################
onGMpause
setFriendly
######Monsters#####
setAvoidFront mutated human
setMeleeKill Mutated Human
setMeleeKill Slime
setMeleeKill Mercury Blob
setMeleeKill Acid Blob
setMeleeKill Mutated Rat
##############
####PRIORITIES####
setPriority Mutated Human:+1
############
######LOOT######
#Cash
setLoot D7 0B
#Rusty Armor
setLoot BE 22
################
###WAYPOINTS####
IfTrue ($mycap$#number<=#$_captogodp$) Goto $nlineoflabel:dp$
IfTrue ($countitems:{$_potionid$}$#number<=#$_potionsamount$) Goto $nlineoflabel:dp$
move 32737,31113,7
move 32730,31122,7
move 32739,31131,7
move 32740,31130,6
move 32741,31128,5
move 32741,31130,6
move 32740,31132,7
move 32734,31134,7
move 32734,31134,6
move 32734,31136,7
move 32743,31144,7
move 32742,31145,6
move 32744,31145,7
move 32752,31145,7
move 32737,31154,7
move 32727,31156,7
move 32714,31178,7
move 32698,31178,7
move 32696,31178,6
move 32700,31179,6
move 32697,31179,6
move 32698,31178,7
move 32688,31186,7
move 32696,31185,7
move 32729,31164,7
move 32727,31156,7
move 32734,31147,7
move 32728,31145,7
move 32742,31136,7
move 32731,31113,7
gotoScriptLine $nlineoflabel:start$
:dp
setChaoticMovesOFF
fastExiva < B4 19 $hex-tibiastr:Going to deposit gold, loot and refill potions.$
move 32738,31113,7
sayMessage hi
waitX 2
sayInTrade pass
waitX 2
sayInTrade cemetery
move 32758,31112,7
move 32799,31103,7
sayMessage hi
waitX 2
sayInTrade pass
waitX 2
sayInTrade magician
move 32820,31104,7
move 32835,31132,7
move 32835,31142,7
move 32835,31144,6
move 32835,31146,5
move 32834,31152,5
move 32834,31154,6
move 32834,31156,7
move 32859,31206,7
move 32849,31243,7
move 32824,31249,7
##########################################
##########################################
:BANK
###POTS CONFIGS###
fastExiva _potionstobuy = $countitems:{$_vialid$}$
fastExiva _cashfromvials = $numericalexp:{$countitems:{$_vialid$}*5$
fastExiva _potioncost = $numericalexp:{$_potionstobuy$}*{$_potionscost$}$
fastExiva _allpotionscost = $numericalexp:{$_potioncost$}-{$_cashfromvials$}$
##########################################
##########################################
#Depositing gold
sayMessage hi
waitX 1
sayInTrade deposit all
waitX 2
sayInTrade yes
waitX 2
sayInTrade withdraw $_allpotionscost$
waitX 1
sayInTrade yes
waitX 2
sayInTrade balance
waitX 1
sayInTrade Bye
##########################################
##########################################
move 32829,31242,7
move 32811,31233,7
move 32790,31238,7
move 32790,31238,6
move 32789,31238,5
##########################################
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
##########################################
move 32789,31238,5
move 32789,31240,6
move 32790,31240,7
move 32798,31246,7
move 32796,31246,6
move 32785,31244,6
putLootOnDepot
move 32786,31247,6
move 32786,31249,7
move 32802,31236,7
move 32842,31168,7
move 32835,31156,7
move 32835,31154,6
move 32835,31152,5
move 32835,31146,5
move 32835,31144,6
move 32835,31142,7
move 32804,31103,7
sayMessage hi
waitX 2
sayInTrade pass
waitX 2
sayInTrade cemetery
move 32792,31103,7
move 32743,31113,7
sayMessage hi
waitX 2
sayInTrade pass
waitX 2
sayInTrade alchemist
gotoScriptLine $nlineoflabel:start$

sharpie
08-31-2012, 18:55
I took out all of the exiva < commands where it sends it to the client. Those things ALWAYS bug my client and crash it. And then after looking through the script, there were lots of things that had extra spaces (like in one of the IfTrue statements there was a space like $_potionsamou nt$) which causes it to bug. And then there were some things messed up with the numericalexp commands, where there were brackets missing and a $ sign or two. I think that's all I changed. I got on one of my characters and ran it through a cycle and it worked fine. I didnt buy any potions, so I'm not sure if the "sayMessage exiva sell:$_vialid$:100" this type of command before so I'm not sure how to debug that. I always just use exiva > commands. Run it, see if it buys potions and everything for you and if it doesn't we can debug it further. Good Luck




########Made by Snowman##############
##########################################
#############CONFIG#######################
##########################################
#put here number of amount of you potions to refill
fastExiva _potionsamount = 60
#put here number of cap to go dp
fastExiva _captodp = 1500
#put here how much does you potions cost
fastExiva _potionscost = 50
#put here ID of your potions
fastExiva _potionid = 0C 01
#put here ID of your empty potion flasks:
fastExiva _vialid = 1D 01
##########################################
##########################################
:cap *100
fastExiva _captogodp = $numericalexp:{$_captodp$}*100$
##########################################
:start
setChaoticMovesON
##########################################
onGMpause
setFriendly
######Monsters#####
setAvoidFront mutated human
setMeleeKill Mutated Human
setMeleeKill Slime
setMeleeKill Mercury Blob
setMeleeKill Acid Blob
setMeleeKill Mutated Rat
##############
####PRIORITIES####
setPriority Mutated Human:+1
############
######LOOT######
#Cash
setLoot D7 0B
#Rusty Armor
setLoot BE 22
################
###WAYPOINTS####
IfTrue ($mycap$#number<=#$_captogodp$) Goto $nlineoflabel:dp$
IfTrue ($countitems:{$_potionid$}$#number<=#$_potionsamount$) Goto $nlineoflabel:dp$
move 32737,31113,7
move 32730,31122,7
move 32739,31131,7
move 32740,31130,6
move 32741,31128,5
move 32741,31130,6
move 32740,31132,7
move 32734,31134,7
move 32734,31134,6
move 32734,31136,7
move 32743,31144,7
move 32742,31145,6
move 32744,31145,7
move 32752,31145,7
move 32737,31154,7
move 32727,31156,7
move 32714,31178,7
move 32698,31178,7
move 32696,31178,6
move 32700,31179,6
move 32697,31179,6
move 32698,31178,7
move 32688,31186,7
move 32696,31185,7
move 32729,31164,7
move 32727,31156,7
move 32734,31147,7
move 32728,31145,7
move 32742,31136,7
move 32731,31113,7
gotoScriptLine $nlineoflabel:start$
:dp
setChaoticMovesOFF
move 32738,31113,7
sayMessage hi
waitX 2
sayInTrade pass
waitX 2
sayInTrade cemetery
waitX 1
sayInTrade yes
move 32758,31112,7
move 32799,31103,7
sayMessage hi
waitX 2
sayInTrade pass
waitX 2
sayInTrade magician
waitX 1
sayInTrade yes
move 32820,31104,7
move 32835,31132,7
move 32835,31142,7
move 32835,31144,6
move 32835,31146,5
move 32834,31152,5
move 32834,31154,6
move 32834,31156,7
move 32859,31206,7
move 32849,31243,7
move 32824,31249,7
##########################################
##########################################
:BANK
###POTS CONFIGS###
fastExiva _potionstobuy = $countitems:{$_vialid$}$
fastExiva _cashfromvials = $numericalexp:{$countitems:{$_vialid$}$}*5$
fastExiva _potioncost = $numericalexp:{$_potionstobuy$}*{$_potionscost$}$
fastExiva _allpotionscost = $numericalexp:{$_potioncost$}-{$_cashfromvials$}$
##########################################
##########################################
#Depositing gold
sayMessage hi
waitX 1
sayInTrade deposit all
waitX 2
sayInTrade yes
waitX 2
sayInTrade withdraw $_allpotionscost$
waitX 1
sayInTrade yes
waitX 2
sayInTrade balance
waitX 1
sayInTrade Bye
##########################################
##########################################
move 32829,31242,7
move 32811,31233,7
move 32790,31238,7
move 32790,31238,6
move 32789,31238,5
##########################################
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
##########################################
move 32789,31238,5
move 32789,31240,6
move 32790,31240,7
move 32798,31246,7
move 32796,31246,6
move 32785,31244,6
putLootOnDepot
move 32786,31247,6
move 32786,31249,7
move 32802,31236,7
move 32842,31168,7
move 32835,31156,7
move 32835,31154,6
move 32835,31152,5
move 32835,31146,5
move 32835,31144,6
move 32835,31142,7
move 32804,31103,7
sayMessage hi
waitX 2
sayInTrade pass
waitX 2
sayInTrade cemetery
waitX 1
sayInTrade yes
move 32792,31103,7
move 32743,31113,7
sayMessage hi
waitX 2
sayInTrade pass
waitX 2
sayInTrade alchemist
waitX 1
sayInTrade yes
gotoScriptLine $nlineoflabel:start$