From 3f1a21bd4530ccf2932a85b4e3fa9d1201704dae Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 02:59:58 -0300 Subject: Fix bugs with shake, but there's an annoying dialog box %%e --- npc/functions/shake.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/npc/functions/shake.txt b/npc/functions/shake.txt index 0dabfb602..a20fc6b43 100644 --- a/npc/functions/shake.txt +++ b/npc/functions/shake.txt @@ -7,16 +7,20 @@ OnShake: @shake+=1; movecam rand(-20,20), rand(-20,20); - if (@shake < @max_shake) + + if (@shake < @max_shake) { addtimer(50, "shake::OnShake"); - else + } else { @shake=0; + restorecam; + closedialog; + } end; // Called by GM Command OnGM: @shake=0; - @max_shake=rand(4,8); + @max_shake=rand(6,10); addtimer(50, "shake::OnShake"); end; -- cgit v1.2.3-60-g2f50