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