From cf18ce071c79ae37e14ea38943e0b1d88da70a7b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Apr 2021 13:33:57 -0300 Subject: Override --- npc/002-4/_import.txt | 10 +++ npc/002-4/_mobs.txt | 16 ++++ npc/002-4/_warps.txt | 3 + npc/002-4/mapflags.txt | 1 + npc/002-4/mine_triggerone.txt | 49 ++++++++++++ npc/002-4/mine_triggerthree.txt | 49 ++++++++++++ npc/002-4/mine_triggertwo.txt | 50 ++++++++++++ npc/002-4/naem.txt | 132 +++++++++++++++++++++++++++++++ npc/002-4/underground_palace_barrier.txt | 13 +++ 9 files changed, 323 insertions(+) create mode 100644 npc/002-4/_import.txt create mode 100644 npc/002-4/_mobs.txt create mode 100644 npc/002-4/_warps.txt create mode 100755 npc/002-4/mapflags.txt create mode 100755 npc/002-4/mine_triggerone.txt create mode 100755 npc/002-4/mine_triggerthree.txt create mode 100755 npc/002-4/mine_triggertwo.txt create mode 100755 npc/002-4/naem.txt create mode 100755 npc/002-4/underground_palace_barrier.txt (limited to 'npc/002-4') diff --git a/npc/002-4/_import.txt b/npc/002-4/_import.txt new file mode 100644 index 00000000..8f131fe5 --- /dev/null +++ b/npc/002-4/_import.txt @@ -0,0 +1,10 @@ +// Map 002-4: Desert Mines +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/002-4/_mobs.txt", +"npc/002-4/_warps.txt", +"npc/002-4/mapflags.txt", +"npc/002-4/mine_triggerone.txt", +"npc/002-4/mine_triggerthree.txt", +"npc/002-4/mine_triggertwo.txt", +"npc/002-4/naem.txt", +"npc/002-4/underground_palace_barrier.txt", diff --git a/npc/002-4/_mobs.txt b/npc/002-4/_mobs.txt new file mode 100644 index 00000000..01984822 --- /dev/null +++ b/npc/002-4/_mobs.txt @@ -0,0 +1,16 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 002-4: Desert Mines mobs +002-4,39,37,7,5 monster Beehive 1056,5,100000,30000 +002-4,91,41,8,10 monster AngryFireGoblin 1108,3,100000,30000 +002-4,71,35,12,8 monster Beehive 1056,4,100000,30000 +002-4,69,100,4,2 monster AngryFireGoblin 1108,2,100000,30000 +002-4,68,57,13,12 monster AngryScorpion 1057,5,100000,30000 +002-4,49,58,2,7 monster AngryScorpion 1057,5,100000,30000 +002-4,38,76,7,11 monster AngryScorpion 1057,4,100000,30000 +002-4,58,78,3,8 monster Beehive 1056,4,100000,30000 +002-4,89,68,5,16 monster AngryScorpion 1057,4,100000,30000 +002-4,84,93,9,8 monster Beehive 1056,4,100000,30000 +002-4,72,77,10,7 monster AngryFireGoblin 1108,3,100000,30000 +002-4,67,91,5,6 monster AngryScorpion 1057,4,100000,30000 +002-4,58,95,3,6 monster Beehive 1056,4,100000,30000 +002-4,63,100,1,2 monster AngryScorpion 1057,3,100000,30000 diff --git a/npc/002-4/_warps.txt b/npc/002-4/_warps.txt new file mode 100644 index 00000000..2cf2135b --- /dev/null +++ b/npc/002-4/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 002-4: Desert Mines warps +002-4,37,29,0 warp #002-4_37_29 0,0,002-3,82,30 diff --git a/npc/002-4/mapflags.txt b/npc/002-4/mapflags.txt new file mode 100755 index 00000000..6b70b328 --- /dev/null +++ b/npc/002-4/mapflags.txt @@ -0,0 +1 @@ +//002-4 mapflag resave 002-3,72,66 diff --git a/npc/002-4/mine_triggerone.txt b/npc/002-4/mine_triggerone.txt new file mode 100755 index 00000000..66da2a04 --- /dev/null +++ b/npc/002-4/mine_triggerone.txt @@ -0,0 +1,49 @@ +002-4,30,47,0 script Button#mine-1 NPC400,0,0,{ + if (QL_MINEALL == 24) goto L_Trigger_Wrong_1; + if (QL_MINEALL == 23) goto L_Trigger_Wrong_1; + if (QL_MINEALL == 22) goto L_Trigger_1; + + mes "There is a large button on the ground. A key hole appears on the button."; + goto L_close; + +L_Trigger_Wrong_1: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_Wrong_1, + "Put the key in, turn left.", L_Left_Wrong_1, + "Do nothing.", L_Nothing_1; + +L_Right_Wrong_1: + QL_MINEALL = 22; + mes "You turn the key right."; + goto L_close; + +L_Left_Wrong_1: + QL_MINEALL = 22; + mes "You turn the key left."; + goto L_close; + +L_Trigger_1: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_1, + "Put the key in, turn left.", L_Left_1, + "Do nothing.", L_Nothing_1; + +L_Right_1: + QL_MINEALL = 23; + mes "You turn the key right. A clicking sound echoes throughout the mine."; + goto L_close; + +L_Left_1: + QL_MINEALL = 22; + mes "You turn the key left."; + goto L_close; + +L_Nothing_1: + mes "You leave the button alone."; + goto L_close; + +L_close: + close; +} diff --git a/npc/002-4/mine_triggerthree.txt b/npc/002-4/mine_triggerthree.txt new file mode 100755 index 00000000..b7f197ed --- /dev/null +++ b/npc/002-4/mine_triggerthree.txt @@ -0,0 +1,49 @@ +002-4,91,99,0 script Button#mine-3 NPC400,0,0,{ + if (QL_MINEALL == 24) goto L_Trigger_Wrong_3; + if (QL_MINEALL == 23) goto L_Trigger_3; + if (QL_MINEALL == 22) goto L_Trigger_Wrong_3; + + mes "There is a large button on the ground. A key hole appears on the button."; + goto L_close; + +L_Trigger_Wrong_3: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_Wrong_3, + "Put the key in, turn left.", L_Left_Wrong_3, + "Do nothing.", L_Nothing_3; + +L_Right_Wrong_3: + QL_MINEALL = 22; + mes "You turn the key right."; + goto L_close; + +L_Left_Wrong_3: + QL_MINEALL = 22; + mes "You turn the key left."; + goto L_close; + +L_Trigger_3: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_3, + "Put the key in, turn left.", L_Left_3, + "Do nothing.", L_Nothing_3; + +L_Right_3: + QL_MINEALL = 22; + mes "You turn the key right."; + goto L_close; + +L_Left_3: + QL_MINEALL = 24; + mes "You turn the key left. A clicking sound echoes throughout the mine."; + goto L_close; + +L_Nothing_3: + mes "You leave the button alone."; + goto L_close; + +L_close: + close; +} diff --git a/npc/002-4/mine_triggertwo.txt b/npc/002-4/mine_triggertwo.txt new file mode 100755 index 00000000..b43df27e --- /dev/null +++ b/npc/002-4/mine_triggertwo.txt @@ -0,0 +1,50 @@ +002-4,100,37,0 script Button#mine-2 NPC400,0,0,{ + if (QL_MINEALL == 24) goto L_Trigger_2; + if (QL_MINEALL == 23) goto L_Trigger_Wrong_2; + if (QL_MINEALL == 22) goto L_Trigger_Wrong_2; + + mes "There is a large button on the ground. A key hole appears on the button."; + goto L_close; + +L_Trigger_Wrong_2: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_Wrong_2, + "Put the key in, turn left.", L_Left_Wrong_2, + "Do nothing.", L_Nothing_2; + +L_Right_Wrong_2: + QL_MINEALL = 22; + mes "You turn the key right."; + goto L_close; + +L_Left_Wrong_2: + QL_MINEALL = 22; + mes "You turn the key left."; + goto L_close; + +L_Trigger_2: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_2, + "Put the key in, turn left.", L_Left_2, + "Do nothing.", L_Nothing_2; + +L_Right_2: + QL_MINEALL = 22; + mes "You turn the key right."; + goto L_close; + +L_Left_2: + QL_MINEALL = 25; + FLAGS = FLAGS | FLAG_OPENED_UNDERGROUND; + mes "You turn the key left. A clicking sound echoes throughout the mine, followed by a loud thump."; + goto L_close; + +L_Nothing_2: + mes "You leave the button alone."; + goto L_close; + +L_close: + close; +} diff --git a/npc/002-4/naem.txt b/npc/002-4/naem.txt new file mode 100755 index 00000000..800fe92f --- /dev/null +++ b/npc/002-4/naem.txt @@ -0,0 +1,132 @@ +002-4,91,96,6 script Naem NPC109,{ + if (FLAGS & FLAG_GOT_NAEM_GLOVES) goto L_Naem_Complete; + if (FLAGS & FLAG_OPENED_UNDERGROUND) goto L_Naem_Gloves; + if (QL_MINEALL == 22) goto L_Naem_Code; + if (QL_MINEALL == 21) goto L_Naem_Lt; + if (QL_MINEALL == 20) goto L_Naem_Memory; + if ((QL_MINEALL > 17) && (QL_MINEALL < 19)) + goto L_Naem_Great; + if (QL_MINEALL == 17) goto L_Naem_Waits_3; + if (QL_MINEALL == 16) goto L_Naem_Help_3; + if (QL_MINEALL == 15) goto L_Naem_Waits_2; + if (QL_MINEALL == 14) goto L_Naem_Help_2; + if (QL_MINEALL == 13) goto L_Naem_Waits_1; + if (QL_MINEALL == 12) goto L_Naem_Help_1; + if (QL_MINEALL == 10) goto L_Naem_Cool; + if (QL_MINEALL == 9) goto L_Naem_Okay; + + mes "[Naem]"; + mes "\"I'm just mining away here. Lots of work to do.\""; + goto L_close; + +L_Naem_Okay: + QL_MINEALL = 10; + mes "[Naem]"; + mes "\"Oh, hello there. Nickos wanted you to check on me? Yeah, you can tell him I'm okay.\""; + goto L_close; + +L_Naem_Cool: + mes "[Naem]"; + mes "\"Yeah, I'm cool. Just mining away here.\""; + goto L_close; + +L_Naem_Help_1: + QL_MINEALL = 13; + mes "[Naem]"; + mes "\"Oh, you are here to help move my bags? Cool, I've got a few ready to go. Go ahead and take this one!\""; + next; + mes "Naem hands you a bag of ore."; + next; + mes "[Naem]"; + mes "\"After you deliver that one to Nathan, come on back, I've got a couple more ready to go.\""; + goto L_close; + +L_Naem_Waits_1: + mes "[Naem]"; + mes "\"After you deliver that bag of ore to Nathan, come on back, I've got a couple more ready to go.\""; + goto L_close; + +L_Naem_Help_2: + QL_MINEALL = 15; + mes "Naem gives you a bag of ore."; + next; + mes "[Naem]"; + mes "\"Just one more after this one and we'll be all caught up!\""; + goto L_close; + +L_Naem_Waits_2: + mes "[Naem]"; + mes "\"Just one more bag of ore after the one you got and we'll be all caught up!\""; + goto L_close; + +L_Naem_Help_3: + QL_MINEALL = 17; + mes "[Naem]"; + mes "Hands a bag of ore to you."; + next; + mes "\"Last one!\""; + goto L_close; + +L_Naem_Waits_3: + mes "[Naem]"; + mes "\"You got my last sack already. Just give it to Nathan and we'll have caught up.\""; + goto L_close; + +L_Naem_Great: + mes "[Naem]"; + mes "\"Hi ho! It's off to work I go! I work every day for meager pay, a miner's life for me...\""; + goto L_close; + +L_Naem_Memory: + mes "You see Naem grimacing in pain as you approach."; + next; + mes "[Naem]"; + mes "\"Oh, my head! Some rocks fell on me and bonked me pretty good. I'm still a little sore.\""; + menu + "Don't you have a key so I can go to the underground palace?", L_Naem_Palace_No, + "You should be more careful.", L_Naem_Duh; + +L_Naem_Duh: + mes "[Naem]"; + mes "\"I guess I should...\""; + goto L_close; + +L_Naem_Palace_No: + QL_MINEALL = 21; + mes "[Naem]"; + mes "\"Oh no! I lost the key! Don't worry though, talk to Lieutenant Dausen about getting the spare key.\""; + goto L_close; + +L_Naem_Lt: + mes "[Naem]"; + mes "\"I hurt my head pretty bad. I also lost my key. If you want to get into the underground palace, you'll have to talk to Lieutenant Dausen about getting the spare.\""; + goto L_close; + +L_Naem_Code: + mes "[Naem]"; + mes "\"Oh, you got the key. That is good! But my head still hurts... All I remember about the code is you have to put the key into the key hole buttons around the mine in a certain order and turn them in a certain order and it will unlock the underground palace. Sorry, that's all I have for you. Good luck!\""; + goto L_close; + +L_Naem_Gloves: + getinventorylist; + if (@inventorylist_count == 100) + goto L_Naem_TooMany; + FLAGS = FLAGS | FLAG_GOT_NAEM_GLOVES; + getitem "MinerGloves", 1; + mes "[Naem]"; + mes "\"Hey, good job on getting that together! Take these gloves, they might prove useful in the underground palace.\""; + goto L_close; + +L_Naem_Complete: + mes "[Naem]"; + mes "\"Yo-ho-ho, a miner's life for me!\""; + goto L_close; + +L_Naem_TooMany: + mes "[Naem]"; + mes "\"You have too many items for me to give you a reward.\""; + goto L_close; + +L_close: + close; +} diff --git a/npc/002-4/underground_palace_barrier.txt b/npc/002-4/underground_palace_barrier.txt new file mode 100755 index 00000000..c51d73be --- /dev/null +++ b/npc/002-4/underground_palace_barrier.txt @@ -0,0 +1,13 @@ +002-4,68,98,0 script #UGP_Barrier NPC45,0,0,{ + if (QL_MINEALL >= 25) goto L_Barrier_Open; + + message strcharinfo(0), "Some force seems to block your entrance."; + goto L_End; + +L_Barrier_Open: + warp "002-5",35,97; + goto L_End; + +L_End: + end; +} -- cgit v1.2.3-60-g2f50