summaryrefslogtreecommitdiff
path: root/npc/000-2-1
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-27 19:06:59 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-27 19:06:59 +0300
commit7c6c2416bc152de0758d7441a373e260b40c4d5b (patch)
treeb992f72b272550240cac03938bea3d455ba47135 /npc/000-2-1
parentd7143f263c94bb70e67674d2243c765226e8fb12 (diff)
downloadserverdata-7c6c2416bc152de0758d7441a373e260b40c4d5b.tar.gz
serverdata-7c6c2416bc152de0758d7441a373e260b40c4d5b.tar.bz2
serverdata-7c6c2416bc152de0758d7441a373e260b40c4d5b.tar.xz
serverdata-7c6c2416bc152de0758d7441a373e260b40c4d5b.zip
Replace getnpcdir and setnpcdir with one or zero parameters to variable '.dir'.
Diffstat (limited to 'npc/000-2-1')
-rw-r--r--npc/000-2-1/chest.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/000-2-1/chest.txt b/npc/000-2-1/chest.txt
index 70b72c9b..563e4fde 100644
--- a/npc/000-2-1/chest.txt
+++ b/npc/000-2-1/chest.txt
@@ -14,9 +14,9 @@
.@q = getq(ShipQuests_Arpan);
if (.@q == 0) goto L_Talk;
- if (getnpcdir ("") == 4) goto L_Give;
+ if (.dir == 4) goto L_Give;
- setnpcdir 2;
+ .dir = 2;
initnpctimer;
startnpctimer;
close;
@@ -35,8 +35,8 @@ L_Give:
OnTimer220:
stopnpctimer;
- if (getnpcdir ("") == 2) setnpcdir 4;
- if (getnpcdir ("") == 6) setnpcdir 0;
+ if (.dir == 2) .dir = 4;
+ if (.dir == 6) .dir = 0;
end;
L_Talk:
@@ -45,7 +45,7 @@ L_Talk:
close;
L_Quit:
- setnpcdir 6;
+ .dir = 6;
initnpctimer;
startnpctimer;
close;