summaryrefslogtreecommitdiff
path: root/npc/034-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-23 21:44:22 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-23 21:44:22 -0300
commita7c45a192268da2601cef47a4cdba987ae2327ca (patch)
treec5fb5b97db109fe7106496dd96498c475881046b /npc/034-2
downloadserverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.gz
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.bz2
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.xz
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.zip
Initial commit (Moubootaur Legends fork)
Diffstat (limited to 'npc/034-2')
-rw-r--r--npc/034-2/_import.txt4
-rw-r--r--npc/034-2/_mobs.txt18
-rw-r--r--npc/034-2/gemini.txt160
3 files changed, 182 insertions, 0 deletions
diff --git a/npc/034-2/_import.txt b/npc/034-2/_import.txt
new file mode 100644
index 0000000..ae5722e
--- /dev/null
+++ b/npc/034-2/_import.txt
@@ -0,0 +1,4 @@
+// Map 034-2: Bandit Cave
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/034-2/_mobs.txt",
+"npc/034-2/gemini.txt",
diff --git a/npc/034-2/_mobs.txt b/npc/034-2/_mobs.txt
new file mode 100644
index 0000000..a2577da
--- /dev/null
+++ b/npc/034-2/_mobs.txt
@@ -0,0 +1,18 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 034-2: Bandit Cave mobs
+034-2,31,52,10,6 monster RedSlime 1008,8,100000,30000
+034-2,31,52,9,7 monster CaveMaggot 1056,3,100000,30000
+034-2,56,102,1,1 monster Spider 1012,1,100000,250000
+034-2,61,102,1,1 monster Spider 1012,1,100000,250000
+034-2,65,102,1,1 monster Spider 1012,1,100000,250000
+034-2,71,109,2,1 monster BlackScorpion 1009,1,100000,250000
+034-2,59,56,6,18 monster Bandit 1064,37,100000,10000
+034-2,59,44,6,6 monster BanditLord 1065,4,100000,20000
+034-2,60,69,9,4 monster BanditLord 1065,4,100000,20000
+034-2,63,94,0,0 monster SleepingBandit 1099,1,100000,60000
+034-2,53,93,0,0 monster SleepingBandit 1099,1,100000,60000
+034-2,48,71,0,0 monster SleepingBandit 1099,1,100000,60000
+034-2,38,30,8,6 monster Bandit 1064,8,100000,10000
+034-2,39,33,5,4 monster BanditLord 1065,2,100000,20000
+034-2,80,101,5,6 monster CopperSlime 1098,7,100000,60000
+034-2,60,94,9,2 monster CopperSlime 1098,7,100000,60000
diff --git a/npc/034-2/gemini.txt b/npc/034-2/gemini.txt
new file mode 100644
index 0000000..ca8a3ae
--- /dev/null
+++ b/npc/034-2/gemini.txt
@@ -0,0 +1,160 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// Description:
+// Gemini Sisters Quest - Bandit Den
+
+034-2,24,60,0 script #GeminiBack1 NPC_HIDDEN,0,0,{
+ end;
+OnTouch:
+ if (instance_id() < 0 || getcharid(1) < 1) end;
+ GeminiCheck(6);
+ .@p=getcharid(1);
+ warp "val1@"+.@p, 169, 25;
+ end;
+}
+
+034-2,37,24,0 script #GeminiExit3 NPC_HIDDEN,0,0,{
+ end;
+OnTouch:
+ if (instance_id() < 0 || getcharid(1) < 1) end;
+ GeminiCheck(7);
+ .@p=getcharid(1);
+ if ($@VALIA_STATUS[.@p] < 8) {
+ dispbottom l("One of the bandits locked this door; We need to find the key!");
+ end;
+ }
+ .@p=getcharid(1);
+ warp "val3@"+.@p, 23, 51;
+ end;
+}
+
+// Ambush
+034-2,29,73,0 script #GeminiDen1 NPC_HIDDEN,0,0,{
+ end;
+OnTouch:
+ if (instance_id() < 0 || getcharid(1) < 1) end;
+ GeminiCheck(6);
+ // TODO: areasc... stun ... etc.
+ .@c=getunits(BL_PC, .@mbs, false, getmap(), 23, 67, 32, 74);
+ for (.@i = 0; .@i < .@c; .@i++) {
+ sc_start(SC_STUN, 15000, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK, .@mbs[.@i]);
+ specialeffect(FX_CRITICAL, AREA, .@mbs[.@i]);
+ }
+ .@p=getcharid(1);
+ .@m$=getmap();
+ .@b1=monster(.@m$, 30, 70, "Bandit A", Bandit, 1);
+ .@b2=monster(.@m$, 32, 71, "Bandit B", RobinBandit, 1);
+ immortal(.@b1);
+ immortal(.@b2);
+ sc_start(SC_STUN, 12000, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK, .@b1);
+ sc_start(SC_STUN, 12000, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK, .@b2);
+ // Begin cutscene
+ sleep2(2000); // 13 s
+ unittalk(.@b1, "Did you think you could sneak in our den without a problem?");
+ sleep2(2000); // 11s
+ unittalk(.@b2, "Haha, we caught them, n00bs!");
+ sleep2(3000); // 8s
+ unittalk(.@b1, "Drop your weapons, and come with us!");
+ sleep2(3000); // 5s
+ unittalk(.@b2, "Ahaha, that was easy! Ok, knock them out!");
+ sleep2(3000); // 2s
+ areawarp(.@m$, 23, 67, 32, 77, .@m$, 30, 92, 33, 95);
+ unitwalk(.@b1, 37, 90);
+ unitwalk(.@b2, 37, 90);
+ sleep2(2000);
+ // Get them... wherever
+ unitwarp(.@b1, "034-2", 37, 90);
+ unitwarp(.@b2, "034-2", 37, 90);
+ unitkill(.@b1);
+ unitkill(.@b2);
+ areawarp(.@m$, 30, 92, 33, 95, .@m$, 57, 101, 66, 104);
+ // First ambush, set some stuff up
+ if ($@VALIA_STATUS[.@p] == 6) {
+ $@VALIA_STATUS[.@p]=7;
+
+ .@mob=monster("val2@"+.@p, 57, 104, strmobinfo(1, CopperSlime), CopperSlime, 1, "Valia::OnKey1");
+ setunitdata(.@mob, UDT_LEVEL, 1);
+ .@mob=monster("val2@"+.@p, 61, 104, strmobinfo(1, CopperSlime), CopperSlime, 1, "Valia::OnKey2");
+ setunitdata(.@mob, UDT_LEVEL, 1);
+ .@mob=monster("val2@"+.@p, 66, 104, strmobinfo(1, CopperSlime), CopperSlime, 1, "Valia::OnKey3");
+ setunitdata(.@mob, UDT_LEVEL, 1);
+
+ monster("val2@"+.@p, 47, 72, strmobinfo(1, BanditLord), BanditLord, 1, "Valia::OnLord");
+ monster("val2@"+.@p, 85, 106, strmobinfo(1, BanditLord), BanditLord, 1, "Valia::OnLord");
+ monster("val2@"+.@p, 58, 45, strmobinfo(1, BanditLord), BanditLord, 1, "Valia::OnLord");
+ monster("val2@"+.@p, 40, 42, strmobinfo(1, BanditLord), BanditLord, 1, "Valia::OnLord");
+
+ monster("val2@"+.@p, 47, 25, strmobinfo(1, RedSlimeMother), RedSlimeMother, 1);
+ }
+ end;
+}
+
+
+// Cell Doors
+034-2,58,100,0 script Cell Door#G01 NPC_NO_SPRITE,{
+ if (instance_id() < 0 || getcharid(1) < 1) end;
+ GeminiCheck(7);
+ mes l("A complex lock seems to be posing a threat to you.");
+ mes l("But thanks to your %s skills, maybe you can pry this open.", thiefrank());
+ next;
+ .@s=LockPicking(3, 3, false);
+ // You broke free!
+ if (.@s) {
+ slide .x, 98;
+ closeclientdialog;
+ end;
+ }
+ @lockpicks=false;
+ mes l("What's this dark magic, the password has changed!");
+ close;
+OnInit:
+OnInstanceInit:
+ .distance=2;
+ end;
+}
+
+034-2,62,100,0 script Cell Door#G02 NPC_NO_SPRITE,{
+ if (instance_id() < 0 || getcharid(1) < 1) end;
+ GeminiCheck(7);
+ mes l("A complex lock seems to be posing a threat to you.");
+ mes l("But thanks to your %s skills, maybe you can pry this open.", thiefrank());
+ next;
+ .@s=LockPicking(3, 3, false);
+ // You broke free!
+ if (.@s) {
+ slide .x, 98;
+ closeclientdialog;
+ end;
+ }
+ @lockpicks=false;
+ mes l("What's this dark magic, the password has changed!");
+ close;
+OnInit:
+OnInstanceInit:
+ .distance=2;
+ end;
+}
+
+034-2,64,100,0 script Cell Door#G03 NPC_NO_SPRITE,{
+ if (instance_id() < 0 || getcharid(1) < 1) end;
+ GeminiCheck(7);
+ mes l("A complex lock seems to be posing a threat to you.");
+ mes l("But thanks to your %s skills, maybe you can pry this open.", thiefrank());
+ next;
+ .@s=LockPicking(3, 3, false);
+ // You broke free!
+ if (.@s) {
+ slide .x, 98;
+ closeclientdialog;
+ end;
+ }
+ @lockpicks=false;
+ mes l("What's this dark magic, the password has changed!");
+ close;
+OnInit:
+OnInstanceInit:
+ .distance=2;
+ end;
+}
+