From 05e6280646b3857d1658af738fc4521e8b4d573a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 1 May 2020 00:14:58 -0300 Subject: 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: --- npc/042-6/ctrl.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc/042-6') 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; -- cgit v1.2.3-60-g2f50