diff options
Diffstat (limited to 'world/map/npc/functions/slot_machine.txt')
-rw-r--r-- | world/map/npc/functions/slot_machine.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/world/map/npc/functions/slot_machine.txt b/world/map/npc/functions/slot_machine.txt index cc8e5a70..8da5e46f 100644 --- a/world/map/npc/functions/slot_machine.txt +++ b/world/map/npc/functions/slot_machine.txt @@ -24,6 +24,28 @@ L_Play: goto L_Lost; if(@Temp1 != @Temp3) goto L_Lost; + if (CSN >= 9) + goto L_Default; + if (rand(6) < CSN) + goto L_Jackpot; + set CSN, CSN+1; + goto L_Default; + +L_Jackpot: + mes "Congratulations! You won!"; + mes "However, the slot machine"; + mes "do not give you the coins!"; + next; + mes "[Staff]"; + mes "\"I apologize for this problem."; + mes "I see you are a huge client of"; + mes "ours, so I'll give you a Monocle"; + mes "as a token of apology.\""; + getitem "Monocle", 1; + set CSN, 9; + goto L_Close; + +L_Default: mes "Congratulations! You won!"; mes "You get 10 casino coins"; getitem "CasinoCoins", 10; |