AOC_PRC8/_module/nss/ch_bet_confirm2.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

16 lines
432 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
int iWager = GetLocalInt(oPC, "wager");
int iBets = GetLocalInt(oPC, "bets_placed");
int iOdds = GetLocalInt(oPC, "iOdds2");
iOdds = iOdds *3;
SetLocalInt(oPC, "iOdds2", iOdds);
iBets++;
SetLocalInt(oPC, "bets_placed", iBets);
TakeGoldFromCreature(iWager, oPC, TRUE);
SetLocalInt(oPC, "bet_confirmed", 1);
SetLocalInt(oPC, "conv_switch", 1);
ExecuteScript("holy_war_batt", OBJECT_SELF);
}