summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-04 16:55:47 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-04 16:55:47 -0300
commit56ac02e00bda3bb7883ee64681675b402d012c4f (patch)
tree5b0e36b496907d7b3e77027f0bc369cd2de296af
parent03dcb5c1f2703d8f05170634fc127c06f994999c (diff)
downloadserverdata-56ac02e00bda3bb7883ee64681675b402d012c4f.tar.gz
serverdata-56ac02e00bda3bb7883ee64681675b402d012c4f.tar.bz2
serverdata-56ac02e00bda3bb7883ee64681675b402d012c4f.tar.xz
serverdata-56ac02e00bda3bb7883ee64681675b402d012c4f.zip
Change Act 3 duration from a fixed 500 to a 'flexible' 1000
Can be easily changed on constant files
-rw-r--r--db/constants.conf1
-rw-r--r--npc/023-2/mk.txt2
-rw-r--r--npc/functions/mkbot.txt2
-rw-r--r--npc/functions/news.txt2
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)