summaryrefslogtreecommitdiff
path: root/npc/001-1/portal.txt
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-26 23:34:16 -0300
committerjesusalva <cpntb1@ymail.com>2018-02-26 23:34:16 -0300
commit2d0fddc4907a165d795c48e4c6801d28251bd3e2 (patch)
treefab5fd5c3f9d53db7b6470355947d6329dd88915 /npc/001-1/portal.txt
parentf85715a8040993fb6ed3b4cc1a581ffbb36c41ce (diff)
downloadserverdata-2d0fddc4907a165d795c48e4c6801d28251bd3e2.tar.gz
serverdata-2d0fddc4907a165d795c48e4c6801d28251bd3e2.tar.bz2
serverdata-2d0fddc4907a165d795c48e4c6801d28251bd3e2.tar.xz
serverdata-2d0fddc4907a165d795c48e4c6801d28251bd3e2.zip
Soul Menhirs can send players to Aeros. The portal can be used to go back or enable event.
Diffstat (limited to 'npc/001-1/portal.txt')
-rw-r--r--npc/001-1/portal.txt20
1 files changed, 16 insertions, 4 deletions
diff --git a/npc/001-1/portal.txt b/npc/001-1/portal.txt
index a8c459963..5c98e3f1a 100644
--- a/npc/001-1/portal.txt
+++ b/npc/001-1/portal.txt
@@ -1,15 +1,27 @@
-001-1,301,43,0 script Soul Menhir NPC_SOUL_CLEAN,0,0,{
+001-1,235,25,0 script Soul Menhir NPC_HIDDEN,1,0,{
+
+OnTouch:
mesn;
- mes l("This Soul Menhir can send your soul and body back to the ground.");
+ mes l("This Soul Menhir can send your soul back to the world, along any items, money and/or experience gained.");
mes l("Would you like to leave this place?");
menu
- "Yes.", L_Leave,
- "No.", L_Close;
+ l("No."), L_Close,
+ rif(getgmlevel() && !$@GM_EVENT, l("Enable Event")), L_Enable,
+ rif(getgmlevel() && $@GM_EVENT, l("Disable Event")), L_Disable,
+ l("Yes."), L_Leave;
L_Leave:
warp getsavepoint(0), getsavepoint(1), getsavepoint(2);
goto L_Close;
+L_Enable:
+ $@GM_EVENT=1;
+ close;
+
+L_Disable:
+ $@GM_EVENT=0;
+ close;
+
L_Close:
close;
}