AOC_PRC8/_module/nss/cha_bet_confirm.nss

13 lines
340 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:24:16 -04:00
void main()
{
object oPC = GetPCSpeaker();
int iWager = GetLocalInt(oPC, "wager");
int iBets = GetLocalInt(oPC, "bets_placed");
iBets++;
SetLocalInt(oPC, "bets_placed", iBets);
SetLocalInt(oPC, "conv_switch", 1);
TakeGoldFromCreature(iWager, oPC, TRUE);
SetLocalInt(oPC, "bet_confirmed", 1);
ExecuteScript("holy_war_champ", OBJECT_SELF);
}