summaryrefslogtreecommitdiff
path: root/npc/003-0
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-27 13:05:38 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-27 13:05:38 -0300
commitd9fc1b9e39d08f002ac488fee12bd27b1b27bd8c (patch)
treeb0ea6782f8e34f636a77ef83eea144268e4d0331 /npc/003-0
parenteb703b9b5f2524f37b6d0a2be7e57012d960f67b (diff)
downloadserverdata-d9fc1b9e39d08f002ac488fee12bd27b1b27bd8c.tar.gz
serverdata-d9fc1b9e39d08f002ac488fee12bd27b1b27bd8c.tar.bz2
serverdata-d9fc1b9e39d08f002ac488fee12bd27b1b27bd8c.tar.xz
serverdata-d9fc1b9e39d08f002ac488fee12bd27b1b27bd8c.zip
[MQ2.5] Trigger conditions
Diffstat (limited to 'npc/003-0')
-rw-r--r--npc/003-0/mainquest.txt25
1 files changed, 23 insertions, 2 deletions
diff --git a/npc/003-0/mainquest.txt b/npc/003-0/mainquest.txt
index db737a704..be32fc935 100644
--- a/npc/003-0/mainquest.txt
+++ b/npc/003-0/mainquest.txt
@@ -10,7 +10,24 @@
OnTouch:
.@m$=getmap();
.@n$=instance_npcname(.name$);
- .@ni=is_night();
+ if (is_night())
+ doevent instance_npcname(.name$)+"::OnBegin";
+ else
+ addtimer 1000, instance_npcname(.name$)+"::OnCheck";
+ end;
+
+// Checks if you are in designated ambush zone. If not, keep hidden
+OnCheck:
+ .@m$=getmap();
+ .@n$=instance_npcname(.name$);
+ if (!isin(.@m$, 44, 24, 54, 34))
+ end;
+ // goto OnBegin;
+
+// Begin
+OnBegin:
+ .@m$=getmap();
+ .@n$=instance_npcname(.name$);
dispbottom col(l("SCRIPT ERROR (%s/%s)", .@m$, .@n$), 1);
end;
@@ -27,7 +44,11 @@ OnInstanceInit:
}
003-0,49,24,4 script Professor#003-0 NPC_PLAYER,{
- studenttalk();
+ npctalkonce l("I wonder if it'll take too long for the ship to arrive...");
+ end;
+
+OnTouchNPC:
+ npctalk ("SCRIPT ERROR (OnTouch Game Over)");
end;
OnInit: