summaryrefslogtreecommitdiff
path: root/npc/re/jobs/3-1
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/re/jobs/3-1
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/re/jobs/3-1')
-rw-r--r--npc/re/jobs/3-1/guillotine_cross.txt2
-rw-r--r--npc/re/jobs/3-1/ranger.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/npc/re/jobs/3-1/guillotine_cross.txt b/npc/re/jobs/3-1/guillotine_cross.txt
index 3d2996a28..88d7b9f9f 100644
--- a/npc/re/jobs/3-1/guillotine_cross.txt
+++ b/npc/re/jobs/3-1/guillotine_cross.txt
@@ -3461,7 +3461,7 @@ OnTouch:
OnTimer:
//FIXME: This is a workaround for...
//var pccount_tt = GetNeighborPcNumber 2
- getmapxy(.@map$,.@x,.@y,1);
+ getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC);
setarray .@x[1],.@x-2,.@x+2;
setarray .@y[1],.@y-2,.@y+2;
sleep 1000;
diff --git a/npc/re/jobs/3-1/ranger.txt b/npc/re/jobs/3-1/ranger.txt
index 35a2683ed..dd26786d2 100644
--- a/npc/re/jobs/3-1/ranger.txt
+++ b/npc/re/jobs/3-1/ranger.txt
@@ -1589,7 +1589,7 @@ OnInit:
OnEnable:
enablenpc strnpcinfo(0);
initnpctimer;
- getmapxy(.@map$,.@x,.@y,1);
+ getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC);
monster "job3_rang02",.@x,.@y,"Egg Bomb",1047,1,strnpcinfo(0)+"::OnMyMobDead";
switch(atoi(strnpcinfo(2))%3) {
case 0: .@str$ = "Hey, I am going to explode. What are you going to do?"; break;