|
Neuf Newbie
Joined: 10 Dec 2004 Posts: 3
|
Posted: Fri Dec 10, 2004 8:15 am
a really strange problem with zMUD |
Ok i expirience a really strange and annoying problem with zMUD and i hope, you guys can help me to figure it out.
I have imported someone else's settings for achaea. and one class folder, if i look at it in class script shows an error which points on completelly valid syntax and if i look at the alias it points at (in the class folder) it doesnt show anything wrong. Sometimes when i play i can see (graphical corruption? (heh)) like "=0" shows up or just random parts of that class script.
What is weird with this is alias itself and everything else in that class doesnt give any warnings or syntax errors only in CLASS SCRIPT -> ZMUD SCRIPT.
Furthermore the person who gave me the settings doesnt expirience such problem, his class folder is perfectly normal.
If anyone could help me out with this it would be most appreciated. |
|
|
|
misterbalrog Apprentice
Joined: 26 Oct 2004 Posts: 108
|
Posted: Fri Dec 10, 2004 8:50 am |
I used to receive such once when I had a capture trigger and used the selected %1-%99 values to send the info to another window.
Meaning I would trigger off a pattern, use the values given from the pattern-matches to send... so if a single-quote or the likes were existing in these, it would "cut-off" the code at times. I think it also had to have a paranthesis in the line, can't recall, anyway.
Could this be the case for you aswell? What I did was change what and how it sent to the capture window.
If you can track down the "=0" section in the scripts/triggers, try getting them triggered off and see if you can re-create the problem and show us the trigger/alias/whatnot in question so we can help you with a more exact solution. |
|
|
|
Neuf Newbie
Joined: 10 Dec 2004 Posts: 3
|
Posted: Fri Dec 10, 2004 9:25 am |
#ALIAS herbcheck {#if @stun=0 {#if @pause=0 {#if @anorexia=0 {#if @aeon=0 {#if @sleep=0 {#if @herbbalance=1 {#if @rightarm=0 {#if @stupidity=1 {autogoldenseal} {#if @asthma=1 {autokelp} {#if @paralysis=1 {autobloodroot} {#if @confusion=1 {autoash} {#if @justice=1 {autobellwort} {#if @impatience=1 {autogoldenseal} {#if @masochism=1 {autolobelia} {#if @vertigo=1 {autolobelia} {#if @agoraphobia=1 {autolobelia} {#if @healthleech=1 {autokelp} {#if @clumsiness=1 {autokelp} {#if @darkshade=1 {autoginseng} {#if @claustrophobia=1 {autolobelia} {#if @recklessness=1 {Autolobelia} {#if @dizzyness=1 {autogoldenseal} {#if @sensitivity=1 {Autokelp} {#if @paranoia=1 {autoash} {#if @dementia=1 {autoash} {#if @slickness=1 {autobloodroot} {#if @epilepsy=1 {autogoldenseal} {#if @pacifism=1 {autobellwort} {#if @healthleech=1 {autokelp} {#if @nausea=1 {autoginseng} {#if @weakening=1 {autokelp} {#if @shyness=1 {autogoldenseal} {#if @haemophilia=1 {autoginseng} {#if @generosity=1 {autobellwort} {#if @peace=1 {autobellwort} {#if @scytherus=1 {autoginseng} {#if @loversaffect=1 {autobellwort} {#if @hypochondria=1 {autokelp} {#if @dissonance=1 {autogoldenseal} {#if @hallucinating=1 {autoash} {#if @loneliness=1 {autolobelia} {#if @lethargy=1 {autoginseng} {#if @addiction=1 {autoginseng} {#if @hypersomnia=1 {autoash} {#if @loversaffect=1 {autobellwort} {#if @defenced=1 {#if @blindness=0 {autobayberry} {#if @insomnia=0 {autocohosh} {#if @deafness=0 {#if @eatinhawthorn=0 {autohawthorn}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} {#if @leftarm=0 {#if @stupidity=1 {autogoldenseal} {#if @asthma=1 {autokelp} {#if @paralysis=1 {autobloodroot} {#if @confusion=1 {autoash} {#if @justice=1 {autobellwort} {#if @impatience=1 {autogoldenseal} {#if @masochism=1 {autolobelia} {#if @vertigo=1 {autolobelia} {#if @agoraphobia=1 {autolobelia} {#if @healthleech=1 {autokelp} {#if @clumsiness=1 {autokelp} {#if @darkshade=1 {autoginseng} {#if @claustrophobia=1 {autolobelia} {#if @recklessness=1 {Autolobelia} {#if @dizzyness=1 {autogoldenseal} {#if @sensitivity=1 {Autokelp} {#if @paranoia=1 {autoash} {#if @dementia=1 {autoash} {#if @slickness=1 {autobloodroot} {#if @epilepsy=1 {autogoldenseal} {#if @pacifism=1 {autobellwort} {#if @healthleech=1 {autokelp} {#if @nausea=1 {autoginseng} {#if @weakening=1 {autokelp} {#if @shyness=1 {autogoldenseal} {#if @haemophilia=1 {autoginseng} {#if @generosity=1 {autobellwort} {#if @peace=1 {autobellwort} {#if @scytherus=1 {autoginseng} {#if @loversaffect=1 {autobellwort} {#if @hypochondria=1 {autokelp} {#if @dissonance=1 {autogoldenseal} {#if @hallucinating=1 {autoash} {#if @loneliness=1 {autolobelia} {#if @lethargy=1 {autoginseng} {#if @addiction=1 {autoginseng} {#if @hypersomnia=1 {autoash} {#if @loversaffect=1 {autobellwort} {#if @defenced=1 {#if @blindness=0 {autobayberry} {#if @insomnia=0 {autocohosh} {#if @deafness=0 {#if @eatinhawthorn=0 {autohawthorn}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
here is the alias itself the error message im getting is(highlighted in red in class script window):
=0 {#if @stupidity=1 {autogoldenseal} {#if @asthma=1 {autokelp} {#if @paralysis=1 {autobloodroot} {#if @confusion=1 {autoash} {#if @justice=1 {autobellwort} {#if @impatience=1 {autogoldenseal} {#if @masochism=1 {autolobelia} {#if @vertigo=1 {autolobelia} {#if @agoraphobia=1 {autolobelia} {#if @healthleech=1 {autokelp} {#if @clumsiness=1 {autokelp} {#if @darkshade=1 {autoginseng} {#if @claustrophobia=1 {autolobelia} {#if @recklessness=1 {Autolobelia} {#if @dizzyness=1 {autogoldenseal} {#if @sensitivity=1 {Autokelp} {#if @paranoia=1 {autoash} {#if @dementia=1 {autoash} {#if @slickness=1 {autobloodroot} {#if @epilepsy=1 {autogoldenseal} {#if @pacifism=1 {autobellwort} {#if @healthleech=1 {autokelp} {#if @nausea=1 {autoginseng} {#if @weakening=1 {autokelp} {#if @shyness=1 {autogoldenseal} {#if @haemophilia=1 {autoginseng} {#if @generosity=1 {autobellwort} {#if @peace=1 {autobellwort} {#if @scytherus=1 {autoginseng} {#if @loversaffect=1 {autobellwort} {#if @hypochondria=1 {autokelp} {#if @dissonance=1 {autogoldenseal} {#if @hallucinating=1 {autoash} {#if @loneliness=1 {autolobelia} {#if @lethargy=1 {autoginseng} {#if @addiction=1 {autoginseng} {#if @hypersomnia=1 {autoash} {#if @loversaffect=1 {autobellwort} {#if @defenced=1 {#if @blindness=0 {autobayberry} {#if @insomnia=0 {autocohosh} {#if @deafness=0 {#if @eatinhawthorn=0 {autohawthorn}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
and Syntax error arror is pointing at: {#if @dissonance=1 {autogoldenseal}
^Syntax Error
oh and it highlights: #ALIAS herbcheck {#if @stun=0 {#if @pause=0 {#if @anorexia=0 {#if @aeon=0 {#if @sleep=0 {#if
in blue always
If i look at it inside the class folder it doesnt find anything wrong only in class script |
|
|
|
misterbalrog Apprentice
Joined: 26 Oct 2004 Posts: 108
|
Posted: Fri Dec 10, 2004 4:38 pm |
holy shiznat! That's alot of nested If statements! Perhaps there would be a better approach to it than that :P
I'll have a look at them once I get more time, unless someone else beats me to it. |
|
|
|
Neuf Newbie
Joined: 10 Dec 2004 Posts: 3
|
Posted: Fri Dec 10, 2004 5:04 pm |
well its a part of affliction curing for achaea...
now the zmud doesnt find any errors in alias code only in class script help!! :) |
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Wed Dec 15, 2004 2:12 pm |
at the risk of sounding stupid, did u count the # of {}'s? Just to make sure that there isnt a } missing?
Edit
--
I ran the script you gave thru MS Word.
I did a replace of all the {'s with $ and got a result of 176 changes.
I then did a replace of all the }'s with $ and got a result of 175.
Thus, you are missing a }
dunno where.
Might be in the 1st set of }}}}'s or in the last set of }}}}'s
Try and see. |
|
|
|
misterbalrog Apprentice
Joined: 26 Oct 2004 Posts: 108
|
Posted: Wed Dec 15, 2004 3:20 pm |
First of all, as stated by DeathDealer, it's missing a }. I located it and it's at the very end.
Secondly, I'd suggest that you put those if's after the rightarm check into an alias, cuz at a glance it seems like the left arm and right arm check are the same. So to make it more easilly edited do that first. Then try and find similar things in the next section. Cuz that's alot... ALOT of nested if's...
you can reduce the first if statements into one to begin with... and where you have consequtive if statements that issue the same command upon a true value, smash them together. And so forth... |
|
|
|
|
|