summaryrefslogtreecommitdiff
path: root/npc/001-4/mushroom.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/001-4/mushroom.txt')
-rw-r--r--npc/001-4/mushroom.txt19
1 files changed, 13 insertions, 6 deletions
diff --git a/npc/001-4/mushroom.txt b/npc/001-4/mushroom.txt
index 4a22c61b2..659882574 100644
--- a/npc/001-4/mushroom.txt
+++ b/npc/001-4/mushroom.txt
@@ -2,12 +2,19 @@
// Author:
// The Mana World Brazil
function script mushroomWarp {
- heal -5, -5;
- warp getmapname(), 0, 0;
- @n = rand(3);
- if (@n == 0) dispbottom l("Uhh... What happened...");
- if (@n == 1) dispbottom l("The world is spiniiiiiiiing...");
- if (@n == 2) dispbottom l("Ah... What is happening to meeeeeeee?");
+ if (playerattached())
+ {
+ heal -5, -5;
+ warp getmapname(), 0, 0;
+ @n = rand(3);
+ if (@n == 0) dispbottom l("Uhh... What happened...");
+ if (@n == 1) dispbottom l("The world is spiniiiiiiiing...");
+ if (@n == 2) dispbottom l("Ah... What is happening to meeeeeeee?");
+ }
+ else
+ {
+ unitwarp(0, "this", 0, 0);
+ }
return;
}