View Single Post
  #1  
Old 09-10-2008, 06:14 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Angry shop script help once again

PHP Code:
function onCreated()
{
  
setshape 1,32,32;
}
function 
onActionbuy()
{
  if(
playerrupees>=100)
  {
    
addweapon Event/Headbob;
    
playerrupees-=100;
  }
}
//#CLIENTSIDE
function onPlayerchats()
{
  if(
player.chat=="buy Headbob")
  {
    
triggeraction(x,y,"buy","buy");
    
//the level npc triggeraction type
  
}

when i put this in a lvl npc and say buy Headbob nothing happens

how do i fix it???
Reply With Quote