First off, let me explain what i'm doing.
I'm making an npc which drops something when selected.
I've got a class which should read which image to show from a variable in the original weapon.
PHP Code:
with (putnpc2(x,y, "join hat;")) {
this.hatImage = "1";
}
}
Is the method i'm trying to use. But whatn I read this.hatimage in the hat class, it is empty. PutNPC is executed serverside.
I've also tried it like this:
PHP Code:
temp.npc = putnpc2(player.x, player.y, "join(\"hat\");");
with(temp.npc) {
temp.hatImage = "3";
}