From 785be919457363ea5d014a33688402c78602408e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 10 Apr 2021 00:30:08 -0300 Subject: Oops --- npc/functions/default_npc_checks.txt | 4 ++-- 1 file 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; -- cgit v1.2.3-60-g2f50