From cf8b6194ec35d2920b704533a4236e234a10658a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 17 Apr 2019 22:27:07 -0300 Subject: EXPERIMENTAL - Warp monsters on shrooms, too --- npc/001-4/mushroom.txt | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'npc/001-4') 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; } -- cgit v1.2.3-70-g09d2