I'm using a DB NPC, I need to trigger it from a class that the DB NPC is joined to.
The DB NPC's image is block.png
Here's the trigger (clientside)
PHP Code:
triggeraction( this.x +.5, this.y +.5, "BuyWep", [...] );
Here's the serverside onAction thing
PHP Code:
function onActionBuyWep( [...] )
{
player.chat = "trigger2";
[...]
}
What am I doing wrong?