//:://///////////////////////////////////////////// //:: FileName bet_20 //::////////////////////////////////////////////// //::////////////////////////////////////////////// //:: Created By: Script Wizard //:: Created On: 8/21/2002 1:37:59 PM //::////////////////////////////////////////////// void main() { // Set the variables SetLocalInt(GetPCSpeaker(), "nBet", 20); int oGold = GetGold(GetPCSpeaker()); if (oGold >= GetLocalInt(GetPCSpeaker(), "nBet")) { TakeGoldFromCreature(20, GetPCSpeaker(), TRUE); } else if (oGold < GetLocalInt(GetPCSpeaker(), "nBet")) { ActionSpeakString("You don't have enough gold!"); } }