PWE_PRC8/_module/nss/bet_5.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

24 lines
687 B
Plaintext

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