diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-10 00:30:08 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-10 00:30:08 -0300 |
commit | 785be919457363ea5d014a33688402c78602408e (patch) | |
tree | dfb06ebe74d8ca5627b5abfe65e395148f20918c /npc | |
parent | 22a90d69f58ce320313be0ac00b6e50f21ef99c1 (diff) | |
download | serverdata-785be919457363ea5d014a33688402c78602408e.tar.gz serverdata-785be919457363ea5d014a33688402c78602408e.tar.bz2 serverdata-785be919457363ea5d014a33688402c78602408e.tar.xz serverdata-785be919457363ea5d014a33688402c78602408e.zip |
Oops
Diffstat (limited to 'npc')
-rwxr-xr-x | npc/functions/default_npc_checks.txt | 4 |
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; |