Quote:
Originally Posted by Stryke
How do I increase a player's amount of gralats if I can't use triggerserver on a Level NPC joined with a class? This is for a shop script.
|
I suggest triggering a weapon, but you can surely triggeraction that item.
For example,
PHP Code:
function onCreated()
{
setshape( 1, 32, 32 );
setimg( "block.png" );
}
function onActionDoesChat( c )
{
chat = c;
}
//#CLIENTSIDE
function onPlayerChats()
{
triggeraction( this.x, this.y, "DoesChat", player.chat );
}
You simply can't start it with Server.
Make sure you have the setshape, it is crucial.