diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-09-27 15:13:45 +0300 |
---|---|---|
committer | Joseph Botosh <rumly111@gmail.com> | 2015-09-27 15:13:45 +0300 |
commit | ef8d1f14940164412be61a1e5b521d0119447fcf (patch) | |
tree | a926613d6e3f9450eccd4e9e1f7157cbef4fc1b7 /npc | |
parent | 9c65f86d7a8da49537f25798b8f71616ee7c9245 (diff) | |
download | serverdata-ef8d1f14940164412be61a1e5b521d0119447fcf.tar.gz serverdata-ef8d1f14940164412be61a1e5b521d0119447fcf.tar.bz2 serverdata-ef8d1f14940164412be61a1e5b521d0119447fcf.tar.xz serverdata-ef8d1f14940164412be61a1e5b521d0119447fcf.zip |
add functions open_door, close_door
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/doors.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/npc/functions/doors.txt b/npc/functions/doors.txt index 1fc4163d..1ddc0d12 100644 --- a/npc/functions/doors.txt +++ b/npc/functions/doors.txt @@ -32,3 +32,23 @@ function script doorTimer { if (getnpcdir() == 4) setnpcdir 8; end; } + + +function script open_door { + .@door$ = getarg(0); + setnpcdir .@door$, 2; + sleep 300; + setnpcdir .@door$, 6; + sleep 300; + return 0; +} + + +function script close_door { + .@door$ = getarg(0); + setnpcdir .@door$, 4; + sleep 300; + setnpcdir .@door$, 8; + sleep 300; + return 0; +} |