summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rwxr-xr-xnpc/functions/default_npc_checks.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/default_npc_checks.txt b/npc/functions/default_npc_checks.txt
index c02cf016..594f56af 100755
--- a/npc/functions/default_npc_checks.txt
+++ b/npc/functions/default_npc_checks.txt
@@ -3,8 +3,8 @@ function script PCtoNPCRange {
@npc_check = 0;
if(!@npc_distance) set @npc_distance, 4; // <== default distance
if(@npc_distance < 0) set @npc_distance, ATTACKRANGE;
- .@x=getvariableofnpc(.x, getnpcid());
- .@y=getvariableofnpc(.y, getnpcid());
+ .@x=getvariableofnpc(.x, strnpcinfo(0));
+ .@y=getvariableofnpc(.y, strnpcinfo(0));
if (!isin(getmap(), .@x, .@y, @npc_distance))
goto L_Return;
@npc_check = 1;