Quote:
Originally Posted by Crow
People often use putNPC2() like this:
PHP Code:
putNPC2(30, 30, "this.join(\"classNameHere\");");
Using classes with putNPC2() is generally a good idea. You shouldn't ever write a whole script into that thing.
|
If you'd like to be even cleaner (more readable imo):
PHP Code:
temp.npc = this.level.putNPC2(30, 30, "");
temp.npc.join("myclass");