View Single Post
  #1  
Old 05-18-2008, 01:24 AM
Stryke Stryke is offline
Scripter
Join Date: Apr 2008
Posts: 157
Stryke is an unknown quantity at this point
Class troubles...

This is in my weapon script, a Shovel.
PHP Code:
temp.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;
Reply With Quote