summaryrefslogtreecommitdiff
path: root/npc/functions/gmbot.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-08 08:44:07 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-08 08:44:07 -0300
commit1b6ef8f9b16448afcce73a2269f3cf0849b7eb2d (patch)
treed1141b19e2028b171a5c58f3709f3a5f7d25245e /npc/functions/gmbot.txt
parente8d2149b4b3c6780197933369f836315491d20bc (diff)
downloadserverdata-1b6ef8f9b16448afcce73a2269f3cf0849b7eb2d.tar.gz
serverdata-1b6ef8f9b16448afcce73a2269f3cf0849b7eb2d.tar.bz2
serverdata-1b6ef8f9b16448afcce73a2269f3cf0849b7eb2d.tar.xz
serverdata-1b6ef8f9b16448afcce73a2269f3cf0849b7eb2d.zip
The monster king now automatically sieges Tulimshar, and @toevent works when
that is set ^.^ This means a new degree in how events are handled
Diffstat (limited to 'npc/functions/gmbot.txt')
-rw-r--r--npc/functions/gmbot.txt19
1 files changed, 14 insertions, 5 deletions
diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt
index e4985cbeb..b8695f6c6 100644
--- a/npc/functions/gmbot.txt
+++ b/npc/functions/gmbot.txt
@@ -28,9 +28,6 @@ OnInit:
.aid="200000";
.cid="150002";
// Constants
- .MK_SIEGE=1;
- .MK_BONUS=2;
- .MK_MANAF=3;
// We should jump straight to loop (it runs every 62 seconds)
OnTimer62000:
@@ -42,7 +39,7 @@ OnTimer62000:
}
// We are on an event, so skip this loop
- if ($@MK_SCENE)
+ if ($@MK_SCENE || $@GM_EVENT)
initnpctimer;
// The Monster King is online. This loop is not needed
@@ -100,6 +97,18 @@ OnTimer62000:
end;
}
+ // Tulimshar Siege event
+ if (.mp$ ~= "003-*" && $@MK_AGGRO >= 30){
+ announce ("Monster King: I smell humans! Humans must die!"), bc_map|bc_npc;
+ $@MK_SCENE=MK_SIEGE_TULIM;
+ if ($@MK_AGGRO >= 90)
+ donpcevent("Lieutenant Dausen::OnMKSiege");
+ else if ($@MK_AGGRO >= 90)
+ donpcevent("Lieutenant Dausen::OnMKSiege");
+ else
+ donpcevent("Lieutenant Dausen::OnMKSiege");
+ }
+
// Decide if we should have an event here
if (.nearby > 1 && $@MK_AGGRO >= rand(0,100)){
// We should decide event kind, but that's NYI
@@ -112,7 +121,7 @@ OnTimer62000:
// Spawn stuff
areamonster(.@m$, .@x-20, .@y-20, .@x+20, .@y+20, "Monster", ManaGhost, ($@MK_AGGRO/10)+.nearby, "Monster King::OnSlaveDie");
- $@MK_AGGRO=0;
+ $@MK_AGGRO=$@MK_AGGRO/5;
}
// We're done, restart loop timer