summaryrefslogtreecommitdiff
path: root/npc/000-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-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-1')
-rw-r--r--npc/000-1/chest.txt10
-rw-r--r--npc/000-1/tarlan.txt4
2 files changed, 7 insertions, 7 deletions
diff --git a/npc/000-1/chest.txt b/npc/000-1/chest.txt
index c11180f6..15e9c922 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:
diff --git a/npc/000-1/tarlan.txt b/npc/000-1/tarlan.txt
index bae3109f..fb5cec58 100644
--- a/npc/000-1/tarlan.txt
+++ b/npc/000-1/tarlan.txt
@@ -5,7 +5,7 @@
// Sailor hitting a crocotree, then being struck by a falling croconut.
000-1,33,37,0 script Tarlan NPC_TARLAN,{
- setnpcdir 2;
+ .dir = 2;
mesn;
.@a = rand(4);
@@ -55,7 +55,7 @@ L_DoYou:
goto L_Quit;
L_Quit:
- setnpcdir 4;
+ .dir = 4;
close;
OnInit: