Thread: Finding Params
View Single Post
  #1  
Old 05-28-2014, 12:07 AM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
Finding Params

I'm having issues with the placed NPC finding the right params...

On the placement..
PHP Code:
function onActionServerSide(){
 if (
params[0] == "place"){
  
temp.npc this.level.putNPC2(player.xplayer.y+1params[1]);
  
temp.npc.join("combat_dmgdisplay");
  }
 } 

//#CLIENTSIDE
//blah blah blah
triggerserver("weapon"this.name"place"123); //123 is my test value (params[1]..this is what I want the NPC placed to display 

and in the NPC..
PHP Code:
function onCreated(){
 
setImg("block.png");
 
setTimer(1);
 
dontblock();
 
drawoverplayer();
 
this.chat params[1];
 }
 
function 
onTimeOut(){
 
destroy();
 } 

The NPC just keeps saying 0..
I most likey have things in the wrong spots.

Someone help me out please!

Last edited by i8bit; 05-28-2014 at 09:14 AM..
Reply With Quote