Thread: putnpc2 problem
View Single Post
  #4  
Old 07-02-2007, 08:48 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Quote:
Originally Posted by Chompy View Post
Oh yeah, the error was it would just return an error in rc..

And, with your example I could do
PHP Code:
public function dropItem(id)
{
  
temp.obj putnpc2(3030"");
  
temp.obj.join("class name");
  
temp.obj.id id;

and then I would be able to do this.id in the class and return the id gived to the function dropItem?

Edit: Doesn't work in a WNPC
id is a reserved variable. You can't overwrite it. ( Or is that npcid? or name? I'm not sure anymore. )
Reply With Quote