I'm trying to make a damage block instead of the player triggering the damage. But unfortunately I'm running into some issues.
How would I make this work to trigger other NPC's besides itself.
PHP Code:
function onActionServerside(temp.command, temp.x, temp.y)
{
switch(temp.command){
case "attack":
temp.tnpcs = findareanpcs(temp.x - 5, temp.y - 3, 10, 6);
for(temp.n : temp.tnpcs){
temp.n.chat = "Hit!";
}
}
}
Perhaps this question is badly worded and for that, I'm sorry forums.