View Single Post
  #1  
Old 08-15-2014, 02:14 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Posessed DBNPC - Please help

Okay I got a DBNPC. I noticed something that I canno't explain. I did not know it was possible and have no idea how to fix this.

I used the following:

PHP Code:
this.("option." player.account) = 0
as well as

PHP Code:
makevar("this.option." player.account) = 0
Problem I am having is no matter which one I use. I get strange behavior. Either the string does get added but then magically disappears when the player logs off, or it appears and stays in the list but then the next time it just creates a second string, and so on. So then I'm left with 2 strings with 100% the same name.

Also,

PHP Code:
temp.pl2 findplayer("bloodpet");
this.("option." "bloodpet") = 1;
if ( 
this.option.bloodpet == null ) echo("null"); 
Outputs:

PHP Code:
null 
All I am trying to accomplish is add a "option.accountNAME = 0" if there is no string nammed option.accountNAME

Last edited by scriptless; 08-15-2014 at 02:32 AM..
Reply With Quote