summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-02-10 16:50:48 -0300
committerJesusaves <cpntb1@ymail.com>2024-02-10 16:50:48 -0300
commit621a44fddd387bbc3f69f5cace5cb8f3d65d3d43 (patch)
tree13d01ad592254cef08f63496b2295d8528cb5cb4
parent846458d41106d7e4b002f1b332a0099ede5e74e4 (diff)
downloadserverdata-621a44fddd387bbc3f69f5cace5cb8f3d65d3d43.tar.gz
serverdata-621a44fddd387bbc3f69f5cace5cb8f3d65d3d43.tar.bz2
serverdata-621a44fddd387bbc3f69f5cace5cb8f3d65d3d43.tar.xz
serverdata-621a44fddd387bbc3f69f5cace5cb8f3d65d3d43.zip
Restrict how often the MK Showdown can be attempted to avoid coins inflation
2 hours for victory (50 coins generated) and 30 minutes for defeat (-)
-rw-r--r--npc/026-6/ctrl.c4
-rw-r--r--npc/026-7/boss.txt2
2 files changed, 6 insertions, 0 deletions
diff --git a/npc/026-6/ctrl.c b/npc/026-6/ctrl.c
index 10539b0d0..fbe6a9ac4 100644
--- a/npc/026-6/ctrl.c
+++ b/npc/026-6/ctrl.c
@@ -54,6 +54,10 @@ OnInit:
026-6,22,40,0, script #MKBossFightFire NPC_HIDDEN,0,0,{
end;
OnTouch:
+ if ($@MK_COOLDOWN > gettimetick(2)) {
+ dispbottom l("I should wait for %s.", ($GAME_STORYLINE >= 5 ? l("the Moubootaur arrange a new puppet") : l("the blood stains to be cleaned up")));
+ end;
+ }
// NOT a fortwarp() - there is no Barbara Bonus for the Showdown!
warp "026-7", 21, 28;
if (!$@MK_CHALLENGE) {
diff --git a/npc/026-7/boss.txt b/npc/026-7/boss.txt
index 66a246168..10bd715af 100644
--- a/npc/026-7/boss.txt
+++ b/npc/026-7/boss.txt
@@ -209,6 +209,7 @@ OnTimer10000:
if (!.@end) {
// This is not due to full health! We actually won!
kamibroadcast("The MONSTER KING has been DEFEATED!", "WORLD HEART");
+ $@MK_COOLDOWN = gettimetick(2) + 7200;
if ($GAME_STORYLINE != 5)
goto L_NextAct;
// Will not be cast if L_NextAct is summoned
@@ -217,6 +218,7 @@ OnTimer10000:
} else {
// We actually lost?!
kamibroadcast("The MONSTER KING has WON the showdown!", "WORLD HEART");
+ $@MK_COOLDOWN = gettimetick(2) + 1800;
// Apply some kind of penalty, like lowering EXP rate in 5% for a hour
// (NLib was 50% for 24 hours...)
if ($GAME_STORYLINE >= 5) {