24 lines
693 B
Plaintext
24 lines
693 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: FileName bet_100
|
|
//:://////////////////////////////////////////////
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Script Wizard
|
|
//:: Created On: 8/21/2002 1:38:34 PM
|
|
//:://////////////////////////////////////////////
|
|
void main()
|
|
{
|
|
// Set the variables
|
|
SetLocalInt(GetPCSpeaker(), "nBet", 100);
|
|
int oGold = GetGold(GetPCSpeaker());
|
|
|
|
if (oGold >= GetLocalInt(GetPCSpeaker(), "nBet"))
|
|
{
|
|
TakeGoldFromCreature(100, GetPCSpeaker(), TRUE);
|
|
}
|
|
|
|
else if (oGold < GetLocalInt(GetPCSpeaker(), "nBet"))
|
|
{
|
|
ActionSpeakString("You don't have enough gold!");
|
|
}
|
|
}
|