Thread: the NPC's name
View Single Post
  #3  
Old 02-24-2009, 10:38 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Try using npc.name instead of the ID, then using findNPC(name) on serverside.

Quote:
Originally Posted by Crow View Post
Though, putnpc2() returns the name of the newly created NPC when it is called. Maybe you will find this useful.
No, putnpc2() returns the actual NPC object, hence why you can do this:

PHP Code:
temp.npc putnpc2(3232"");
npc.var = "foo";
npc.join("meow"); 
__________________
Reply With Quote