summaryrefslogtreecommitdiff
path: root/npc/functions/mkbot.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/mkbot.txt')
-rw-r--r--npc/functions/mkbot.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/npc/functions/mkbot.txt b/npc/functions/mkbot.txt
index 7fc290a24..4f1037488 100644
--- a/npc/functions/mkbot.txt
+++ b/npc/functions/mkbot.txt
@@ -16,7 +16,7 @@
// 2 - The Monster King is currently sieging towns at random
// 3 - The Monster King is preparing to perfom the Rite and Lightbringer seeks
// a wielder
-// 4 - The Rite is in progress. Players must walk to MK evil lair and fight.
+// 4 - The Rite is CONCLUDED. Players must walk to MK evil lair and fight.
// 5 - The Monster King is dead. Or something. Depends on players.
//
// $MK_TEMPVAR meaning depends on GAME STORYLINE
@@ -104,7 +104,7 @@ OnTimer90000:
// The Monster King will not move anymore because story
if ($GAME_STORYLINE == 0 ||
- $GAME_STORYLINE == 4) {
+ $GAME_STORYLINE == 5) {
if (.mp$ != "boss")
unitwarp($@MK, "boss", 45, 45);
initnpctimer;
@@ -163,12 +163,12 @@ OnTimer90000:
// Siege events (req. 300 aggro, 3 users, and 70% chances to begin)
if ($@MK_AGGRO >= ($GAME_STORYLINE == 2 ? 300 : 900) && .users >= 3 && rand2(0,100) < 70 &&
- is_between(1, 3, $GAME_STORYLINE) && $@MK_THROTTLE < gettimetick(2)){
+ is_between(1, 4, $GAME_STORYLINE) && $@MK_THROTTLE < gettimetick(2)){
// Delta handles the compulsory wait time between waves.
// 6 hours normally, 24 hours if the army is in disarray.
.@delta=6;
$@SIEGE_ABORTED = false;
- if ($GAME_STORYLINE == 3)
+ if ($GAME_STORYLINE >= 3)
.@delta=24;
// Tulimshar
if (compare(.mp$, "003-")) {
@@ -203,7 +203,7 @@ OnTimer90000:
// If a player is nearby while the Monster King prepares, event may happen
// Minimum 60 Aggro
if (.nearby > 1 && $@MK_AGGRO >= 80 &&
- ($GAME_STORYLINE == 1 || ($GAME_STORYLINE == 3 && $@MK_THROTTLE >= gettimetick(2)) )){
+ ($GAME_STORYLINE == 1 || ($GAME_STORYLINE >= 3 && $@MK_THROTTLE >= gettimetick(2)) )){
// We should decide event kind, but that's NYI
announce ("Monster King: I smell humans! Humans must die!"), bc_map|bc_npc;
@@ -242,6 +242,8 @@ OnTimer90000:
// Apply the changes
$GAME_STORYLINE=3;
$MK_TEMPVAR=0; // In past, we forced 1 month wait. Now we have KW mechs...
+ $MANA_BLVL-=10; // Set level to 20~30
+ $MANA_JLVL-=5; // Set job level to 15
}
// We're done, restart loop timer