summaryrefslogtreecommitdiff
path: root/npc/002-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/002-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/002-2')
-rw-r--r--npc/002-2/_import.txt5
-rw-r--r--npc/002-2/doors.txt49
-rw-r--r--npc/002-2/mapflags.txt2
-rw-r--r--npc/002-2/ratto.txt80
4 files changed, 136 insertions, 0 deletions
diff --git a/npc/002-2/_import.txt b/npc/002-2/_import.txt
new file mode 100644
index 0000000..5b662cf
--- /dev/null
+++ b/npc/002-2/_import.txt
@@ -0,0 +1,5 @@
+// Map 002-2: Hold
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/002-2/doors.txt",
+"npc/002-2/mapflags.txt",
+"npc/002-2/ratto.txt",
diff --git a/npc/002-2/doors.txt b/npc/002-2/doors.txt
new file mode 100644
index 0000000..8986865
--- /dev/null
+++ b/npc/002-2/doors.txt
@@ -0,0 +1,49 @@
+// TMW2 Script
+// Authors:
+// Jesusalva
+//
+// Originally an Evol script authored by:
+// Ablu, Alastrim and Reid
+//
+// Description:
+// Doors NPCs.
+
+002-2,33,23,0 script 0022#DoorUpwards NPC_HIDDEN,0,0,{
+
+OnTouch:
+ if (mobcount("002-2","all") > 0) goto L_Warn;
+
+ goto L_Warp;
+
+L_Warn:
+ .@q = getq(ShipQuests_Peter);
+ if (.@q >= 15) goto L_Warp;
+
+ mesn "Narrator";
+ mesc l("There are still some monsters left! Do you want to abort the quest?");
+ next;
+
+ if (askyesno() == ASK_YES)
+ goto L_Warp;
+
+ slide 33, 25;
+ closeclientdialog;
+ close;
+
+L_Warp:
+ if (LOCATION$ == "")
+ warp "002-1", 35, 26;
+ else
+ warp "002-1@"+LOCATION$, 35, 26;
+
+ deltimer("Peter::OnLowTime");
+ deltimer("Peter::OnTimeout");
+ closeclientdialog;
+ close;
+}
+
+002-2,43,25,0 script #Alige0022 NPC_ALIGE_BARREL,{
+ npctalkonce l("This barrel seems suspicious...");
+ end;
+}
+
diff --git a/npc/002-2/mapflags.txt b/npc/002-2/mapflags.txt
new file mode 100644
index 0000000..4effdfe
--- /dev/null
+++ b/npc/002-2/mapflags.txt
@@ -0,0 +1,2 @@
+002-2 mapflag nosave 000-1,22,22
+002-2 mapflag nopenalty
diff --git a/npc/002-2/ratto.txt b/npc/002-2/ratto.txt
new file mode 100644
index 0000000..1c09212
--- /dev/null
+++ b/npc/002-2/ratto.txt
@@ -0,0 +1,80 @@
+// TMW2 Script.
+// Author:
+// Jesusalva
+// Originally an Evol script authored by: Ablu, Alastrim, Reid
+// Description:
+// Ratto killer.
+
+002-2,0,0,0 script RattosControl NPC_HIDDEN,{
+ end;
+
+OnRatto1Respawn:
+ .@q2=getq2(ShipQuests_Peter);
+ setq2 ShipQuests_Peter, .@q2^1;
+ areamonster @MAP_NAME$, 23, 19, 57, 40, strmobinfo(1, @pt_mob), @pt_mob, 1, "RattosControl::OnRatto1Death";
+ end;
+
+OnRatto2Respawn:
+ .@q2=getq2(ShipQuests_Peter);
+ setq2 ShipQuests_Peter, .@q2^2;
+ areamonster @MAP_NAME$, 23, 19, 57, 40, strmobinfo(1, @pt_mob), @pt_mob, 1, "RattosControl::OnRatto2Death";
+ end;
+
+OnRatto3Respawn:
+ .@q2=getq2(ShipQuests_Peter);
+ setq2 ShipQuests_Peter, .@q2^4;
+ areamonster @MAP_NAME$, 23, 19, 57, 40, strmobinfo(1, @pt_mob), @pt_mob, 1, "RattosControl::OnRatto3Death";
+ end;
+
+OnRatto4Respawn:
+ .@q2=getq2(ShipQuests_Peter);
+ setq2 ShipQuests_Peter, .@q2^8;
+ areamonster @MAP_NAME$, 23, 19, 57, 40, strmobinfo(1, @pt_mob), @pt_mob, 1, "RattosControl::OnRatto4Death";
+ end;
+
+OnRatto1Death:
+ .@q2=getq2(ShipQuests_Peter);
+ setq2 ShipQuests_Peter, .@q2|1;
+ .@q2=getq2(ShipQuests_Peter);
+ if (.@q2 == 15)
+ goto L_Victor;
+ addtimer(85000, "RattosControl::OnRatto1Respawn");
+ end;
+
+OnRatto2Death:
+ .@q2=getq2(ShipQuests_Peter);
+ setq2 ShipQuests_Peter, .@q2|2;
+ .@q2=getq2(ShipQuests_Peter);
+ if (.@q2 == 15)
+ goto L_Victor;
+ addtimer(85000, "RattosControl::OnRatto2Respawn");
+ end;
+
+OnRatto3Death:
+ .@q2=getq2(ShipQuests_Peter);
+ setq2 ShipQuests_Peter, .@q2|4;
+ .@q2=getq2(ShipQuests_Peter);
+ if (.@q2 == 15)
+ goto L_Victor;
+ addtimer(85000, "RattosControl::OnRatto3Respawn");
+ end;
+
+OnRatto4Death:
+ .@q2=getq2(ShipQuests_Peter);
+ setq2 ShipQuests_Peter, .@q2|8;
+ .@q2=getq2(ShipQuests_Peter);
+ if (.@q2 == 15)
+ goto L_Victor;
+ addtimer(85000, "RattosControl::OnRatto4Respawn");
+ end;
+
+L_Victor:
+ unitskilluseid(getcharid(3), BS_GREED, 1, getcharid(3)); // Auto-Looting
+ warp "002-1@"+LOCATION$, 35, 26;
+ deltimer("RattosControl::OnRatto1Respawn");
+ deltimer("RattosControl::OnRatto2Respawn");
+ deltimer("RattosControl::OnRatto3Respawn");
+ deltimer("RattosControl::OnRatto4Respawn");
+ doevent("Peter::OnDone");
+ end;
+}