diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-10-23 21:44:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-10-23 21:44:22 -0300 |
commit | a7c45a192268da2601cef47a4cdba987ae2327ca (patch) | |
tree | c5fb5b97db109fe7106496dd96498c475881046b /npc/004-2 | |
download | serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.gz serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.bz2 serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.xz serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.zip |
Initial commit (Moubootaur Legends fork)
Diffstat (limited to 'npc/004-2')
-rw-r--r-- | npc/004-2/_import.txt | 7 | ||||
-rw-r--r-- | npc/004-2/_mobs.txt | 18 | ||||
-rw-r--r-- | npc/004-2/_warps.txt | 43 | ||||
-rw-r--r-- | npc/004-2/mirio.txt | 230 | ||||
-rw-r--r-- | npc/004-2/pachua.txt | 49 | ||||
-rw-r--r-- | npc/004-2/sign.txt | 48 |
6 files changed, 395 insertions, 0 deletions
diff --git a/npc/004-2/_import.txt b/npc/004-2/_import.txt new file mode 100644 index 0000000..7c8d017 --- /dev/null +++ b/npc/004-2/_import.txt @@ -0,0 +1,7 @@ +// Map 004-2: Desert Mountains +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/004-2/_mobs.txt", +"npc/004-2/_warps.txt", +"npc/004-2/mirio.txt", +"npc/004-2/pachua.txt", +"npc/004-2/sign.txt", diff --git a/npc/004-2/_mobs.txt b/npc/004-2/_mobs.txt new file mode 100644 index 0000000..b531f3e --- /dev/null +++ b/npc/004-2/_mobs.txt @@ -0,0 +1,18 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 004-2: Desert Mountains mobs +004-2,0,0,0,0 monster Maggot 1030,100,35000,150000 +004-2,118,37,17,15 monster Scorpion 1071,14,35000,150000 +004-2,61,43,10,22 monster Scorpion 1071,6,35000,150000 +004-2,111,58,4,4 monster Mister Prickel 1436,1,35000,35000 +004-2,118,100,4,4 monster Snake 1122,3,35000,150000 +004-2,87,54,9,4 monster Snake 1199,1,35000,150000 +004-2,77,66,14,11 monster Scorpion 1071,8,35000,150000 +004-2,94,56,42,32 monster Desert Log Head 1127,30,35000,150000 +004-2,56,98,1,1 monster Duck 1029,1,35000,150000 +004-2,71,100,28,10 monster Red Scorpion 1072,10,35000,150000 +004-2,146,28,3,2 monster Yellow Slime 1091,1,35000,150000 +004-2,143,47,6,18 monster Scorpion 1071,9,35000,150000 +004-2,140,57,9,8 monster Snake 1122,2,35000,150000 +004-2,142,96,3,5 monster Mountain Snake 1123,1,35000,300000 +004-2,131,75,17,9 monster Snake 1122,3,35000,150000 +004-2,70,106,20,14 monster Mister Prickel 1436,5,35000,35000 diff --git a/npc/004-2/_warps.txt b/npc/004-2/_warps.txt new file mode 100644 index 0000000..31f2d88 --- /dev/null +++ b/npc/004-2/_warps.txt @@ -0,0 +1,43 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 004-2: Desert Mountains warps +004-2,117,54,0 warp #004-2_117_54 0,0,004-2-1,38,42 +004-2,116,27,0 warp #004-2_116_27 0,0,004-2-1,57,22 +004-2,30,51,0 warp #004-2_30_51 0,2,004-1,125,95 +004-2,121,27,0 warp #004-2_121_27 0,0,004-2-2,36,77 +004-2,94,80,0 warp #004-2_94_80 0,0,004-2-3,87,95 +004-2,147,60,0 warp #004-2_147_60 0,0,004-2-3,123,77 +004-2,132,56,0 warp #004-2_132_56 0,0,004-2-4,124,85 +004-2,144,25,0 warp #004-2_144_25 0,0,010-4-2,87,41 +004-2,144,52,0 warp #004-2_144_52 0,0,004-2-3,135,114 +004-2,90,61,0 warp #004-2_90_61 0,0,004-2-3,58,126 +004-2,113,120,0 warp #004-2_113_120 0,0,004-3-2,83,63 +004-2,86,116,0 warp #004-2_86_116 0,0,004-3-2,59,54 +004-2,60,126,0 warp #004-2_60_126 0,0,004-3-1,68,32 +004-2,53,103,0 warp #004-2_53_103 0,0,004-3-1,70,24 +004-2,53,88,0 warp #004-2_53_88 0,0,004-3,53,41 +004-2,63,88,0 warp #004-2_63_88 0,0,004-3,63,41 +004-2,81,93,0 warp #004-2_81_93 0,0,004-3-2,44,37 +004-2,73,89,0 warp #004-2_73_89 0,0,010-2-8,37,21 +004-2,68,124,0 warp #004-2_68_124 0,0,010-2-8,32,62 +004-2,51,111,0 warp #004-2_51_111 0,0,004-2-12,52,34 +004-2,48,59,0 warp #004-2_48_59 0,0,007-1-1,56,35 +004-2,110,92,0 warp #004-2_110_92 0,0,004-2-6,34,22 +004-2,119,107,0 warp #004-2_119_107 0,0,004-3-2,95,51 +004-2,145,103,0 warp #004-2_145_103 0,0,004-2-6,84,43 +004-2,122,66,0 warp #004-2_122_66 0,0,004-2-3,102,115 +004-2,85,30,0 warp #004-2_85_30 0,0,004-2-3,97,47 +004-2,74,20,0 warp #004-2_74_20 0,0,004-2-3,69,61 +004-2,108,37,0 warp #004-2_108_37 0,0,004-2-3,108,67 +004-2,126,37,0 warp #004-2_126_37 0,0,004-2-3,135,65 +004-2,118,49,0 warp #004-2_118_49 0,0,004-2-3,114,43 +004-2,107,47,0 warp #004-2_107_47 0,0,004-2-3,87,43 +004-2,128,49,0 warp #004-2_128_49 0,0,004-2-3,124,48 +004-2,142,77,0 warp #004-2_142_77 0,0,004-2-1,87,69 +004-2,146,85,0 warp #004-2_146_85 0,0,004-2-5,53,47 +004-2,141,113,0 warp #004-2_141_113 0,0,004-2-8,39,74 +004-2,81,71,0 warp #004-2_81_71 0,0,004-2-1,33,63 +004-2,85,49,0 warp #004-2_85_49 0,0,007-1-2,50,53 +004-2,92,33,0 warp #004-2_92_33 0,0,007-1-2,56,27 +004-2,139,31,0 warp #004-2_139_31 0,0,004-2-4,135,70 +004-2,45,98,0 warp #004-2_45_98 0,0,004-3-6,45,58 +004-2,104,93,0 warp #004-2_104_93 0,0,004-3-2,74,41 diff --git a/npc/004-2/mirio.txt b/npc/004-2/mirio.txt new file mode 100644 index 0000000..4c149eb --- /dev/null +++ b/npc/004-2/mirio.txt @@ -0,0 +1,230 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// Description: +// Part of Speed Run Quest +// Structure: +// HalinarzoQuest_Speed( state, time, record ) + +004-2,146,115,0 script Mirio NPC_INDIGENOUS_YOUNG,1,1,{ + function neutral; + function naked; + function disarmed; + function hungry; + function speed; + function start; + function slow; + function running; + function restricted; + function retry; + .@q = getq(HalinarzoQuest_Speed); + .@t = getq2(HalinarzoQuest_Speed); + .@r = getq3(HalinarzoQuest_Speed); + if (BaseLevel < 40) neutral(); + if (getequipid(EQI_HEAD_MID) < 1) naked(); + if (getequipid(EQI_HEAD_TOP) < 1) naked(); + if (getequipid(EQI_HAND_R) < 1) disarmed(); + if (getequipid(EQI_HAND_L) < 1) disarmed(); + if (@pachua) running(); + if (.@q <= 0) hungry(); + if (.@q == 1) speed(); + if (.@q < 10) retry(); + neutral(); + close; + +function neutral { + mesn; + mesq l("Howdy! Pachua and I scout this canyon to protect our clan. I acknowledge only those whom are fast like the wind! I would love to challenge you for a race... But not today."); + close; +} + +function naked { + mesn; + mesq l("...I know it is hot in this desert, but if you don't wear some armor and a hat, monsters will get to you. Really harsh, nowadays."); + close; +} + +function disarmed { + .@pn$ = lg("girl", "dude"); + mesn; + mesq l("...%s, as far as you should be concerned, this is an hostile land and I'm not your friend. You should use a weapon and a shield if possible. Never trust strangers, specially if they look like an assassin... exactly like me.", .@pn$); + close; +} + +function slow { + mesn; + mesq l("...Try allocating some points in agility before we continue. I think %d should be suffice.", getarg(0, 40)); + close; +} + +function restricted { + mesn; + mesq l("Sorry, but this quest cannot be done by staff."); + close; +} + +function hungry { + .@pn$ = lg("gal", "pal"); + mesn; + mesq l("Howdy, partner! Man, you have no idea how I'm hungry. Been scouting this canyon for weeks, under the scorching sun, and there's only snake meat to eat... I'm get tired of this repulsive stuff."); + next; + mesn; + mesq l("So let's strike a deal, bring me %d %s, %d %s, %d %s, and a %s. I'll reward you, promise.", + 10, getitemlink(LettuceLeaf), + 5, getitemlink(Cheese), + 2, getitemlink(TonoriDelight), + getitemlink(HalfCroconut)); + next; + select + l("Sure, I'll be back."), + l("I have everything you asked me."); + mes ""; + if (@menu == 1) closeclientdialog; + if (@menu == 2) { + if (countitem(LettuceLeaf) < 10 || + countitem(Cheese) < 5 || + countitem(TonoriDelight) < 2 || + countitem(HalfCroconut) < 1) { + mesc l("A dagger is stuck to your heart."), 1; + mesn; + mesq l("Told ya, %s, should know better than to mess with an... assassin!", .@pn$); + percentheal -100, 0; + close; + } + inventoryplace CaveSnakeSkin, 1, SnakeSkin, 1; + delitem LettuceLeaf, 10; + delitem Cheese, 5; + delitem TonoriDelight, 2; + delitem HalfCroconut, 1; + getitem SnakeSkin, 1; + getitem CaveSnakeSkin, 1; + setq HalinarzoQuest_Speed, 1; + mesn; + mesq l("Ah, good. You didn't even bother poisoning it? Hahah, that's great, %s! Here is a couple skins I had lying around, may be useful.", .@pn$); + next; + mesn; + mesq l("How about this, I can teach you how to be a tiny bit faster, so you can use heavier armor. I'll even give you a discount. Give it some thought, come back to me after you make up your mind."); + } + close; +} + +///////////////////////////////////////////////////////////////////////////////// +function speed { + if (is_staff() && !$@GM_OVERRIDE && !debug) restricted(); + if (readparam2(bAgi) < 40) slow(); + mesn; + mesq l("Have you thought on my proposal? I'll only charge you %d GP or a %s for each attempt made.", .price, getitemlink(.alt)); + next; + select + l("Not now, thanks."), + rif(Zeny >= .price, l("I'll pay the GP.")), + rif(countitem(.alt), l("I'll give you the item.")); + mes ""; + if (@menu == 1) close; + if (@menu == 2) Zeny -= .price; + if (@menu == 3) delitem .alt, 1; + start(); + return; +} + +function start { + mesn; + mesq l("Great! It is simple, really. Pachua and I are scouting the desert. Run as fast as you can to Pachua, and then run back here. Pachua will send a smoke signal when you talk to him, so I'll know you haven't cheated."); + next; + mesn; + mesq l("Try to make a good time, and... Good luck! On my signal, 3, 2, 1..."); + next; + setq2 HalinarzoQuest_Speed, gettimetick(2) + 1; // Grace time due @refresh + @pachua = 1; + slide 146, 115; + closeclientdialog; + // META: How they know your name? ...Via label, obviously. + npctalk3 l("GO! Run, %s, RUN!!!!", strcharinfo(0)); + atcommand("@refresh"); + close; +} + +function running { + if (@pachua < 2) { + npctalk3 l("What are you waiting for?! Get running, Pachua is waiting!"); + closeclientdialog; + close; + } + // Pachua == 2, completed the run + .@to = getq2(HalinarzoQuest_Speed); + .@q = getq(HalinarzoQuest_Speed); + .@t = gettimetick(2) - .@to; + .@r = getq3(HalinarzoQuest_Speed); + @pachua = 0; + mesn; + mesq l("...And stop! You took %s this time!", FuzzyTime(.@to)); + if (.@t < 15) { + mesc l("That's obviously impossible, so I'll voiding your result!"); + close; + } + if (.@t < .@r) { + mesc l("That's %d seconds better than your previous record!", .@r - .@t); + } + if (!.@r || .@t < .@r) + setq3 HalinarzoQuest_Speed, .@t; + setq2 HalinarzoQuest_Speed, 0; + next; + // Condition + .@g = 320 - (.@q * 20); + if (.@t > .@g) { + mesn; + mesq l("You took more than %s to do this, that is lame! Better luck next time.", FuzzyTime(.@g)); + // Consolation Prize + if (.@t < 450) { + next; + mesn; + mesq l("...Well, I'll refund you 10% because it was not utterly terrible."); + Zeny += .price / 10; + } + // MISSION FAILED + mesc l("RACE FAILED."), 1; + close; + } + // Ooh, you did it! + setq1 HalinarzoQuest_Speed, .@q + 1; + getexp 2500, 0; + mesn; + mesq l("I'm proud of you!"); + if (getq(HalinarzoQuest_Speed) < 10) + mesc l("Feel free to try again whenever."); + close; +} + +function retry { + if (is_staff() && !$@GM_OVERRIDE && !debug) restricted; + .@q = getq(HalinarzoQuest_Speed); + .@p = .price * .@q; + .@s = 40 + (.@q * 5); + if (readparam2(bAgi) < .@s) slow(.@s); + mesn; + mesq l("To retry, I will charge you %d GP or %d %s for each attempt made. You'll have less time to finish as well.", .@p, .@q * 2, getitemlink(.alt)); + next; + select + l("Not now, thanks."), + rif(Zeny >= .@p, l("I'll pay the GP.")), + rif(countitem(.alt) >= .@q * 2, l("I'll give you the item.")); + mes ""; + if (@menu == 1) close; + if (@menu == 2) Zeny -= .@p; + if (@menu == 3) delitem .alt, .@q * 2; + start(); + return; +} + +OnTouch: + if (@pachua) running(); + end; + +OnInit: + .distance = 4; + .sex = G_MALE; + .price = 320; + .alt = TonoriDelight; + end; +} + diff --git a/npc/004-2/pachua.txt b/npc/004-2/pachua.txt new file mode 100644 index 0000000..b196bfd --- /dev/null +++ b/npc/004-2/pachua.txt @@ -0,0 +1,49 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// Description: +// Part of Speed Run Quest, and an unplanned assassin quest. + +004-2,61,118,0 script Pachua NPC_INDIGENOUS_OLD,1,1,{ + if (@pachua == 1) goto OnTouch; + mesn; + mesq l("Howdy! Mirio and I scout this canyon to protect our clan. I am also a retired assassin, maybe someday I can exchange some knowledge with you! Hahaha!"); + if (getq(LoFQuest_EPISODE) == 9 && + countitem(Honey) >= 10 && + countitem(ElixirOfLife)) { + next; + select + l("Nice."), + l("[10x Honey, 1x Elixir of Life] The Shadow Tortuga won the race against the Panthom Lord."); + mes ""; + if (@menu == 2) { + mesc l("%s lifts an eyebrow to you.", .name$); + next; + inventoryplace ArcmageBoxset, 1; + mesn; + mesq l("So they need me again. Alright. Tell them the following:"); + mes b(l("The crow took off to his last flight.")); + next; + delitem Honey, 10; + delitem ElixirOfLife, 1; + getitem ArcmageBoxset, 1; + setq LoFQuest_EPISODE, 10; + mesn; + mesq l("And you, take this %s. It is a reward for doing the dirty job. You would think old age would let you retire, hahaha!", getitemlink(ArcmageBoxset)); + close; + } + } + close; + +OnTouch: + if (@pachua != 1) end; + message strcharinfo(0), "Pachua quickly inhales from his pipe and releases a ring of smoke towards the sky!"; + @pachua = 2; + end; + +OnInit: + .distance = 4; + .sex = G_MALE; + end; +} + diff --git a/npc/004-2/sign.txt b/npc/004-2/sign.txt new file mode 100644 index 0000000..46a2e75 --- /dev/null +++ b/npc/004-2/sign.txt @@ -0,0 +1,48 @@ +// TMW2 Script. +// Author: +// Jesusalva +// Description: +// Error Handler + +004-2,64,63,0 script Sign#HalinRoute NPC_SWORDS_SIGN,{ + mesc "← "+l("Tulimshar"); + mesc "→ "+l("Canyon - Safe Route"); + mesc "↓ "+l("Canyon - Settlement Route"); + mes ""; + mesc l("\"Follow the light.\" - Weary traveler"); + mesc l("\"Those whom believe the Pink Moouboo wear rock knifes at the entrances.\" - Aahna"); + mesc l("\"Those whom stray from the light shall met a quick death.\" - Saulc, from the 'Blame Saulc' famous book"), 1; + close; + +OnInit: + .sex = G_OTHER; + .distance = 3; + end; +} + +004-2,81,23,0 script Sign#TempBugfix NPC_SWORDS_SIGN,{ + if (countitem(DesertTablet)) goto L_Tablet; + if (MAGIC_LVL >= 7) goto L_RawPower; + mesc l("Impossible to read."); + close; + +L_Tablet: + mes l("The %s shines with a strange light...", getitemlink(DesertTablet)); + next; + closeclientdialog; + cwarp "001-3", 117, 135; + close; + +L_RawPower: + mes l("You can sense powerful cloaking magic emanating from this sign. With your superior magic, you dismiss the enchantment, and see what the cliffs have been hiding all along..."); + next; + closeclientdialog; + cwarp "001-3", 117, 135; + close; + +OnInit: + .sex = G_OTHER; + .distance = 3; + end; +} + |