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.x, player.y+1, params[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!
