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/quests/guildrelay.txt | 6 +++--- npc/quests/partyrelay.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/quests') diff --git a/npc/quests/guildrelay.txt b/npc/quests/guildrelay.txt index 79a6e99e5..0968c9ae0 100644 --- a/npc/quests/guildrelay.txt +++ b/npc/quests/guildrelay.txt @@ -1240,7 +1240,7 @@ - script RelayDummy2::GuildRelay2 4_M_SAGE_A,{ .@name$ = strnpcinfo(1); - getmapxy(.@m$,.@x,.@x,1); + getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC); .@GID = getcastledata(.@m$,1); if (checkweight(Knife,1) == 0) { mes "^3355FFWait a minute! You're"; @@ -1749,7 +1749,7 @@ - script RelayDummy3::GuildRelay3 4_M_SAGE_A,{ .@name$ = strnpcinfo(1); - getmapxy(.@m$,.@x,.@x,1); + getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC); .@GID = getcastledata(.@m$,1); if (checkweight(Knife,1) == 0) { mes "^3355FFWait a minute! You're"; @@ -2433,7 +2433,7 @@ - script GuildDummy4::GuildRelay4 4_M_SAGE_A,{ .@name$ = strnpcinfo(1); - getmapxy(.@m$,.@x,.@x,1); + getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC); .@GID = getcastledata(.@m$,1); if (checkweight(Knife,1) == 0) { mes "^3355FFWait a minute! You're"; diff --git a/npc/quests/partyrelay.txt b/npc/quests/partyrelay.txt index e4e9d0d49..da3fe5d0a 100644 --- a/npc/quests/partyrelay.txt +++ b/npc/quests/partyrelay.txt @@ -2492,7 +2492,7 @@ payon,168,314,3 script Lospii#payon::RelayLospii 4_M_KID1,{ close; } .@relaytime = gettime(GETTIME_HOUR); - getmapxy(.@m$,.@x,.@y,1,strnpcinfo(3)); + getmapxy(.@m$, .@x, .@y, UNITTYPE_NPC, strnpcinfo(3)); .@juwi = getareausers(.@m$,.@x-8,.@y-8,.@x+8,.@y+8); if (party_relay == 32) { mes "[Lospii]"; -- cgit v1.2.3-60-g2f50