This is in my weapon script, a Shovel.
PHP Code:
temp.i = putnpc2(temp.xx,temp.yy,"join shovel_misc1;");
with(findNPC(temp.i))this.owner = player.account;
shovel_misc1 Class:
PHP Code:
function onCreated() {
setshape(1,32,32);
}
//#CLIENTSIDE
function onCreated() {
setshape(1,32,32);
showimg(666,"block.png",x,y);
message(this.owner);
}
Anyone know it won't display the message.
I've also tried:
with(temp.i)this.owner = player.account;
temp.i.owner = player.account;