generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
12
_module/nss/ch_bet_confirm.nss
Normal file
12
_module/nss/ch_bet_confirm.nss
Normal file
@@ -0,0 +1,12 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
int iWager = GetLocalInt(oPC, "wager");
|
||||
int iBets = GetLocalInt(oPC, "bets_placed");
|
||||
iBets++;
|
||||
SetLocalInt(oPC, "bets_placed", iBets);
|
||||
TakeGoldFromCreature(iWager, oPC, TRUE);
|
||||
SetLocalInt(oPC, "bet_confirmed", 1);
|
||||
SetLocalInt(oPC, "conv_switch", 1);
|
||||
ExecuteScript("holy_war", OBJECT_SELF);
|
||||
}
|
Reference in New Issue
Block a user