summaryrefslogtreecommitdiff
path: root/npc/004-3-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-05-07 16:48:19 -0300
committerJesusaves <cpntb1@ymail.com>2022-05-07 16:48:19 -0300
commit48475f59c168ab97767212c93ca64105da0ba710 (patch)
tree3f52ea96b31d9887c00b3e0210b1af1951289fdd /npc/004-3-1
parent2667d25751e5323523166a2f23b5195f11ee6013 (diff)
downloadserverdata-48475f59c168ab97767212c93ca64105da0ba710.tar.gz
serverdata-48475f59c168ab97767212c93ca64105da0ba710.tar.bz2
serverdata-48475f59c168ab97767212c93ca64105da0ba710.tar.xz
serverdata-48475f59c168ab97767212c93ca64105da0ba710.zip
The Episode is almost complete
Diffstat (limited to 'npc/004-3-1')
-rw-r--r--npc/004-3-1/falkrun.txt73
1 files changed, 73 insertions, 0 deletions
diff --git a/npc/004-3-1/falkrun.txt b/npc/004-3-1/falkrun.txt
index 71d85d39f..162e92402 100644
--- a/npc/004-3-1/falkrun.txt
+++ b/npc/004-3-1/falkrun.txt
@@ -5,9 +5,11 @@
// Part of the Doctor's Quest. Lore Master. Saulc's Residence Gatekeeper.
004-3-1,37,23,0 script Falkrun NPC_INDIGENOUS_ANY,{
+ if (instance_id() >= 0) goto L_Episode;
mesn;
mesq l("Howdy! Lately I feel like a placeholder, just surviving on these harsh lands.");
next;
+L_Main:
// He needs to explain the Civil War and the Great Fire for Doctor's Quest
mesn;
mesq l("Our clan has moved away from Tulimshar before the Civil War, almost was wiped off during the Great Fire, and when we thought we could finally life in peace, the Mana War and the Monster War broke out in rapid succession."); // Hence, TMW2
@@ -117,6 +119,77 @@
} while (@menu != 1);
close;
+L_Episode:
+ if (getq(LoFQuest_EPISODE) != 11)
+ goto L_Main;
+ if (getq3(LoFQuest_EPISODE) &&
+ mobcount(getmap(), all) <= 0)
+ goto L_EpFinish;
+ if (getq3(LoFQuest_EPISODE) &&
+ mobcount(getmap(), all) > 0) {
+ npctalk l("Good luck, %s! There are more monsters nearby!", strcharinfo(0));
+ end;
+ }
+ setq3 LoFQuest_EPISODE, 1;
+ mesn;
+ mesq l("Uh? What are you doing here?!");
+ next;
+ select
+ l("I don't know?"),
+ l("How did I got here?"),
+ l("Who are you?");
+ mes "";
+ mesn;
+ mesq l("What have you done?! We're under attack!");
+ next;
+ mesn;
+ mesq l("Quick, battle position! They'll strike! I'll help you a tiny bit!");
+ mesc l("WARNING: You have a time limit!"), 1;
+ next;
+ instance_set_timeout(900, 900, getq2(LoFQuest_EPISODE));
+ SC_Bonus(90, SC_INCHITRATE, 50);
+ SC_Bonus(90, SC_INCMHPRATE, 65);
+ SC_Bonus(90, SC_KAIZEL, 80);
+ percentheal 100, 100;
+ .@m$ = getmap();
+ monster(.@m$, 42, 31, "Lost", BlueSlimeMother, 1);
+ monster(.@m$, 45, 31, "Lost", CopperSlimeMother, 1);
+ monster(.@m$, 43, 32, "Lost", YellowSlimeMother, 1);
+ monster(.@m$, 44, 32, "Lost", RedSlimeMother, 1);
+ monster(.@m$, 42, 33, "Lost", ChocolateSlimeMother, 1);
+ monster(.@m$, 45, 33, "Lost", WhiteSlimeMother, 1);
+ monster(.@m$, 43, 34, "Lost", AzulSlimeMother, 1);
+ monster(.@m$, 44, 34, "Lost", SeaSlimeMother, 1);
+ monster(.@m$, 45, 35, "Lost", GreenSlimeMother, 1);
+ //monster(.@m$, 47, 35, "Lost", LavaSlimeMother, 1);
+ monster(.@m$, 68, 30, "Lost", Thug, 1);
+ monster(.@m$, 70, 22, "Lost", Thug, 1);
+ monster(.@m$, 74, 42, "Lost", Thug, 1);
+ closeclientdialog;
+ close;
+
+L_EpFinish:
+ // Cleanup
+ instance_set_timeout(900, 900, getq2(LoFQuest_EPISODE));
+ enablenpc instance_npcname("#004-3-1_70_25", getq2(LoFQuest_EPISODE));
+ enablenpc instance_npcname("#004-3-1_68_33", getq2(LoFQuest_EPISODE));
+ if (CHEST_MONEY) {
+ mesc l("You were refunded in %s GP!", fnum(CHEST_MONEY));
+ Zeny+=CHEST_MONEY;
+ CHEST_MONEY=0;
+ }
+ setq LoFQuest_EPISODE, 12;
+ getitem SacredLifePotion, 10;
+ getitem SacredImmortalityPotion, 5;
+ getexp 60000, 0;
+ // Final dialog
+ mesn;
+ mesq l("Phew... We should be safe now. Thanks, %s!", strcharinfo(0));
+ next;
+ mesn;
+ mesq l("...Even if this is your fault. Anyway, ##Breturn to whoever sent you here##b and begone.");
+ close;
+
OnInit:
.distance = 4;
.sex = G_OTHER;