diff options
author | mekolat <mekolat@gmail.com> | 2015-04-21 00:30:19 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-04-30 02:06:42 -0400 |
commit | 27fe76b6a48cf51aa87346094845fb0ed6333304 (patch) | |
tree | 4f88cae1c5ce996adaa41de52f0e72830e2fd497 /world/map/npc/006-1 | |
parent | b28709f705abf9ca0fff5bf79f95d0599722fdff (diff) | |
download | serverdata-27fe76b6a48cf51aa87346094845fb0ed6333304.tar.gz serverdata-27fe76b6a48cf51aa87346094845fb0ed6333304.tar.bz2 serverdata-27fe76b6a48cf51aa87346094845fb0ed6333304.tar.xz serverdata-27fe76b6a48cf51aa87346094845fb0ed6333304.zip |
make PCtoNPCRange smarter
Diffstat (limited to 'world/map/npc/006-1')
-rw-r--r-- | world/map/npc/006-1/miriam.txt | 4 | ||||
-rw-r--r-- | world/map/npc/006-1/pachua.txt | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/world/map/npc/006-1/miriam.txt b/world/map/npc/006-1/miriam.txt index f513955b..8b7ebdb4 100644 --- a/world/map/npc/006-1/miriam.txt +++ b/world/map/npc/006-1/miriam.txt @@ -20,10 +20,8 @@ 006-1,115,111,0|script|Miriam|175 { - setarray @npc_loc, 115, 111, 2; + set @npc_distance, 2; callfunc "PCtoNPCRange"; - if (@npc_check) - goto L_Close; if (getskilllv(SKILL_SPEED)) goto L_fast; if (getequipid(equip_torso) < 0) goto L_naked; diff --git a/world/map/npc/006-1/pachua.txt b/world/map/npc/006-1/pachua.txt index 7b39dce7..cdc8d40e 100644 --- a/world/map/npc/006-1/pachua.txt +++ b/world/map/npc/006-1/pachua.txt @@ -1,6 +1,6 @@ 006-1,24,113,0|script|Pachua|143 { - setarray @npc_loc, 24, 113, 4; + set @distance_handler, 1; callfunc "PCtoNPCRange"; if (@npc_check) goto L_Close; |