Thread: putnpc2 problem
View Single Post
  #3  
Old 07-02-2007, 06:43 PM
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
Quote:
Originally Posted by Novo View Post
It would be nice to know what doesn't work.

I'm personally not a fan about double-with's... Nor am I a fan of 'temp.n' mysteriously becoming 'n'.

It could be on a gmap, and showing at the top-left corner... As for the npcs array trick, that was before putnpc2 returned an object.

How I usually do it is:

PHP Code:
public function dropItemid )
  {
  
temp."object_item";

  
temp.obj putnpc23030"" );
  
temp.obj.jointemp.);
  
// ...
  

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
__________________
Reply With Quote