16 lines
433 B
Plaintext
16 lines
433 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetPCSpeaker();
|
||
|
int iWager = GetLocalInt(oPC, "wager");
|
||
|
int iBets = GetLocalInt(oPC, "bets_placed");
|
||
|
iBets++;
|
||
|
int iOdds = GetLocalInt(oPC, "iOdds2");
|
||
|
iOdds = iOdds *10;
|
||
|
SetLocalInt(oPC, "iOdds2", iOdds);
|
||
|
SetLocalInt(oPC, "bets_placed", iBets);
|
||
|
TakeGoldFromCreature(iWager, oPC, TRUE);
|
||
|
SetLocalInt(oPC, "bet_confirmed", 1);
|
||
|
SetLocalInt(oPC, "conv_switch", 1);
|
||
|
ExecuteScript("holy_war_duel", OBJECT_SELF);
|
||
|
}
|