From f53d673e4fb16502df10f8e6bd6ec03015a34d79 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 9 Jul 2018 12:23:48 -0300 Subject: Play with shake --- npc/functions/shake.txt | 5 ++++- npc/items/teleporter.txt | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'npc') 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; -- cgit v1.2.3-70-g09d2