Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.