But, I still have the problem..
Inver told me to do level.putnpc2()
When using that no errors occured in rc, but it wouldn't put the class in the level
Problem solved:
two methods works: (Thanks Inver for the level.putnpc2())
PHP Code:
temp.obj = findplayer(this.acct).level.putnpc2(30, 30, "");
temp.obj.join("classname");
temp.obj.var = "foo";
or
PHP Code:
with(findplayer(this.acct)) {
temp.obj = this.level.putnpc2(30, 30, "");
temp.obj.join("classname");
temp.obj.var = "foo";
}