summaryrefslogtreecommitdiff
path: root/npc/019-5-3
diff options
context:
space:
mode:
Diffstat (limited to 'npc/019-5-3')
-rw-r--r--npc/019-5-3/_import.txt4
-rw-r--r--npc/019-5-3/_warps.txt3
-rw-r--r--npc/019-5-3/episode.txt75
3 files changed, 82 insertions, 0 deletions
diff --git a/npc/019-5-3/_import.txt b/npc/019-5-3/_import.txt
new file mode 100644
index 000000000..07c705f89
--- /dev/null
+++ b/npc/019-5-3/_import.txt
@@ -0,0 +1,4 @@
+// Map 019-5-3: Indoors
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/019-5-3/_warps.txt",
+"npc/019-5-3/episode.txt",
diff --git a/npc/019-5-3/_warps.txt b/npc/019-5-3/_warps.txt
new file mode 100644
index 000000000..9c34218d9
--- /dev/null
+++ b/npc/019-5-3/_warps.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 019-5-3: Indoors warps
+019-5-3,31,33,0 warp #019-5-3_31_33 1,0,019-5,128,40
diff --git a/npc/019-5-3/episode.txt b/npc/019-5-3/episode.txt
new file mode 100644
index 000000000..08254dbe4
--- /dev/null
+++ b/npc/019-5-3/episode.txt
@@ -0,0 +1,75 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva <jesusalva@tmw2.org>
+// Description:
+// The Episode
+
+019-5-3,21,25,0 script Mysterious Chest#EP1 NPC_CHEST,{
+ if (instance_id() < 0) end;
+ .@gp = BankVault + Zeny;
+ .@money = 1+(BaseLevel > 60 ? (BaseLevel > 80 ? .@gp/5 : .@gp/10) : .@gp/50);
+ .@money = max(.@money, 1000);
+ mesc l("Do you want to open this chest?");
+ mesc l("You must deposit %s GP, which will be returned if quest is completed.", fnum(.@money));
+ mesc l("There is a time limit, which is already running.");
+ // At level 80, the "boss" is just small fry.
+ if (BaseLevel < 80)
+ mesc l("WARNING: Dangerous!!"), 1;
+ if (Zeny < .@money) close;
+ next;
+ if (askyesno() == ASK_NO) {
+ closeclientdialog;
+ close;
+ }
+ CHEST_MONEY=(CHEST_MONEY/2)+.@money; // You lose 50% of whatever you put earlier
+ Zeny-=.@money;
+ disablenpc instance_npcname("Mysterious Chest#EP1", getq2(LoFQuest_EPISODE));
+ enablenpc instance_npcname("Mysterious Chest#EP2", getq2(LoFQuest_EPISODE));
+ // Good luck with your boss :3
+ .@m$=getmap();
+ monster(.@m$, 31, 31, "???", JackO, 1);
+ sleep2(max(300, 10000-(BaseLevel * 100)));
+ monster(.@m$, 30, 31, "???", MagicGoblin, 1);
+ monster(.@m$, 31, 31, "???", MagicGoblin, 1);
+ sleep2(max(15000, 60000-(BaseLevel * 200)));
+ monster(.@m$, 30, 31, "???", MagicGoblin, 1);
+ monster(.@m$, 31, 31, "???", MagicGoblin, 1);
+ close;
+
+OnInit:
+ .distance = 2;
+ end;
+}
+
+
+019-5-3,21,25,0 script Mysterious Chest#EP2 NPC_CHEST,{
+ if (instance_id() < 0) end;
+ if (mobcount(getmap(), "all")) end;
+ mesc l("Do you want to open this chest?");
+ if (askyesno() == ASK_NO) {
+ closeclientdialog;
+ close;
+ }
+ if (getq(LoFQuest_EPISODE) != 11) {
+ atcommand("@ban 3d "+strcharinfo(0));
+ end;
+ }
+ .@q2 = getq2(LoFQuest_EPISODE);
+ instance_set_timeout(900, 900, .@q2);
+ warp "ep02@"+getcharid(0), 37, 20; // To Falkrun
+ disablenpc instance_npcname("#004-3-1_70_25", getq2(LoFQuest_EPISODE));
+ disablenpc instance_npcname("#004-3-1_68_33", getq2(LoFQuest_EPISODE));
+ disablenpc instance_npcname("Mysterious Chest#EP2", getq2(LoFQuest_EPISODE));
+ close;
+
+OnInstanceInit:
+ .distance = 2;
+ disablenpc instance_npcname("Mysterious Chest#EP2");
+ end;
+
+OnInit:
+ .distance = 2;
+ disablenpc .name$;
+ end;
+}
+