summaryrefslogtreecommitdiff
path: root/npc/051-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
commitcf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch)
treef9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/051-3
parent8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff)
downloadserverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip
Override
Diffstat (limited to 'npc/051-3')
-rw-r--r--npc/051-3/_import.txt9
-rw-r--r--npc/051-3/_mobs.txt18
-rwxr-xr-xnpc/051-3/ambush.txt165
-rwxr-xr-xnpc/051-3/jailslimes.txt29
-rwxr-xr-xnpc/051-3/janitor.txt9
-rwxr-xr-xnpc/051-3/locks.txt65
-rwxr-xr-xnpc/051-3/mapflags.txt2
-rwxr-xr-xnpc/051-3/reinforcements.txt83
8 files changed, 380 insertions, 0 deletions
diff --git a/npc/051-3/_import.txt b/npc/051-3/_import.txt
new file mode 100644
index 00000000..cf35c359
--- /dev/null
+++ b/npc/051-3/_import.txt
@@ -0,0 +1,9 @@
+// Map 051-3: Illia Bandit Cave
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/051-3/_mobs.txt",
+"npc/051-3/ambush.txt",
+"npc/051-3/jailslimes.txt",
+"npc/051-3/janitor.txt",
+"npc/051-3/locks.txt",
+"npc/051-3/mapflags.txt",
+"npc/051-3/reinforcements.txt",
diff --git a/npc/051-3/_mobs.txt b/npc/051-3/_mobs.txt
new file mode 100644
index 00000000..e471d49b
--- /dev/null
+++ b/npc/051-3/_mobs.txt
@@ -0,0 +1,18 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 051-3: Illia Bandit Cave mobs
+051-3,31,52,10,6 monster Blub 1008,8,100000,30000
+051-3,31,52,9,7 monster Beehive 1056,3,100000,30000
+051-3,56,102,1,1 monster Frostiana 1012,1,100000,250000
+051-3,61,102,1,1 monster Frostiana 1012,1,100000,250000
+051-3,65,102,1,1 monster Frostiana 1012,1,100000,250000
+051-3,71,109,2,1 monster Toppy Blub 1009,1,100000,250000
+051-3,59,56,6,18 monster Robin Bandit 1064,47,100000,10000
+051-3,59,44,6,6 monster Bandit Lord 1065,4,100000,20000
+051-3,60,69,9,4 monster Bandit Lord 1065,4,100000,20000
+051-3,63,94,0,0 monster Yellow Slime Progenitor 1099,1,100000,60000
+051-3,53,93,0,0 monster Yellow Slime Progenitor 1099,1,100000,60000
+051-3,48,71,0,0 monster Yellow Slime Progenitor 1099,1,100000,60000
+051-3,38,30,8,6 monster Robin Bandit 1064,12,100000,10000
+051-3,39,33,5,4 monster Bandit Lord 1065,2,100000,20000
+051-3,80,101,5,6 monster Mud Slime Progenitor 1098,7,100000,60000
+051-3,60,94,9,2 monster Mud Slime Progenitor 1098,7,100000,60000
diff --git a/npc/051-3/ambush.txt b/npc/051-3/ambush.txt
new file mode 100755
index 00000000..48a051a9
--- /dev/null
+++ b/npc/051-3/ambush.txt
@@ -0,0 +1,165 @@
+
+051-3,40,52,0 script #WayBlockedTrigger NPC32767,2,2,{
+ message strcharinfo(0), "There is no way I can pass here. Let's find another way.";
+ end;
+}
+
+051-3,31,70,0 script #AmbushReadyTrigger NPC32767,2,2,{
+ @step = 2;
+ if ($@illia_progress < @step) goto L_ShouldNotBeHere;
+ if (strcharinfo(0) == $@iLLIA_HERO$ && $@illia_level_2_progress == 0) goto L_PrepareAmbush;
+ end;
+
+L_PrepareAmbush:
+ disablenpc "Sneaky Bandit";
+ disablenpc "Another Sneaky Bandit";
+ end;
+
+L_ShouldNotBeHere:
+ heal -Hp, 0;
+ end;
+
+}
+
+051-3,31,93,0 script #BanditAmbushTrigger NPC32767,3,3,{
+ @step = 2;
+ if ($@illia_progress < @step) goto L_ShouldNotBeHere;
+ if ($@illia_level_2_progress == 0 && strcharinfo(0) == $@iLLIA_HERO$) goto L_MakeAmbush;
+ end;
+
+L_MakeAmbush:
+ $@illia_level_2_progress = 1;
+ donpcevent "#BndtTl::OnCommandAmbush";
+ end;
+
+L_ShouldNotBeHere:
+ heal -Hp, 0;
+ message strcharinfo(0), "Your throat got cut by a sneaky bandit!";
+ end;
+}
+
+051-3,1,1,0 script #BndtTl NPC32767,{
+ end;
+
+OnCommandAmbush:
+ initnpctimer;
+ end;
+
+OnTimer1000:
+ enablenpc "Sneaky Bandit";
+ donpcevent "Sneaky Bandit::OnCommandTalk";
+ enablenpc "Another Sneaky Bandit";
+ donpcevent "Another Sneaky Bandit::OnCommandTalk";
+ end;
+
+OnTimer9000:
+ areawarp "051-3", 22, 45, 42, 97, "051-3", 101, 13;
+ end;
+
+OnTimer11000:
+ areatimer 0, "051-3", 22, 12, 102, 97, 500, "#BndtTl::OnOuch";
+ areatimer 0, "051-3", 22, 12, 102, 97, 3000, "#BndtTl::OnA";
+ stopnpctimer;
+ setnpctimer 0;
+ end;
+
+OnOuch:
+ message strcharinfo(0), "Ouch my head...";
+ end;
+
+OnA:
+ if (strcharinfo(0) == $@iLLIA_HERO$)
+ goto L_CaptureHero;
+ if (strcharinfo(0) == $@iLLIA_HELPER1$)
+ goto L_CaptureHelper1;
+ if (strcharinfo(0) == $@iLLIA_HELPER2$)
+ goto L_CaptureHelper2;
+ if (strcharinfo(0) == $@iLLIA_HELPER3$)
+ goto L_CaptureHelper3;
+ // kill that player otherwise, since not part of the quest.
+ heal -Hp, 0;
+ end;
+
+L_CaptureHero:
+ // Simulate the capture of the player.
+ // Unequip all equipments
+ nude;
+ // put the health at 40%.
+ heal MaxHp, 0;
+ heal ((MaxHp/100) * -60), 0;
+ warp "051-3", 69, 109;
+ message strcharinfo(0), "Meh... Where am I?";
+ end;
+
+L_CaptureHelper1:
+ // Simulate the capture of the player.
+ // Unequip all equipments
+ nude;
+ // put the health at 40%.
+ heal MaxHp, 0;
+ heal ((MaxHp/100) * -60), 0;
+ warp "051-3", 64, 102;
+ message strcharinfo(0), "Meh... Where am I?";
+ end;
+
+L_CaptureHelper2:
+ // Simulate the capture of the player.
+ // Unequip all equipments
+ nude;
+ // put the health at 40%.
+ heal MaxHp, 0;
+ heal ((MaxHp/100) * -60), 0;
+ warp "051-3", 62, 102;
+ message strcharinfo(0), "Meh... Where am I?";
+ end;
+
+L_CaptureHelper3:
+ // Simulate the capture of the player.
+ // Unequip all equipments
+ nude;
+ // put the health at 40%.
+ heal MaxHp, 0;
+ heal ((MaxHp/100) * -60), 0;
+ warp "051-3", 58, 102;
+ message strcharinfo(0), "Meh... Where am I?";
+ end;
+
+}
+
+051-3,29,94,0 script Sneaky Bandit NPC32767,{
+ end;
+
+OnCommandTalk:
+ initnpctimer;
+ end;
+
+OnTimer100:
+ npctalk strnpcinfo(0), "Did you think you could sneak in our den without a problem?";
+ end;
+
+OnTimer3600:
+ npctalk strnpcinfo(0), "Drop your weapons, and come with us!";
+ stopnpctimer;
+ setnpctimer 0;
+ end;
+
+}
+
+051-3,33,95,0 script Another Sneaky Bandit NPC32767,{
+ end;
+
+OnCommandTalk:
+ initnpctimer;
+ end;
+
+OnTimer1500:
+ npctalk strnpcinfo(0), "W00t! More slaves!";
+ end;
+
+OnTimer5500:
+ npctalk strnpcinfo(0), "Ahaha, that was easy! Ok, knock them out!";
+ stopnpctimer;
+ setnpctimer 0;
+ end;
+
+}
diff --git a/npc/051-3/jailslimes.txt b/npc/051-3/jailslimes.txt
new file mode 100755
index 00000000..598f94f2
--- /dev/null
+++ b/npc/051-3/jailslimes.txt
@@ -0,0 +1,29 @@
+051-3,57,104,1,1 monster CopperSlime 1098,1,60000,30000,IlliaCMobs051-3::On1098
+051-3,62,104,1,1 monster CopperSlime 1098,1,60000,30000,IlliaCMobs051-3::On1098
+051-3,63,104,1,1 monster CopperSlime 1098,1,60000,30000,IlliaCMobs051-3::On1098
+051-3,70,111,1,1 monster CopperSlime 1098,1,60000,30000,IlliaCMobs051-3::On1098
+
+051-3,0,0,0 script IlliaCMobs051-3 NPC32767,{
+ end;
+
+On1098:
+ if (rand(100) < 80 && $@illia_progress == 2 && ($@illia_level_2_progress == 1 || $@illia_level_2_progress == 2))
+ goto L_LockPicks;
+ goto L_End;
+
+L_LockPicks:
+ if (countitem ("LockPicks") == 0)
+ goto L_GiveLockPicks;
+ goto L_End;
+
+L_GiveLockPicks:
+ message strcharinfo(0), "Hey nice, someone left behind these rusty lock picks.";
+ getitem "LockPicks", 1;
+ goto L_End;
+
+L_End:
+ @mobId = 1098;
+ callfunc "MobPoints";
+ end;
+
+}
diff --git a/npc/051-3/janitor.txt b/npc/051-3/janitor.txt
new file mode 100755
index 00000000..9531f33a
--- /dev/null
+++ b/npc/051-3/janitor.txt
@@ -0,0 +1,9 @@
+051-3,1,1,0 script #IlliaJanitor2 NPC32767,{
+end;
+
+OnCommandClean:
+ // Kill all remaining bandits spawned during the "reinforcements" event
+ killmonster "051-1", "Door::OnB";
+ end;
+
+}
diff --git a/npc/051-3/locks.txt b/npc/051-3/locks.txt
new file mode 100755
index 00000000..6b7cf6d8
--- /dev/null
+++ b/npc/051-3/locks.txt
@@ -0,0 +1,65 @@
+051-3,69,107,0 script Jail Lock 1 NPC400,{
+ if (isin("051-3", 69, 108, 73, 111)) goto L_Do_Lock_Picking;
+ end;
+
+L_Do_Lock_Picking:
+ callfunc "LockPicking";
+ if (@lock_picking_success > 0)
+ goto L_OpenDoor;
+ close;
+
+L_OpenDoor:
+ @lock_picking_success = 0;
+ warp "051-3", 69, 104;
+ message strcharinfo(0), "Ok, let's get out of here now.";
+ $@illia_level_2_progress = 2;
+ close;
+}
+
+051-3,64,100,0 script Jail Lock 2 NPC400,{
+ if (isin("051-3", 64, 101, 66, 104)) goto L_Do_Lock_Picking;
+ end;
+
+L_Do_Lock_Picking:
+ callfunc "LockPicking";
+ if (@lock_picking_success > 0)
+ goto L_OpenDoor;
+ close;
+
+L_OpenDoor:
+ @lock_picking_success = 0;
+ warp "051-3", 64, 97;
+ close;
+}
+
+051-3,62,100,0 script Jail Lock 3 NPC400,{
+ if (isin("051-3", 61, 101, 62, 104)) goto L_Do_Lock_Picking;
+ end;
+
+L_Do_Lock_Picking:
+ callfunc "LockPicking";
+ if (@lock_picking_success > 0)
+ goto L_OpenDoor;
+ close;
+
+L_OpenDoor:
+ @lock_picking_success = 0;
+ warp "051-3", 62, 97;
+ close;
+}
+
+051-3,58,100,0 script Jail Lock 4 NPC400,{
+ if (isin("051-3", 57, 101, 58, 104)) goto L_Do_Lock_Picking;
+ end;
+
+L_Do_Lock_Picking:
+ callfunc "LockPicking";
+ if (@lock_picking_success > 0)
+ goto L_OpenDoor;
+ close;
+
+L_OpenDoor:
+ @lock_picking_success = 0;
+ warp "051-3", 58, 97;
+ close;
+}
diff --git a/npc/051-3/mapflags.txt b/npc/051-3/mapflags.txt
new file mode 100755
index 00000000..a3b3c49b
--- /dev/null
+++ b/npc/051-3/mapflags.txt
@@ -0,0 +1,2 @@
+051-3 mapflag nosave 007-2,36,23
+//051-3 mapflag resave 007-2,36,23
diff --git a/npc/051-3/reinforcements.txt b/npc/051-3/reinforcements.txt
new file mode 100755
index 00000000..f9d48acc
--- /dev/null
+++ b/npc/051-3/reinforcements.txt
@@ -0,0 +1,83 @@
+051-3,47,30,0 script #BndtRnfrcmtsTrigger NPC32767,2,3,{
+ @step = 2;
+ if ($@illia_progress < @step) goto L_ShouldNotBeHere;
+ if ($@illia_level_2_progress == 2) goto L_CallReinforcements;
+ end;
+
+L_CallReinforcements:
+ donpcevent "Door::OnRnfrcmts";
+ end;
+
+L_ShouldNotBeHere:
+ heal -Hp, 0;
+ end;
+}
+
+051-3,37,24,0 script Door NPC400,{
+ @step = 2;
+ if ($@illia_progress < @step) goto L_ShouldNotBeHere;
+ mes "Try open the door?";
+ menu
+ "Yes", L_TryOpen,
+ "Do nothing", L_close;
+
+L_ShouldNotBeHere:
+ heal -Hp, 0;
+ end;
+
+L_TryOpen:
+ if ($@illia_level_2_progress < 4)
+ goto L_KeyNotFound;
+ goto L_Warp;
+
+L_KeyNotFound:
+ mes "You do not see a way to open this door.";
+ close;
+
+L_Warp:
+ mes "You place the key in the door and open the lock.";
+ warp "051-1", 118, 55;
+ close;
+
+OnRnfrcmts:
+ $@illia_level_2_progress = 3;
+ // Spawn 20 bandits
+ areamonster "051-3", 29, 25, 48, 39, "", 1064, 18, "Door::OnB";
+ // Spawn 4 bandit lords
+ areamonster "051-3", 29, 25, 48, 39, "", 1065, 3, "Door::OnB";
+ initnpctimer;
+ mapannounce "051-3", "Bandit Lords : Do not let them escape!!" , 0;
+ areatimer 0, "051-3", 25, 20, 80, 85, 10, "Door::OnDRnfrcmts";
+ end;
+
+OnB:
+ end;
+
+OnDRnfrcmts:
+ message strcharinfo(0), "Oh no, reinforcements! We must kill them all!";
+ end;
+
+OnTimer2000:
+ setnpctimer 0;
+ if ($@illia_level_2_progress != 3 || $@illia_progress != 2)
+ end;
+ if (mobcount("051-3", "Door::OnB") < 0)
+ goto L_OpenDoor;
+ end;
+
+L_OpenDoor:
+ $@illia_level_2_progress = 4;
+ $@illia_progress = 3;
+ callfunc "UpdateIlliaProgress";
+ $@illia_max_time = $@illia_max_time + 300;
+ areatimer 0, "051-3", 25, 20, 80, 85, 10, "Door::OnKeyFound";
+ stopnpctimer;
+ setnpctimer 0;
+ end;
+
+OnKeyFound:
+ message strcharinfo(0), "One of the defeated bandit lords had a door key attached to his belt.";
+ end;
+L_close:
+ close;
+}