summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/shake.txt5
-rw-r--r--npc/items/teleporter.txt2
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;