Rough script.
PHP Code:
function onActionServerSide()
{
if (params[0] == "putNPC") {
temp.npc = putnpc2(this.x, this.y, "join(\"newgas-" @ this.bombtype @ "\");");
temp.npc.time = random(30, 50);
temp.npc.owner = this.gasowner;
temp.npc.attr[25] = this.gasowner;
}
}
Then in the class...
PHP Code:
//#CLIENTSIDE
function onCreated()
{
chat = "My owner [" SPC attr[25] SPC "]";
}