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:
All I am trying to accomplish is add a "option.accountNAME = 0" if there is no string nammed option.accountNAME