From a782aa1540b63d5fffd55d835f6f30ee0c53d0f1 Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 18 Dec 2015 05:48:23 +0100 Subject: Replaced numeric values with UNITTYPE_ constants in getmapxy Follow-up to dbe5f2237cada6a261e297b60857dc305860a88d Signed-off-by: Haru --- npc/custom/quests/hunting_missions.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/custom/quests') diff --git a/npc/custom/quests/hunting_missions.txt b/npc/custom/quests/hunting_missions.txt index d4999648f..2b6057a51 100644 --- a/npc/custom/quests/hunting_missions.txt +++ b/npc/custom/quests/hunting_missions.txt @@ -270,14 +270,14 @@ OnNPCKillEvent: } } else if (.Party) { set .@mob, killedrid; - getmapxy(.@map1$,.@x1,.@y1,0); + getmapxy(.@map1$, .@x1, .@y1, UNITTYPE_PC); getpartymember getcharid(1),1; getpartymember getcharid(1),2; for(set .@i,0; .@i<$@partymembercount; set .@i,.@i+1) { if (isloggedin($@partymemberaid[.@i], $@partymembercid[.@i])) { attachrid $@partymemberaid[.@i]; if (#Mission_Count && Mission0 && Hp > 0) { - getmapxy(.@map2$,.@x2,.@y2,0); + getmapxy(.@map2$, .@x2, .@y2, UNITTYPE_PC); if ((.@map1$ == .@map2$ || .Party == 1) && (distance(.@x1,.@y1,.@x2,.@y2) <= 30 || .Party < 3)) { for(set .@j,0; .@j<.Quests; set .@j,.@j+1) { if (strmobinfo(1,.@mob) == strmobinfo(1,getd("Mission"+.@j))) { -- cgit v1.2.3-70-g09d2