summaryrefslogtreecommitdiff
path: root/npc/custom
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-18 05:48:23 +0100
committerHaru <haru@dotalux.com>2015-12-18 05:53:48 +0100
commita782aa1540b63d5fffd55d835f6f30ee0c53d0f1 (patch)
tree4d20c27f191e91adabb029342683687bce5ca4d5 /npc/custom
parentdbe5f2237cada6a261e297b60857dc305860a88d (diff)
downloadhercules-a782aa1540b63d5fffd55d835f6f30ee0c53d0f1.tar.gz
hercules-a782aa1540b63d5fffd55d835f6f30ee0c53d0f1.tar.bz2
hercules-a782aa1540b63d5fffd55d835f6f30ee0c53d0f1.tar.xz
hercules-a782aa1540b63d5fffd55d835f6f30ee0c53d0f1.zip
Replaced numeric values with UNITTYPE_ constants in getmapxy
Follow-up to dbe5f2237cada6a261e297b60857dc305860a88d Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/custom')
-rw-r--r--npc/custom/quests/hunting_missions.txt4
1 files changed, 2 insertions, 2 deletions
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))) {