diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-27 19:06:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-27 19:06:59 +0300 |
commit | 7c6c2416bc152de0758d7441a373e260b40c4d5b (patch) | |
tree | b992f72b272550240cac03938bea3d455ba47135 /npc/functions/doors.txt | |
parent | d7143f263c94bb70e67674d2243c765226e8fb12 (diff) | |
download | serverdata-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/functions/doors.txt')
-rw-r--r-- | npc/functions/doors.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/functions/doors.txt b/npc/functions/doors.txt index 1ddc0d12..49b2846e 100644 --- a/npc/functions/doors.txt +++ b/npc/functions/doors.txt @@ -9,7 +9,7 @@ function script doorTouch { if (getareausers() <= 1) { - setnpcdir 2; + .dir = 2; stopnpctimer; initnpctimer; } @@ -19,7 +19,7 @@ function script doorTouch { function script doorUnTouch { if (getareausers() == 0) { - setnpcdir 4; + .dir = 4; initnpctimer; startnpctimer; } @@ -28,15 +28,15 @@ function script doorUnTouch { function script doorTimer { stopnpctimer; - if (getnpcdir() == 2) setnpcdir 6; - if (getnpcdir() == 4) setnpcdir 8; + if (.dir == 2) .dir = 6; + if (.dir == 4) .dir = 8; end; } function script open_door { .@door$ = getarg(0); - setnpcdir .@door$, 2; + setnpcdir.@door$, 2; sleep 300; setnpcdir .@door$, 6; sleep 300; |