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/011-1 | |
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/011-1')
-rw-r--r-- | npc/011-1/_import.txt | 6 | ||||
-rw-r--r-- | npc/011-1/_mobs.txt | 7 | ||||
-rw-r--r-- | npc/011-1/_warps.txt | 3 | ||||
-rw-r--r-- | npc/011-1/manastone.txt | 136 | ||||
-rw-r--r-- | npc/011-1/treasure.txt | 9 |
5 files changed, 161 insertions, 0 deletions
diff --git a/npc/011-1/_import.txt b/npc/011-1/_import.txt new file mode 100644 index 0000000..258abb6 --- /dev/null +++ b/npc/011-1/_import.txt @@ -0,0 +1,6 @@ +// Map 011-1: Depleted Mana Stones Mine +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/011-1/_mobs.txt", +"npc/011-1/_warps.txt", +"npc/011-1/manastone.txt", +"npc/011-1/treasure.txt", diff --git a/npc/011-1/_mobs.txt b/npc/011-1/_mobs.txt new file mode 100644 index 0000000..6ab25f2 --- /dev/null +++ b/npc/011-1/_mobs.txt @@ -0,0 +1,7 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 011-1: Depleted Mana Stones Mine mobs +011-1,99,100,79,79 monster Mana Ghost 1068,40,20000,20000 +011-1,98,101,79,79 monster Fire Goblin 1067,90,60000,60000 +011-1,100,99,79,79 monster Lava Slime 1097,30,60000,60000 +011-1,101,98,79,79 monster Red Slime 1092,100,60000,60000 +011-1,97,102,79,79 monster Mineral Bif 1058,20,60000,60000 diff --git a/npc/011-1/_warps.txt b/npc/011-1/_warps.txt new file mode 100644 index 0000000..bba2aa0 --- /dev/null +++ b/npc/011-1/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 011-1: Depleted Mana Stones Mine warps +011-1,177,178,0 warp #011-1_177_178 0,0,009-1,119,41 diff --git a/npc/011-1/manastone.txt b/npc/011-1/manastone.txt new file mode 100644 index 0000000..3d8df2b --- /dev/null +++ b/npc/011-1/manastone.txt @@ -0,0 +1,136 @@ +// TMW2 Script +// Author: +// Jesusalva +// Description: +// The last Mana Stone in the whole world, which is not owned by the Magic Council +// or the Monster King. +// It actually hates (or rather, fears) everybody, and is not always willing to +// talk with people. May hide itself within the walls during these occasions. +// It may not hate some very specific things which are lore-related. +// +// Notes: During sieges, Monster King and Human Council apparitions, it may hide +// itself. +// +// Variables: +// $MANA_BINT => Base Intelligence for Mana Stone +// $MANA_BLVL => Base Level for Mana Stone +// $MANA_JLVL => Base Job Level for Mana Stone +// .int => Int Increment +// .lvl => Lvl Increment +// .jlvl => Jlv Increment + +011-1,0,0,0 script Mana Stone NPC_MANA_STONE,{ + function dearLord; + + if (BaseLevel < $MANA_BLVL) goto L_NotWorthy; + mesn; + mes l("The mighty Mana Stone does not reacts against you."); + mes l("Although this particular one seems to hate everyone and everything, it recognizes your strength."); + mes l("If you fell ready, perhaps you should touch it?"); + mes ""; + menu + l("Touch it!"), L_Level, + l("Take it!"), L_NotWorthy2, + l("Break it!"), L_NotWorthy2, + l("Leave it alone!"), -; + close; + + + +L_NotWorthy2: + if (is_gm()) movenpc .name$, 20+rand(150), 20+rand(150); + if (is_gm()) close; + npctalk3 l("You are not worthy!"); + percentheal -20, -50; + if (!MAGIC_LVL) + dispbottom l("I should train my intelligence, have full MP, and don't neglect even Job Level."); + end; + +L_Level: + // See functions/util.txt for *mstone() details + if (mstone(0)) goto L_LevelUp; + if (mstone(1)) goto L_LevelUp; + if (mstone(2)) goto L_LevelUp; + if (mstone(3)) goto L_LevelUp; + if (mstone(4)) goto L_LevelUp; + if (mstone(5)) goto L_LevelUp; + if (mstone(6)) goto L_LevelUp; + if (MAGIC_LVL >= 7) dearLord(); + if (MAGIC_LVL >= 7) npctalk3 l("You already got all power I could grant you!"); + if (is_gm()) percentheal -20, -50; + if (MAGIC_LVL >= 7 || is_gm()) close; + +L_NotWorthy: + if (readparam(Sp) != readparam(MaxSp)) + dispbottom l("I must have full MP to touch it... Which I don't."); + else + dispbottom l("I should train my intelligence, and level up, both my base as my Job Level."); + npctalk3 l("You are not worthy!"); + percentheal min(-10, -70+BaseLevel), min(-10, -100+BaseLevel); + end; + +L_LevelUp: + mes ""; + mes l("A great rush of mana flows though you."); + if (!MAGIC_LVL) mes l("Magic Power is granted to you, but you die from it."); + if (MAGIC_LVL) mes l("More Magic Power is granted to you, but you die from it."); + MAGIC_LVL = MAGIC_LVL+1; + sk_lvup(AL_DP); + // No penalty for death provoked by Mana Stone, see npc/001-8/hub.txt for more info + sc_start SC_CASH_DEATHPENALTY, 1000, 1; + /* + @deathpenalty_realvalue=readparam(BaseExp); + @deathpenalty_realvaljob=readparam(JobExp); + @deathpenalty_override=1; + */ + die(); + close; + +function dearLord { + if ($MANASTONE_WINNER$ == "") { + $MANASTONE_WINNER$=strcharinfo(0); + channelmes("#world", $MANASTONE_WINNER$+" is the first player to reach "+get_race()+"'s magic limit since the Monster King! %%N"); + announce "All hail ##B"+$MANASTONE_WINNER$+"##b, first to reach "+get_race()+"'s magic limit since the Monster King! %%N", bc_all|bc_npc; + getexp 0, 2000; + getitem SupremeGift, 1; + mesc l("CONGRATULATIONS! You are the first player to harness all power the Mana Stone would willingly give!"), 2; + mesc l("You just gained a Supreme Gift, and 2000 Job Exp for your bravery!"), 2; + next; + } + return; +} + +OnInit: + movenpc .name$, 20+rand(150), 20+rand(150); + .sex = G_OTHER; + .distance = 6; + end; + +OnClock0030: +OnClock0120: +OnClock0210: +OnClock0300: +OnClock0450: +OnClock0540: +OnClock0630: +OnClock0720: +OnClock0810: +OnClock0900: +OnClock1050: +OnClock1140: +OnClock1230: +OnClock1320: +OnClock1410: +OnClock1500: +OnClock1650: +OnClock1740: +OnClock1830: +OnClock1920: +OnClock2010: +OnClock2100: +OnClock2250: +OnClock2340: + npctalk "Those who are worthy, may get my magic. For the others, death awaits!"; + movenpc .name$, 20+rand(150), 20+rand(150); + end; +} diff --git a/npc/011-1/treasure.txt b/npc/011-1/treasure.txt new file mode 100644 index 0000000..8b2eb8e --- /dev/null +++ b/npc/011-1/treasure.txt @@ -0,0 +1,9 @@ +// TMW2 Script + +// (Random) Treasure Chest +// Authored by Jesusalva +// Regenerates every 6 hours + +011-1,0,0,0 duplicate(#chest_00710) #chest_01110 NPC_CHEST +011-1,0,0,0 duplicate(#chest_00710) #chest_01111 NPC_CHEST + |