Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-19-2007, 05:00 PM
ff7chocoboknight ff7chocoboknight is offline
Skyzer Zolderon
ff7chocoboknight's Avatar
Join Date: Dec 2006
Location: New Hampshire, United States
Posts: 725
ff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to all
Send a message via AIM to ff7chocoboknight Send a message via MSN to ff7chocoboknight
Unhappy Prize Shop script

The Events Team Admin in the pw I work for asked me to make him a script for a prize shop. I made it and he sent this script back saying it didn't work. This isn't the script I sent him though.... Can someone fix the script before I go mad?
HTML Code:
//#CLIENTSIDE
function onPlayerChats() {
  if (player.chat == "buy Juggling") {
     if (clientr.etcoins >= "30") {
        clientr.etcoins -= "30";
        addweapon "*Prizes/Juggle";
     }
  }
  if (player.chat == "buy PK Heal") {
     if (clientr.etcoins >= "30") {
        clientr.etcoins -= "30";
        addweapon "*Prizes/PK Heal";
    }
  }
  if (player.chat == "buy Jump") {
    if (clientr.etcoins >= "50") {
       clientr.etcoins -= "50";
       addweapon "*Prizes/Jump";
    }
  }
    if (player.chat == "buy Light Mouse") {
     if (clientr.etcoins >= "150") {
        clientr.etcoins -= "150";
        addweapon "*Prizes/Light Mouse";
    }
  }
}
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.