View Single Post
  #7  
Old 01-06-2006, 02:17 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Well, seems like everyone's way off the subject.
PHP Code:
function onCreated() {
  
//you can't test clientr.vars in onCreated serverside, 
  //so this would be out of the question
  
this.reqflags = {clientr.quest_dungeon[0],clientr.quest_dungeon[1] == 2}
}

function 
onPlayerChats() {
  
//not to mention, something that changes in 
  //the level could change the variable that you're looking for.
  
clientr.quest_dungeon[0] == 1;
}

function 
onPlayerTouchsMe() {
  
//I want to do all of my boolean checks here,
  //but indicate the booleans that I want to check in onCreated() function.
  //Make it easier for the users of the class.
  
if (!0 in this.reqflags) {
    
setlevel2 this.level[0],this.newx[0],this.newy[0];
  }

Now, do you see my point?
Reply With Quote