View Single Post
  #25  
Old 12-30-2007, 06:17 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
PHP Code:
function onCreated()
{

  
setImgthis.img );
  
setShape116*216*);
  
this.spawnpoints={{ 1,},{ 8,},{ 9,},{ 12,62 },{ 12,},{ 15,73 },{ 51,52 }}; 
  
this.random=int(random(0,this.spawnpoints.size()+1));

}

function 
onActionGrabbed()
{

  
findPlayerparams0] ).addWeaponthis.weapon );
  
hide;
  
sleep(540);
  
setlevel2("final_gmap.gmap",this.spawnpoints[this.random][0],this.spawnpoints[this.random][1]);
  
show;
}

/*The script for NPC.

temp.n = putnpc2( temp.dx, temp.dy, "" ); 
with ( temp.n ) 


  join( "flooritem" ); 
  this.img = "icon.type"; 
  this.weapon = "Weapon/Name"; 

}

*/ 
this works?
__________________
I am the devil, I am here to do to devils work.
Reply With Quote