From 63029ac7409e1c5c953db55830da253eca0f5c9f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 26 Jun 2018 18:23:17 -0300 Subject: Make OnNPCKillEvent work out of the box, to simplify setup --- npc/003-1/aidan.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/npc/003-1/aidan.txt b/npc/003-1/aidan.txt index e4ddd35e6..f16c246aa 100644 --- a/npc/003-1/aidan.txt +++ b/npc/003-1/aidan.txt @@ -161,13 +161,9 @@ OnInit: OnNPCKillEvent: if (getq(General_Hunter) == 0) end; - else if (getq(General_Hunter) == 1 && killedrid == Maggot) - setq2 General_Hunter, getq2(General_Hunter)+1; - else if (getq(General_Hunter) == 2 && killedrid == Snake) - setq2 General_Hunter, getq2(General_Hunter)+1; - else if (getq(General_Hunter) == 3 && killedrid == Scorpion) - setq2 General_Hunter, getq2(General_Hunter)+1; - else if (getq(General_Hunter) == 4 && killedrid == Mouboo) + + .@ghd=getq(General_Hunter); + if (killedrid == GHQ_GetMonsterIDByQuestID(.@ghd)) setq2 General_Hunter, getq2(General_Hunter)+1; end; } -- cgit v1.2.3-60-g2f50