diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-26 18:23:17 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-26 18:23:17 -0300 |
commit | 63029ac7409e1c5c953db55830da253eca0f5c9f (patch) | |
tree | dd4d6d20f2b61bba1a626bf6faf863d4ea0fabea /npc/003-1 | |
parent | 4d453590918ba0042b21508c3aba7be6c9de50f2 (diff) | |
download | serverdata-63029ac7409e1c5c953db55830da253eca0f5c9f.tar.gz serverdata-63029ac7409e1c5c953db55830da253eca0f5c9f.tar.bz2 serverdata-63029ac7409e1c5c953db55830da253eca0f5c9f.tar.xz serverdata-63029ac7409e1c5c953db55830da253eca0f5c9f.zip |
Make OnNPCKillEvent work out of the box, to simplify setup
Diffstat (limited to 'npc/003-1')
-rw-r--r-- | npc/003-1/aidan.txt | 10 |
1 files 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; } |