Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Bobert
Beginner


Joined: 01 Apr 2004
Posts: 20
Location: Purdue University

PostPosted: Sun Mar 27, 2005 9:07 pm   

Access Violations and Parsing errors
 
I've been getting a few access violations in "Zmud.exe". These usually occur when I'm receiving a lot of text from the mud or sending a few commands at once.

I've also been getting parsing errors in the same situation. They've listed a few different triggers and I'll mention the parts I remember here. The bold parts are what showed up in the box.

#TRIGGER {&{hp}h, &{mn}m, &{ed}e, &{wp}w ([cexkdb@])~-} {
VAR/prompt=%5
#IF (%pos( x, %5)) {VAR/balance=1} {VAR/balance=0}
#IF (%pos( e, %5)) {VAR/equil=1} {VAR/equil=0}
#IF (%pos( k, %5)) {
ondef kola
unafflict unkola
} {
undef kola
afflict unkola
}
#IF (%pos( c, %5)) {ondef cloak} {undef cloak}
#IF (%pos( d, %5)) {
ondef deaf
unafflict undeaf
} {
undef deaf
afflict undeaf
}
#IF (%pos( b, %5)) {
ondef blind
unafflict unblind
} {
undef blind
afflict unblind
}
VAR/ignoring=0
} "" {nocr|prompt}
#ALIAS sp {#forall @VAR/pipecures {#if (%ismember( %{i.1}, @VAR/afflictions)) {%{i.2}}}}
and finally
#VAR VAR/hypnoq %delnItem( @VAR/hypnoq, 1)

Is there anyway to fix this, or is it just the result of too much spam and poor coding?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Mar 28, 2005 1:59 am   
 
The access violations could be caused by something entirely different that is damaging the memory and showing up in these places. However if the first reports of it consistently point to this trigger and alias then they are likely at fault.

One thing I noted in you alias:
#ALIAS sp {#forall @VAR/pipecures {#if (%ismember( %{i.1}, @VAR/afflictions)) {%{i.2}}}}
Without knowing the contents of your pipecures variable looks like it should be
#ALIAS sp {#forall @VAR/pipecures {#if (%ismember( @{%{i}.1}, @VAR/afflictions)) {@{%{i}.2}}}}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Bobert
Beginner


Joined: 01 Apr 2004
Posts: 20
Location: Purdue University

PostPosted: Mon Mar 28, 2005 2:46 am   
 
Sorry I didn't include the variable in the first post. The SP alias works fine as is, but I occasionally get that parsing error. The variable looks something like this.

#VAR pipecures {(affliction|cure)|(affliction|cure)|(affliction|cure)}
Reply with quote
Bobert
Beginner


Joined: 01 Apr 2004
Posts: 20
Location: Purdue University

PostPosted: Mon Mar 28, 2005 4:42 am   
 
Okay, I had the parsing error and access violation show up again.

The parsing error seems universal, every time I change a variable or run something it gets angry at me.

A window shows up saying:
Parse Error
Error parsing command:
Invalid Pointer Operation
#VAR VAR/variable %delItem( "item", @VAR/variable)

Other parse errors are as simple as variable=2

This is happening whenever any trigger fires, but it appears to start when the following Alarm goes off:
Code:
#ONINPUT {apply sileris} {
#VAR VAR/applysileris {1}
#ALARM "ApplySILERIS" {+2} {
  #IF (@VAR/applysileris) {
  #VAR VAR/applysileris {0}
  #ECHO Failsafe: Sileris not completed}
  }
}

There are times when "apply sileris" is sent within two seconds of each other, causing the Alarm to reset.

I'm also getting the Invalid Pointer Operation error when I try to reconnect without restarting.

Thanks for your help so far.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Mar 28, 2005 11:21 am   
 
I can't really see anything in there that would initially cause the problem. As I said in my first reply once the parsing system gets horked by an invalid pointer it often affects other syntax. While zMud is very good at detecting such error and stopping them the script language is very complex and often has multiple methods for achieving the same end. This means that you may not even get the error detected on the script causing it, but may have it appear on every subsequent thing. You may have to post/email a complete export your scripts for others to examine for odd syntaxes.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Bobert
Beginner


Joined: 01 Apr 2004
Posts: 20
Location: Purdue University

PostPosted: Mon Mar 28, 2005 9:30 pm   
 
Vijilante wrote:
You may have to post/email a complete export your scripts for others to examine for odd syntaxes.
My script is about 3500 lines when exported and I can't think why someone would want to go through all that to try and find poor syntaxes.

I will post the most recent additions to it, which may have started the problems. I hope its easy to read for anyone attempting to decipher my work.

The most questionable things I've done are these:
#EXECUTE %item( @VAR/hypnoq, 1)
#EXECUTE @VAR/hypnocombo


and for the second script:
#FORALL {VAR/applymend|VAR/applyet|VAR/applyeh|VAR/applyrh|VAR/applyra|VAR/applyrl|VAR/applycaloric} {#VAR %i {0}}

Code:
#CLASS {Snake|Hypno}
#ALIAS 1 {
  #ECHO Sleep hypno
  #VAR VAR/hypnocombo 1
  #VAR VAR/hypnoq {hypnotise @VAR/target|suggest @VAR/target hallucinations|suggest @VAR/target hypersomnia|suggest @VAR/target impatience|seal @VAR/target 1}
  }
#ALIAS 2 {
  #ECHO Scytherus hypno
  #VAR VAR/hypnocombo 2
  #VAR VAR/hypnoq {hypnotise @VAR/target|suggest @VAR/target addiction|suggest @VAR/target lethargy|suggest @VAR/target impatience|seal @VAR/target 1}
  }
#ALIAS advancehypno {
  #IF (%eval( (@VAR/balance) AND (@VAR/equil))) {
    #IF (%item( @VAR/hypnoq, 1) = %expand( snap @VAR/target)) {
      #IF (@VAR/hypnocombo=1) {
        envenom dirk with delphinium
        envenom dirk with delphinium
        envenom dirk with delphinium
        envenom dirk with curare
        envenom dirk with larkspur
        envenom dirk with aconite
        } {
          #IF (@VAR/hypnocombo=2) {
          envenom dirk with prefarar
          envenom dirk with prefarar
          envenom dirk with darkshade
          envenom dirk with euphorbia
          envenom dirk with larkspur
          envenom dirk with aconite
          }
        }
      }
    #EXECUTE %item( @VAR/hypnoq, 1)
    }
  }
#TRIGGER {^You snap your fingers infront of @VAR/target.$} {#IF (@VAR/hypnocombo=1) {#ALARM {+.5} {dstab @VAR/target}}}
#TRIGGER {^You issue the suggestion, concealing it deep within %w's mind.$} {#VAR VAR/hypnoq %delnItem( @VAR/hypnoq, 1)}
#TRIGGER {^You draw * out of {his|her} hypnotic daze,} {#VAR VAR/hypnoq {snap @VAR/target}}
#TRIGGER {^You fix * with an} {#VAR VAR/hypnoq %delnItem( @VAR/hypnoq, 1)}
#TRIGGER {^Your attempted hypnosis is broken.$} {#EXECUTE @VAR/hypnocombo}
#CLASS 0


Code:
#CLASS {Tracking|Failsafes}
#TRIGGER {~*~* Illusion ~*~*} {VAR/ignoring=1}
#TRIGGER {^%w sinks {his|her} fangs into your body, and you wince in pain.$} {#IF ((%ismember( "sileris", @VAR/ondefs)) OR (%ismember( "rebounding", @VAR/targetstate))) {VAR/ignoring=1}}
#TRIGGER {^%w pricks you twice in rapid succession with {his|her} dirk.$} {#IF ((%ismember( "rebounding", @VAR/ondefs)) OR (%ismember( "rebounding", @VAR/targetstate))) {VAR/ignoring=1}}
#COND {^%w pricks you twice in rapid succession with {his|her} dirk.$} {
  VAR/ignoring=1
  #ECHO Illusion: dstab
  } {within|param=9}
#TRIGGER {^You eat a piece of kelp.$} {
  #IF (@VAR/eatingkelp) {
    VAR/herbal=0
    unafflict anorexia
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #TEMP {%dh, %dm} {#VAR VAR/eatingkelp {0}} "" {prompt|nocr}
    } {
    #SAY ILLUSION: kelp
    VAR/ignoring=1
    }
  }
#TRIGGER {^You eat a bellwort flower.$} {
  #IF (@VAR/eatingbellwort) {
    VAR/herbal=0
    unafflict anorexia
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #TEMP {%dh, %dm} {#VAR VAR/eatingbellwort {0}} "" {prompt|nocr}
    } {
    #SAY ILLUSION: bellwort
    VAR/ignoring=1
    }
  }
#TRIGGER {^You eat a bloodroot leaf.$} {
  #IF (@VAR/eatingbloodroot) {
    VAR/herbal=0
    unafflict anorexia
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #TEMP {%dh, %dm} {#VAR VAR/eatingbloodroot {0}} "" {prompt|nocr}
    } {
    #SAY ILLUSION: bloodroot
    VAR/ignoring=1
    }
  }
#TRIGGER {^You eat a ginseng root.$} {
  #IF (@VAR/eatingginseng) {
    VAR/herbal=0
    unafflict anorexia
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #TEMP {%dh, %dm} {#VAR VAR/eatingginseng {0}} "" {prompt|nocr}
    } {
    #SAY ILLUSION: ginseng
    VAR/ignoring=1
    }
  }
#TRIGGER {^You eat some prickly ash bark.$} {
  #IF (@VAR/eatingash) {
    VAR/herbal=0
    unafflict anorexia
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #TEMP {%dh, %dm} {#VAR VAR/eatingash {0}} "" {prompt|nocr}
    } {
    #SAY ILLUSION: ash
    VAR/ignoring=1
    }
  }
#TRIGGER {^You eat a lobelia seed.$} {
  #IF (@VAR/eatinglobelia) {
    VAR/herbal=0
    unafflict anorexia
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #TEMP {%dh, %dm} {#VAR VAR/eatinglobelia {0}} "" {prompt|nocr}
    } {
    #SAY ILLUSION: lobelia
    VAR/ignoring=1
    }
  }
#TRIGGER {^You eat a goldenseal root.$} {
  #IF (@VAR/eatinggoldenseal) {
    #VAR VAR/herbal 0
    #VAR VAR/shouldeatgold 0
    unafflict anorexia
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        #VAR VAR/herbal 1
        #VAR VAR/tempcure 1
        #ECHO Herb balance timed out!
        }
      }
    #TEMP {%dh, %dm} {#VAR VAR/eatinggoldenseal {0}} "" {prompt|nocr}
    } {
    #SAY ILLUSION: goldenseal
    #VAR VAR/ignoring 1
    }
  }
#TRIGGER {^You eat a black cohosh root.$} {
  #IF (@VAR/eatingcohosh) {
    unafflict anorexia
    ondef insomnia
    afflict uninsomnia
    deltemp insomnia
    #TEMP {%dh, %dm} {#VAR VAR/eatingcohosh {0}} "" {prompt|nocr}
    } {
    #SAY ILLUSION: cohosh
    VAR/ignoring=1
    }
  } "" {nocr|prompt}
#TRIGGER {^You eat a piece of kelp.$%dh, %dm} {#IF (@VAR/eatingkelp) {
    VAR/herbal=0
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #VAR VAR/eatingkelp {0}
    #FORALL {sensitivity|weakness|clumsiness|asthma|anorexia} {unafflict %i}
    } {#SAY ILLUSION: kelp}} "" {nocr|prompt}
#TRIGGER {^You eat a bellwort flower.$%dh, %dm} {#IF (@VAR/eatingbellwort) {
    VAR/herbal=0
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #VAR VAR/eatingbellwort {0}
    #FORALL {loves|pacifism|peace|generosity|justice|anorexia} {unafflict %i}
    } {#SAY ILLUSION: bellwort}} "" {nocr|prompt}
#TRIGGER {^You eat a bloodroot leaf.$%dh, %dm} {#IF (@VAR/eatingbloodroot) {
    VAR/herbal=0
    unafflict anorexia
    unafflict paralysis
    unafflict slickness
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #VAR VAR/eatingbloodroot {0}
    } {#SAY ILLUSION: bloodroot}} "" {nocr|prompt}
#TRIGGER {^You eat a ginseng root.$%dh, %dm} {#IF (@VAR/eatingginseng) {
    VAR/herbal=0
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #VAR VAR/eatingginseng {0}
    #FORALL {addiction|darkshade|haemophilia|scytherus|vomiting|lethargy|anorexia} {unafflict %i}
    } {#SAY ILLUSION: ginseng}} "" {nocr|prompt}
#TRIGGER {^You eat some prickly ash bark.$%dh, %dm} {#IF (@VAR/eatingash) {
    VAR/herbal=0
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #VAR VAR/eatingash 0
    #FORALL {hypersomnia|confusion|dementia|hallucinations|paranoia|anorexia} {unafflict %i}
    } {#SAY ILLUSION: ash}} "" {nocr|prompt}
#TRIGGER {^You eat a lobelia seed.$%dh, %dm} {#IF (@VAR/eatinglobelia) {
    VAR/herbal=0
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #VAR VAR/eatinglobelia
    #FORALL {masochism|recklessness|vertigo|lonelisness|claustrophobia|agoraphobia|anorexia} {unafflict %i}
    } {#SAY ILLUSION: lobelia}} "" {nocr|prompt}
#TRIGGER {^You eat a goldenseal root.$%dh, %dm} {#IF (@VAR/eatinggoldenseal) {
    VAR/herbal=0
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #VAR VAR/eatinggoldenseal {0}
    #FORALL {stupidity|dizziness|epilepsy|digitalis|shyness|impatience|dissonance|anorexia} {unafflict %i}
    } {#SAY ILLUSION: goldenseal}} "" {nocr|prompt}
#TRIGGER {^You eat a goldenseal root.$Your mind relaxes and you feel as if you could sleep.$%dh, %dm} {#IF (@VAR/eatinggoldenseal) {
    VAR/herbal=0
    undef insomnia
    afflict uninsomnia
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #VAR VAR/eatinggoldenseal {0}
    #FORALL {stupidity|dizziness|epilepsy|digitalis|shyness|impatience|dissonance|anorexia} {unafflict %i}
    } {#SAY ILLUSION: goldenseal}} "" {nocr|prompt}
#TRIGGER {^You eat a black cohosh root.$%dh, %dm} {#IF (@VAR/eatingcohosh) {
    unafflict anorexia
    ondef insomnia
    unafflict uninsomnia
    deltemp insomnia
    #VAR VAR/eatingcohosh {0}
    } {#SAY ILLUSION: cohosh}} "" {nocr|prompt}
#TRIGGER {^You eat a hawthorn berry.$} {#IF (@VAR/eatinghawthorn) {
    VAR/herbal=0
    unafflict anorexia
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #VAR VAR/eatinghawthorn {0}
    } {#SAY ILLUSION: hawthorn}}
#TRIGGER {^You eat some bayberry bark.$} {#IF (@VAR/eatingbayberry) {
    VAR/herbal=0
    unafflict anorexia
    #ALARM "herbAlarm" {+2} {
      #IF (@VAR/herbal=0) {
        VAR/herbal=1
        VAR/tempcure=1
        #ECHO Herb balance timed out!
        }
      }
    #VAR VAR/eatingbayberry {0}
    } {#SAY ILLUSION: bayberry}}
#TRIGGER {^You take out some salve and quickly rub it on your *.$} {
  VAR/salvebal=0
  #TEMP {%dh, %dm} {#FORALL {VAR/applymend|VAR/applyet|VAR/applyeh|VAR/applyrh|VAR/applyra|VAR/applyrl|VAR/applycaloric} {#VAR %i {0}}}
  }
#TRIGGER {^You rub some %w on a needled-pointed dirk.$} {
  unafflict stunned
  unafflict asleep
  }
#TRIGGER {^You remove %d *, bringing the total in the Rift to %d.$} {
  unafflict webbed
  deltemp writhing
  }
#TRIGGER {^You prick %w twice in rapid succession with your dirk.$} {
  unafflict mla
  unafflict mra
  unafflict ma
  unafflict asleep
  unafflict stunned
  unafflict webbed
  unafflict bound
  unafflict transfixed
  unafflict roped
  unafflict paralysis
  unafflict peace
  unafflict pacifism
  VAR/balance=0
  }
#TRIGGER {^You sink your fangs into} {
  unafflict asleep
  unafflict stunned
  unafflict webbed
  unafflict bound
  unafflict transfixed
  unafflict roped
  unafflict paralysis
  unafflict peace
  unafflict pacifism
  VAR/balance=0
  }
#TRIGGER {^You slip behind} {
  unafflict mla
  unafflict mra
  unafflict ma
  unafflict asleep
  unafflict stunned
  unafflict webbed
  unafflict bound
  unafflict transfixed
  unafflict roped
  unafflict paralysis
  unafflict peace
  unafflict pacifism
  VAR/balance=0
  }
#TRIGGER {^You leap from the shadows} {
  unafflict mla
  unafflict mra
  unafflict ma
  unafflict asleep
  unafflict stunned
  unafflict webbed
  unafflict bound
  unafflict transfixed
  unafflict roped
  unafflict paralysis
  unafflict peace
  unafflict pacifism
  VAR/balance=0
  }
#TRIGGER {^You apply a sileris berry to yourself.$} {#VAR VAR/applysileris {0}}
#ONINPUT {apply epidermal to torso} {
  #VAR VAR/applyet {1}
  #ALARM "ApplyET" {+2} {
    #IF (@VAR/applyet) {
      #VAR VAR/applyet {0}
      #ECHO Failsafe: ET not completed
      }
    }
  } "" {notrig}
#ONINPUT {apply epidermal to head} {
  #VAR VAR/applyeh {1}
  #ALARM "ApplyEH" {+2} {
    #IF (@VAR/applyeh) {
      #VAR VAR/applyeh {0}
      #ECHO Failsafe: EH not completed
      }
    }
  } "" {notrig}
#ONINPUT {apply epidermal$} {
  #VAR VAR/applyepid {1}
  #ALARM "ApplyEPID" {+2} {
    #IF (@VAR/applyepid) {
      #VAR VAR/applyepid {0}
      #ECHO Failsafe: EPID not completed
      }
    }
  } "" {notrig}
#ONINPUT {apply mending$} {
  #VAR VAR/applymend {1}
  #ALARM "ApplyMEND" {+2} {
    #IF (@VAR/applymend) {
      #VAR VAR/applymend {0}
      #ECHO Failsafe: MEND not completed
      }
    }
  } "" {notrig}
#ONINPUT {apply restoration to head} {
  #VAR VAR/applyrh {1}
  #ALARM "ApplyRH" {+2} {
    #IF (@VAR/applyrh) {
      #VAR VAR/applyrh {0}
      #ECHO Failsafe: RH not completed
      }
    }
  } "" {notrig}
#ONINPUT {apply restoration to arms} {
  #VAR VAR/applyra {1}
  #ALARM "ApplyRA" {+2} {
    #IF (@VAR/applyra) {
      #VAR VAR/applyra {0}
      #ECHO Failsafe: RA not completed
      }
    }
  } "" {notrig}
#ONINPUT {apply restoration to legs} {
  #VAR VAR/applyrl {1}
  #ALARM "ApplyRL" {+2} {
    #IF (@VAR/applyrl) {
      #VAR VAR/applyrl {0}
      #ECHO Failsafe: RL not completed
      }
    }
  } "" {notrig}
#ONINPUT {apply caloric} {
  #VAR VAR/applycaloric {1}
  #ALARM "ApplyCALORIC" {+2} {
    #IF (@VAR/applycaloric) {
      #VAR VAR/applycaloric {0}
      #ECHO Failsafe: Caloric not completed
      }
    }
  } "" {notrig}
#ONINPUT {apply sileris} {
  #VAR VAR/applysileris {1}
  #ALARM "ApplySILERIS" {+2} {
    #IF (@VAR/applysileris) {
      #VAR VAR/applysileris {0}
      #ECHO Failsafe: Sileris not completed
      }
    }
  } "" {notrig}
#ONINPUT {eat goldenseal} {
  #VAR VAR/eatinggoldenseal {1}
  #ALARM "EatingGoldenseal" {+2} {
    #IF (@VAR/eatinggoldenseal) {
      #VAR VAR/eatinggoldenseal {0}
      #ECHO Failsafe: Did not eat Goldenseal
      }
    }
  } "" {notrig}
#ONINPUT {eat bloodroot} {
  #VAR VAR/eatingbloodroot {1}
  #ALARM "EatingBloodroot" {+2} {
    #IF (@VAR/eatingbloodroot) {
      #VAR VAR/eatingbloodroot {0}
      #ECHO Failsafe: Did not eat Bloodroot
      }
    }
  } "" {notrig}
#ONINPUT {eat ginseng} {
  #VAR VAR/eatingginseng {1}
  #ALARM "EatingGinseng" {+2} {
    #IF (@VAR/eatingginseng) {
      #VAR VAR/eatingginseng {0}
      #ECHO Failsafe: Did not eat Ginseng
      }
    }
  } "" {notrig}
#ONINPUT {eat lobelia} {
  #VAR VAR/eatinglobelia {1}
  #ALARM "EatingLobelia" {+2} {
    #IF (@VAR/eatinglobelia) {
      #VAR VAR/eatinglobelia {0}
      #ECHO Failsafe: Did not eat Lobelia
      }
    }
  } "" {notrig}
#ONINPUT {eat kelp} {
  #VAR VAR/eatingkelp {1}
  #ALARM "EatingKelp" {+2} {
    #IF (@VAR/eatingkelp) {
      #VAR VAR/eatingkelp {0}
      #ECHO Failsafe: Did not eat Kelp
      }
    }
  } "" {notrig}
#ONINPUT {eat ash} {
  #VAR VAR/eatingash {1}
  #ALARM "EatingAsh" {+2} {
    #IF (@VAR/eatingash) {
      #VAR VAR/eatingash {0}
      #ECHO Failsafe: Did not eat Ash
      }
    }
  } "" {notrig}
#ONINPUT {eat bellwort} {
  #VAR VAR/eatingbellwort {1}
  #ALARM "EatingBellwort" {+2} {
    #IF (@VAR/eatingbellwort) {
      #VAR VAR/eatingbellwort {0}
      #ECHO Failsafe: Did not eat Bellwort
      }
    }
  } "" {notrig}
#ONINPUT {eat hawthorn} {
  #VAR VAR/eatinghawthorn {1}
  #ALARM "EatingHawthorn" {+2} {
    #IF (@VAR/eatinghawthorn) {
      #VAR VAR/eatinghawthorn {0}
      #ECHO Failsafe: Did not eat Hawthorn
      }
    }
  } "" {notrig}
#ONINPUT {eat bayberry} {
  #VAR VAR/eatingbayberry {1}
  #ALARM "EatingBayberry" {+2} {
    #IF (@VAR/eatingbayberry) {
      #VAR VAR/eatingbayberry {0}
      #ECHO Failsafe: Did not eat Bayberry
      }
    }
  } "" {notrig}
#ONINPUT {eat cohosh} {
  #VAR VAR/eatingcohosh {1}
  #ALARM "EatingCohosh" {+2} {
    #IF (@VAR/eatingcohosh) {
      #VAR VAR/eatingcohosh {0}
      #ECHO Failsafe: Did not eat Cohosh
      }
    }
  } "" {notrig}
#CLASS 0


Other code that may be neccissary to see:
Code:
#ALIAS afflict {#IF ((!%ismember( "%1", @VAR/afflictions)) AND (!@VAR/ignoring)) {
    #VAR VAR/afflictions %addItem( "%1", @VAR/afflictions)
    #VAR VAR/tempcure 1
    #IF (@VAR/echomessages) {#ECHO New affliction: %1}
    } {#noop}}
#ALIAS unafflict {#IF ((%ismember( "%1", @VAR/afflictions)) AND (!@VAR/ignoring)) {
    #var VAR/afflictions %delItem( "%1", @VAR/afflictions)
    #VAR VAR/tempcure 1
    #IF (@VAR/echomessages) {#ECHO Cured: %1}
    } {#noop}}
#VAR afflictions {unkola|undeaf|unblind|unvenom|unlev|unfrost|unspeed|unsileris|uninsomnia|caloric|unrebound}


Thankyou for taking at look at this, I really appreciate it.
Reply with quote
Bobert
Beginner


Joined: 01 Apr 2004
Posts: 20
Location: Purdue University

PostPosted: Tue Mar 29, 2005 1:28 am   
 
Could I get an invalid pointer operation or access violatoin for attempting to do delete an item which is not a member of a string?
#VAR VAR/variable {var1|var2|var3|var4}
#VAR VAR/variable %delItem( "item1", @VAR/variable)

Or if I'm using
#IF (!@variable) instead of #IF (@variable=0) ?
Reply with quote
Bobert
Beginner


Joined: 01 Apr 2004
Posts: 20
Location: Purdue University

PostPosted: Thu Mar 31, 2005 1:41 am   
 
I'm still unable to solve this problem...

Could these errors be caused by:
#VAR variable {@var1|@var2|@var3} ?

And recently a new access violation popped up. Instead of the standard "Zmud.exe" its now in "ntdll.dll" (not sure why its there...)

Or could these be solved by reinstalling Zmud?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net