View Single Post
  #3  
Old 05-18-2008, 02:10 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
hmm, why the use of findnpc()?

PHP Code:
temp.putnpc2(temp.xx,temp.yy,"join shovel_misc1;");
// putnpc2 returns an oject, so 'temp.i' will point to the npc/object that was placed at x,y

with(temp.ithis.owner playero.account
and you probably have to use an attr to make the info accessable as Chris said

PHP Code:
temp.putnpc2(xxyy"");
temp.i.join("shovel_misc1");
temp.i.attr[30] = player.account
and in shovel_misc1:
PHP Code:
function onCreated() {
  echo(
this.attr[30]);
}

//#CLIENTSIDE
function onCreated() {
  
message(this.attr[30]);

or something like that
__________________
Reply With Quote