summaryrefslogtreecommitdiff
path: root/npc/015-3-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-30 19:31:47 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-30 19:31:47 -0300
commitbf33a4b5c5c2a68fe5f04266d34bac3a49969df7 (patch)
tree002d2128429d788afe623db5af0c5ae790a7f03c /npc/015-3-3
parent1e7efe1672aef03c5d6517ef86b97003a2c495da (diff)
downloadserverdata-bf33a4b5c5c2a68fe5f04266d34bac3a49969df7.tar.gz
serverdata-bf33a4b5c5c2a68fe5f04266d34bac3a49969df7.tar.bz2
serverdata-bf33a4b5c5c2a68fe5f04266d34bac3a49969df7.tar.xz
serverdata-bf33a4b5c5c2a68fe5f04266d34bac3a49969df7.zip
Dreaded Pirate Marley showdown (VERY different from TMW's)
Also, add the Pirate Treasure Chest.
Diffstat (limited to 'npc/015-3-3')
-rw-r--r--npc/015-3-3/_import.txt1
-rw-r--r--npc/015-3-3/boss.txt71
2 files changed, 72 insertions, 0 deletions
diff --git a/npc/015-3-3/_import.txt b/npc/015-3-3/_import.txt
index 10462d0b1..365dfeea7 100644
--- a/npc/015-3-3/_import.txt
+++ b/npc/015-3-3/_import.txt
@@ -2,3 +2,4 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/015-3-3/_mobs.txt",
"npc/015-3-3/_warps.txt",
+"npc/015-3-3/boss.txt",
diff --git a/npc/015-3-3/boss.txt b/npc/015-3-3/boss.txt
new file mode 100644
index 000000000..627655d0a
--- /dev/null
+++ b/npc/015-3-3/boss.txt
@@ -0,0 +1,71 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// Description:
+// Pirate Den - Boss Fight & Treasure Chest
+
+015-3-3,100,67,0 script #015-3-3_Prize NPC_CHEST,{
+ /* Boss Showdown incomplete */
+ if (getq(HurnscaldQuest_PirateCave) < 6) {
+ warp "015-3-2", 24, 62;
+ end;
+ }
+ /* Treasure Chest logic */
+ if (getq(HurnscaldQuest_PirateCave) == 6) {
+ // You'll always get the maximum prize the first time
+ TreasureBox(99999);
+ Zeny+=rand2(5700, 6200);
+ getexp 1000, 320;
+ compareandsetq HurnscaldQuest_PirateCave, 6, 7;
+ } else {
+ TreasureBox(100); // 1% extra chance
+ }
+ specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing
+ close;
+OnInit:
+ .distance=2;
+ end;
+}
+
+// Boss Showdown Intercept
+015-3-3,100,62,0 script #Marley NPC_HIDDEN,2,0,{
+ end;
+OnTouch:
+ if (getq(HurnscaldQuest_PirateCave) >= 6) end;
+ slide 70, 50;
+ if (mobcount("015-3-3", "#Marley::OnWin")) end;
+ // Cutscene + Boss!
+ sleep2(500); // For ManaPlus
+ dispbottom l("??? : Wait, how did you got here? WHO ARE YOU?");
+ sleep2(2500);
+ dispbottom l("??? : Are you trying to steal MY treasure?!");
+ sleep2(2500);
+ dispbottom l("??? : I am Pirate Captain Marley, and on the honor of my pirates...");
+ sleep2(2500);
+ dispbottom l("Marley : I shall stop you!");
+ // Someone has beat you to the punch!
+ if (mobcount("015-3-3", "#Marley::OnWin")) end;
+ // Spawn the boss!
+ monster("015-3-3", 69, 54, strmobinfo(1, Marley), Marley, 1, "#Marley::OnWin");
+ // And the reinforcements...
+ areamonster("015-3-3", 62, 47, 81, 57, strmobinfo(1, Thug), Thug, 7);
+ areamonster("015-3-3", 62, 47, 81, 57, strmobinfo(1, Swashbuckler), Swashbuckler, 7);
+ areamonster("015-3-3", 62, 47, 81, 57, strmobinfo(1, Grenadier), Grenadier, 7);
+ end;
+
+OnWin:
+ dispbottom l("Marley : You... thief... *grumble*");
+ compareandsetq HurnscaldQuest_PirateCave, 5, 6;
+ end;
+}
+
+// Exit Gate, only usable if Marley isn't around anymore
+015-3-3,88,66,0 script #MarleyOut NPC_HIDDEN,0,2,{
+ end;
+OnTouch:
+ if (mobcount("015-3-3", "#Marley::OnWin")) end;
+ slide 100, 60;
+ end;
+}
+
+