View Single Post
  #7  
Old 06-04-2007, 06:49 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by xAndrewx View Post
HTML Code:
public function setValue(oldVal, newVal)
(@ oldVal) = newVal;  
Bad names, here try this

HTML Code:
public function setValue(stringName, newValue)
{
  (@ temp.stringName) = temp.newValue; 
} 
Also, all you're doing with 'this.on' is re-placing it into your core NPC...
You'd use a function like this on an item database, changing local item flags. [updating etc]
Quote:
Originally Posted by zokemon View Post
SECOND EDIT:

On second thought, that won't work either as "this.on" will be using the first NPC as "this" (in essence it would be the same as doing "core.setValue("core.on", (this.on = !this.on));")
Didn't realize someone would reply so fast!
__________________
Do it with a DON!
Reply With Quote