Quote:
Originally Posted by Codein
To access the variables stored in a db, use this:
PHP Code:
findnpc("DBname").varname = data;
(serverside)
and to access to data inside the npc, use this.varname.
|
To access variables in GS2, use
obj.var
Also, so long as your object names are not awful, you can just do
mydbnpc.var (assuming you named your dbnpc mydbnpc). If you have wacky characters, try ("x39w-sfjefDD2").var