summaryrefslogtreecommitdiff
path: root/npc/033-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-06-25 23:30:22 -0300
committerJesusaves <cpntb1@ymail.com>2023-06-25 23:30:22 -0300
commit8a48bf02e99874e6aaf7171d259f5f2a3e8a45e3 (patch)
tree01cda97fc7d57df19cb3499702b577aa0acb819a /npc/033-1
parentf6a154887c944badbe9f73be4a4c6e2572399380 (diff)
downloadserverdata-8a48bf02e99874e6aaf7171d259f5f2a3e8a45e3.tar.gz
serverdata-8a48bf02e99874e6aaf7171d259f5f2a3e8a45e3.tar.bz2
serverdata-8a48bf02e99874e6aaf7171d259f5f2a3e8a45e3.tar.xz
serverdata-8a48bf02e99874e6aaf7171d259f5f2a3e8a45e3.zip
Add bare minimum support for Porthos Event Portals
Diffstat (limited to 'npc/033-1')
-rw-r--r--npc/033-1/misc.txt59
1 files changed, 58 insertions, 1 deletions
diff --git a/npc/033-1/misc.txt b/npc/033-1/misc.txt
index 50fc9de..4537c80 100644
--- a/npc/033-1/misc.txt
+++ b/npc/033-1/misc.txt
@@ -2,7 +2,7 @@
// Author:
// Jesusalva
// Description:
-// Guild House
+// Guild House & Warps
033-1,134,79,0 script #GDoor NPC_NO_SPRITE,0,0,{
end;
@@ -36,3 +36,60 @@ OnTouch:
}
+
+
+
+
+
+function script SetPorthosPortal {
+ .@id = getarg(0);
+ mesn l("Portal %02d", .@id);
+ mes l("Do you want to activate an event?");
+ next;
+ select
+ l("Cancel");
+ mes "";
+ switch (@menu) {
+ default:
+ mes l("Ok.");
+ break;
+ }
+ close;
+ return;
+}
+
+
+033-1,72,190,0 script #Porthos01 NPC_NO_SPRITE,0,0,{
+ end;
+OnTouch:
+ if ($@EVENT_01 == PORTHOS_BUSY) {
+ dispbottom l("This portal is currently busy - an event must be in progress.");
+ end;
+ }
+ if ($@EVENT_01 == PORTHOS_UNUSED) {
+ if (is_admin() || is_master())
+ SetPorthosPortal(1);
+ dispbottom l("This portal is not currently active.");
+ end;
+ }
+ warp $@EVENT_01_M$, $@EVENT_01_X, $@EVENT_01_Y;
+ end;
+}
+
+033-1,44,160,0 script #Porthos02 NPC_NO_SPRITE,0,0,{
+ end;
+OnTouch:
+ if ($@EVENT_02 == PORTHOS_BUSY) {
+ dispbottom l("This portal is currently busy - an event must be in progress.");
+ end;
+ }
+ if ($@EVENT_02 == PORTHOS_UNUSED) {
+ if (is_admin() || is_master())
+ SetPorthosPortal(2);
+ dispbottom l("This portal is not currently active.");
+ end;
+ }
+ warp $@EVENT_02_M$, $@EVENT_02_X, $@EVENT_02_Y;
+ end;
+}
+