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/hammocks.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/hammocks.txt')
-rw-r--r-- | npc/functions/hammocks.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/functions/hammocks.txt b/npc/functions/hammocks.txt index 79b9328d..8e1c2fec 100644 --- a/npc/functions/hammocks.txt +++ b/npc/functions/hammocks.txt @@ -10,7 +10,7 @@ function script hamTouchLeft { if (getareausers() <= 1) { - setnpcdir 0; + .dir = 0; stopnpctimer; initnpctimer; } @@ -20,7 +20,7 @@ function script hamTouchLeft { function script hamUnTouch { if (getareausers() == 0) { - setnpcdir 2; + .dir = 2; initnpctimer; startnpctimer; } @@ -29,14 +29,14 @@ function script hamUnTouch { function script hamTimerLeft { stopnpctimer; - if (getnpcdir() == 2) setnpcdir 0; + if (.dir == 2) .dir = 0; end; } function script hamTouchRight { if (getareausers() <= 1) { - setnpcdir 0; + .dir = 0; stopnpctimer; initnpctimer; } @@ -45,6 +45,6 @@ function script hamTouchRight { function script hamTimerRight { stopnpctimer; - if (getnpcdir() == 2) setnpcdir 0; + if (.dir == 2) .dir = 0; end; } |