From 7c6c2416bc152de0758d7441a373e260b40c4d5b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 27 Sep 2015 19:06:59 +0300 Subject: Replace getnpcdir and setnpcdir with one or zero parameters to variable '.dir'. --- npc/000-1/chest.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'npc/000-1/chest.txt') diff --git a/npc/000-1/chest.txt b/npc/000-1/chest.txt index c11180f6a..15e9c922f 100644 --- a/npc/000-1/chest.txt +++ b/npc/000-1/chest.txt @@ -12,9 +12,9 @@ // 1 Treasure Chest has been opened. 000-1,83,70,0 script #chest NPC_CHEST,{ - if (getnpcdir ("") != 4) + if (.dir != 4) { - setnpcdir 2; + .dir = 2; initnpctimer; startnpctimer; close; @@ -30,15 +30,15 @@ npctalk3 l("You open the treasure chest."); } - setnpcdir 6; + .dir = 6; initnpctimer; startnpctimer; close; OnTimer160: stopnpctimer; - if (getnpcdir ("") == 2) setnpcdir 4; - if (getnpcdir ("") == 6) setnpcdir 0; + if (.dir == 2) .dir = 4; + if (.dir == 6) .dir = 0; end; OnInit: -- cgit v1.2.3-60-g2f50