diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-09 12:23:48 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-09 12:23:48 -0300 |
commit | f53d673e4fb16502df10f8e6bd6ec03015a34d79 (patch) | |
tree | e945fd7b23b95fb445f7353d8b4eea561c057092 | |
parent | 87892b544811800d1c8d1cb56198739b844c6342 (diff) | |
download | serverdata-f53d673e4fb16502df10f8e6bd6ec03015a34d79.tar.gz serverdata-f53d673e4fb16502df10f8e6bd6ec03015a34d79.tar.bz2 serverdata-f53d673e4fb16502df10f8e6bd6ec03015a34d79.tar.xz serverdata-f53d673e4fb16502df10f8e6bd6ec03015a34d79.zip |
Play with shake
-rw-r--r-- | npc/functions/shake.txt | 5 | ||||
-rw-r--r-- | npc/items/teleporter.txt | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/npc/functions/shake.txt b/npc/functions/shake.txt index 62b772fb4..667f0c1b8 100644 --- a/npc/functions/shake.txt +++ b/npc/functions/shake.txt @@ -1,4 +1,7 @@ // Shake player screen +// Usage: +// set @max_shake then call OnShake +// call OnGM - script shake 32767,{ end; @@ -7,7 +10,7 @@ OnShake: @shake+=1; movecam rand(-20,20), rand(-20,20); - closeclientdialog; + //closeclientdialog; if (@shake < @max_shake) { addtimer(50, "shake::OnShake"); diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt index 13068e6c7..9679d280e 100644 --- a/npc/items/teleporter.txt +++ b/npc/items/teleporter.txt @@ -33,12 +33,14 @@ OnUse: close; L_Save: + doevent "shake::OnGM"; warp "Save", 0, 0; TELEPORTER_TIME=gettimetick(2)+(60*30); closedialog; end; L_LoF: + doevent "shake::OnGM"; warp "017-1", 0, 0; TELEPORTER_TIME=gettimetick(2)+(60*30); closedialog; |