diff options
author | Wushin <pasekei@gmail.com> | 2015-04-30 01:11:22 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-04-30 01:11:22 -0500 |
commit | 49b17a120e1b9ae26ef3039219051745ff46e913 (patch) | |
tree | 877deffe3f331b74d6af72bc0cf8f30f840736aa /world/map/npc/004-5/chest.txt | |
parent | b28709f705abf9ca0fff5bf79f95d0599722fdff (diff) | |
parent | 3a0df71ee09f9fceb323f608638cc94d9d65124e (diff) | |
download | serverdata-49b17a120e1b9ae26ef3039219051745ff46e913.tar.gz serverdata-49b17a120e1b9ae26ef3039219051745ff46e913.tar.bz2 serverdata-49b17a120e1b9ae26ef3039219051745ff46e913.tar.xz serverdata-49b17a120e1b9ae26ef3039219051745ff46e913.zip |
Merge pull request #336 from mekolat/new-builtins
Use the new builtins
Diffstat (limited to 'world/map/npc/004-5/chest.txt')
-rw-r--r-- | world/map/npc/004-5/chest.txt | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/world/map/npc/004-5/chest.txt b/world/map/npc/004-5/chest.txt index a54739fc..2b815aa3 100644 --- a/world/map/npc/004-5/chest.txt +++ b/world/map/npc/004-5/chest.txt @@ -1,8 +1,7 @@ 004-5,89,67,0|script|Old Chest#crastur|111 { - setarray @npc_loc, 89, 67, 1; + set @npc_distance, 1; callfunc "PCtoNPCRange"; - if(@npc_check == 1) goto L_Closer; set @spants_state, ((QUEST_WG_state & NIBBLE_2_MASK) >> NIBBLE_2_SHIFT); if(@spants_state > 5) goto L_Looted; if(@spants_state != 5) goto L_Unknown; @@ -22,10 +21,6 @@ L_Unknown: mes "You have no idea how to open this chest."; goto L_Close; -L_Closer: - mes "You need to move closer to open the chest."; - goto L_Close; - L_Close: close; } |