summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/slot_machine.txt
diff options
context:
space:
mode:
authorJesusaves <jesusalva@themanaworld.org>2020-08-17 18:28:47 -0300
committerGitHub <noreply@github.com>2020-08-17 21:28:47 +0000
commitb3c25ec3d41cf95c04270adbc08c0c30b1848d48 (patch)
tree349ba0b4802d8233a1a749c0f69e2c5980e521c4 /world/map/npc/functions/slot_machine.txt
parentcc7cd73338e5542b70f1255424a4df48f866d8de (diff)
downloadserverdata-b3c25ec3d41cf95c04270adbc08c0c30b1848d48.tar.gz
serverdata-b3c25ec3d41cf95c04270adbc08c0c30b1848d48.tar.bz2
serverdata-b3c25ec3d41cf95c04270adbc08c0c30b1848d48.tar.xz
serverdata-b3c25ec3d41cf95c04270adbc08c0c30b1848d48.zip
Doomsday Act 5 - Keshlam's Adventurer Guild (#560)
Contains utils, gameplay and epilogue functions for Doomsday Act 5 THE FINAL BATTLE Note: Balancing patches may follow and are expected. The debug commands (`@js33`, `@js67` and `@js99`) were not removed. There might be overlap in voicing, in case specialeffect2() fails to work as intended. Bonus Content: * MONOCLE QUEST * Golden Apple healing is now instantaneous. * PVP Coin (Unrelated but anyway) * Golden PVP Cap. * Fix PVP Cap weight.
Diffstat (limited to 'world/map/npc/functions/slot_machine.txt')
-rw-r--r--world/map/npc/functions/slot_machine.txt22
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;