summaryrefslogtreecommitdiff
path: root/npc/042-6
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-01 00:14:58 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-01 00:14:58 -0300
commit05e6280646b3857d1658af738fc4521e8b4d573a (patch)
treec2226122c3c59b918e038a33c6cae3fe901505b4 /npc/042-6
parentb71a38a0ab4234c52f0eb16f2b207bf2afc2d0fe (diff)
downloadserverdata-05e6280646b3857d1658af738fc4521e8b4d573a.tar.gz
serverdata-05e6280646b3857d1658af738fc4521e8b4d573a.tar.bz2
serverdata-05e6280646b3857d1658af738fc4521e8b4d573a.tar.xz
serverdata-05e6280646b3857d1658af738fc4521e8b4d573a.zip
Improve the debug information level available to me.
Can you believe I managed to get one of the worst drops on my test run? D:
Diffstat (limited to 'npc/042-6')
-rw-r--r--npc/042-6/ctrl.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/042-6/ctrl.txt b/npc/042-6/ctrl.txt
index e718c37de..11d9767a8 100644
--- a/npc/042-6/ctrl.txt
+++ b/npc/042-6/ctrl.txt
@@ -60,6 +60,18 @@ OnInstanceInit:
areamonster(.map$, 20, 20, 90, 90, strmobinfo(1, BronzeChest), BronzeChest, 3);
end;
+OnKillBoss:
+ if (!playerattached())
+ goto OnRespawn;
+ // Maybe a reward is due
+ .@g=getcharid(2);
+ if (.@g < 1) percentheal -100, -100;
+ getitem GuildCoin, 2+min(13, $KAMELOT_MX[.@g]/10);
+ getexp $KAMELOT_MX[.@g]*14, $KAMELOT_MX[.@g]*8;
+ mapannounce getmap(), strcharinfo(0)+" has defeated the boss!", 0;
+ .@delay=max(3000, 21000-$KAMELOT_PC[.@g]*1000);
+ goto OnRespawn;
+
OnKillMob:
if (!playerattached())
goto OnRespawn;