View Single Post
  #2  
Old 05-13-2008, 01:06 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Stryke View Post
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.
__________________
Reply With Quote