summaryrefslogtreecommitdiff
path: root/npc/029-0/warps.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-10 15:52:38 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-10 15:52:38 -0300
commitfbe42e219c9c3bc092d54f5da68d9fb320af1690 (patch)
treedcccd28ba407f866da2d140d241cf950038670f5 /npc/029-0/warps.txt
parent74a5f40b495b76c57d4e5e9fd222f58f5ac29fd3 (diff)
downloadserverdata-fbe42e219c9c3bc092d54f5da68d9fb320af1690.tar.gz
serverdata-fbe42e219c9c3bc092d54f5da68d9fb320af1690.tar.bz2
serverdata-fbe42e219c9c3bc092d54f5da68d9fb320af1690.tar.xz
serverdata-fbe42e219c9c3bc092d54f5da68d9fb320af1690.zip
Fires of Steam - The Death of Andrei Sakar (initial version)
Unfinished
Diffstat (limited to 'npc/029-0/warps.txt')
-rw-r--r--npc/029-0/warps.txt110
1 files changed, 110 insertions, 0 deletions
diff --git a/npc/029-0/warps.txt b/npc/029-0/warps.txt
new file mode 100644
index 000000000..4a559437b
--- /dev/null
+++ b/npc/029-0/warps.txt
@@ -0,0 +1,110 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// Fires of Steam: The Death of Andrei Sakar
+
+//////////////////////////////////////////
+// Warp Control
+
+// FiresOfSteam_Warp(ID)
+function script FiresOfSteam_Warp {
+ if ($FIRESOFSTEAM < getarg(0))
+ end;
+ if ($FIRESOFSTEAM > getarg(0))
+ return true;
+ if ($FIRESOFSTEAM_CD > gettimetick(2)) {
+ dispbottom l("Time left until warp can be used: %s", FuzzyTime($FIRESOFSTEAM_CD));
+ end;
+ }
+ return false;
+}
+
+//////////////////////////////////////////
+029-1,147,153,0 script #291to292 NPC_HIDDEN,1,0,{
+ end;
+OnTouch:
+ if (FiresOfSteam_Warp(2)) goto L_Warp;
+ // Additional conditions here (TODO)
+ // Fallthrough
+L_Warp:
+ warp "029-2", 35, 70;
+ end;
+}
+
+029-2,35,38,0 script #292to293 NPC_HIDDEN,3,0,{
+ end;
+OnTouch:
+ if (FiresOfSteam_Warp(3)) goto L_Warp;
+ // Fallthrough
+L_Warp:
+ warp "029-3", 25, 68;
+ end;
+}
+
+029-3,126,99,0 script #293to294 NPC_HIDDEN,3,0,{
+ end;
+OnTouch:
+ if (FiresOfSteam_Warp(4)) goto L_Warp;
+ // Fallthrough
+L_Warp:
+ warp "029-4", 125, 18;
+ end;
+}
+
+029-4,21,98,0 script #294to295 NPC_HIDDEN,3,0,{
+ end;
+OnTouch:
+ if (FiresOfSteam_Warp(5)) goto L_Warp;
+ // Fallthrough
+L_Warp:
+ warp "029-5", 125, 18;
+ end;
+}
+
+029-5,70,25,0 script #295to296 NPC_HIDDEN,1,0,{
+ end;
+OnTouch:
+ if (FiresOfSteam_Warp(6)) goto L_Warp;
+ // Fallthrough
+L_Warp:
+ warp "029-6", 134, 31;
+ end;
+}
+
+029-6,27,90,0 script Great Tree#296to297 NPC_NO_SPRITE,{
+ if (FiresOfSteam_Warp(7)) goto L_Warp;
+ // Additional conditions here
+ mes l("Apparently, you'll need to use a %s to get this to work!", getitemlink(DruidTreeBranch));
+ if (!countitem(DruidTreeBranch)) close;
+ next;
+ if (askyesno() == ASK_NO) close;
+ closeclientdialog;
+ delitem DruidTreeBranch, 1;
+ // Fallthrough
+L_Warp:
+ warp "029-7", 96, 121;
+ end;
+
+OnInit:
+ .distance=3;
+ end;
+}
+
+029-7,80,49,0 script Dead Tree#297to298 NPC_NO_SPRITE,{
+ end;
+OnTouch:
+ if (FiresOfSteam_Warp(8)) goto L_Warp;
+ // Additional conditions here (TODO)
+ // Fallthrough
+L_Warp:
+ warp "029-8", 51, 174;
+ end;
+
+OnInit:
+ .distance=3;
+ end;
+}
+
+
+