From 56ac02e00bda3bb7883ee64681675b402d012c4f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 4 Apr 2021 16:55:47 -0300 Subject: Change Act 3 duration from a fixed 500 to a 'flexible' 1000 Can be easily changed on constant files --- db/constants.conf | 1 + npc/023-2/mk.txt | 2 +- npc/functions/mkbot.txt | 2 +- npc/functions/news.txt | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/db/constants.conf b/db/constants.conf index caf663712..9f4ae0de3 100644 --- a/db/constants.conf +++ b/db/constants.conf @@ -2125,6 +2125,7 @@ constants_db: { // Special MK_SIEGE_DURATION: 790 + MK_SIEGE_TOTALPOWER: 1000 comment__: "Fortress Island Reqs" MKIF_LV_0F: 3 diff --git a/npc/023-2/mk.txt b/npc/023-2/mk.txt index cf5ded181..86d5244b6 100644 --- a/npc/023-2/mk.txt +++ b/npc/023-2/mk.txt @@ -75,7 +75,7 @@ L_Finish2: // Game Storyline advances: The Town Blockade Stage is now over $GAME_STORYLINE=1; - $MK_TEMPVAR=gettimeparam(GETTIME_DAYOFMONTH)+rand(30,35); + $MK_TEMPVAR=gettimeparam(GETTIME_DAYOFMONTH)+rand(30,35); // FIXME // Clean up the event $NIVALIS_LIBDATE=gettimetick(2); diff --git a/npc/functions/mkbot.txt b/npc/functions/mkbot.txt index 4f1037488..019c60ca5 100644 --- a/npc/functions/mkbot.txt +++ b/npc/functions/mkbot.txt @@ -233,7 +233,7 @@ OnTimer90000: $MK_TEMPVAR=0; } if ($GAME_STORYLINE == 2 && - $MK_TEMPVAR >= 500) { + $MK_TEMPVAR >= MK_SIEGE_TOTALPOWER) { kamibroadcast("##1##BThe Monster King army is in total disarray and disorder!", "Saulc"); sleep(2500); kamibroadcast("##1##BIt's our chance to strike back!", "Saulc"); diff --git a/npc/functions/news.txt b/npc/functions/news.txt index 7f7152d41..877dc323c 100644 --- a/npc/functions/news.txt +++ b/npc/functions/news.txt @@ -304,7 +304,7 @@ function script Journalman { mesc l("The Monster King Army left the cities! What will happen next? Anxiety grows!"); break; case 2: - .@def=100-(($MK_TEMPVAR+rand2(-1,1))/5); + .@def=100-(($MK_TEMPVAR+rand2(-1,1))*100/MK_SIEGE_TOTALPOWER); if ($@MK_AGGRO >= 300) .@st$=col(b(l("very mad")), 1); else if ($@MK_AGGRO >= 200) -- cgit v1.2.3-60-g2f50