summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-10-18 14:49:23 -0300
committerJesusaves <cpntb1@ymail.com>2018-10-18 14:49:23 -0300
commitd7e4d928941cae2cb2796beefc1dfbf5b8e47deb (patch)
tree12ddb004b92b9510155309d8b05c28b08411b683 /npc
parent1041456ec93c5d643b81d319b0b01666cb4446e4 (diff)
downloadserverdata-d7e4d928941cae2cb2796beefc1dfbf5b8e47deb.tar.gz
serverdata-d7e4d928941cae2cb2796beefc1dfbf5b8e47deb.tar.bz2
serverdata-d7e4d928941cae2cb2796beefc1dfbf5b8e47deb.tar.xz
serverdata-d7e4d928941cae2cb2796beefc1dfbf5b8e47deb.zip
Handle properly first stage of teleport block
Diffstat (limited to 'npc')
-rw-r--r--npc/021-1/logic.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/npc/021-1/logic.txt b/npc/021-1/logic.txt
index b57844cb0..f631fc844 100644
--- a/npc/021-1/logic.txt
+++ b/npc/021-1/logic.txt
@@ -6,11 +6,16 @@
// Cave logic
021-1,155,196,0 script #MainLogic NPC_NOSPRITE,0,0,{
- if ($@CINDY_STATE == 0) goto L_Blocked;
- //warp "031-4", 40, 70;
+ if ($@CINDY_STATE > gettimetick(2) || $@CINDY_STATE == 0) goto L_Safe;
+ if ($@CINDY_STATE % 2 == 0) goto L_Blocked;
+ warp "021-2", 80, 102;
end;
L_Blocked:
dispbottom l("This place is reeking blood. We better come again later.");
end;
+
+L_Safe:
+ dispbottom l("There's no reason to enter these caves now.");
+ end;
}