From a7c45a192268da2601cef47a4cdba987ae2327ca Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 23 Oct 2022 21:44:22 -0300 Subject: Initial commit (Moubootaur Legends fork) --- npc/005-2/_import.txt | 6 ++++ npc/005-2/_mobs.txt | 3 ++ npc/005-2/_warps.txt | 3 ++ npc/005-2/saxsochest.txt | 82 ++++++++++++++++++++++++++++++++++++++++++++++++ npc/005-2/trapdoor.txt | 13 ++++++++ 5 files changed, 107 insertions(+) create mode 100644 npc/005-2/_import.txt create mode 100644 npc/005-2/_mobs.txt create mode 100644 npc/005-2/_warps.txt create mode 100644 npc/005-2/saxsochest.txt create mode 100644 npc/005-2/trapdoor.txt (limited to 'npc/005-2') diff --git a/npc/005-2/_import.txt b/npc/005-2/_import.txt new file mode 100644 index 0000000..09564f7 --- /dev/null +++ b/npc/005-2/_import.txt @@ -0,0 +1,6 @@ +// Map 005-2: Saxso's House +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/005-2/_mobs.txt", +"npc/005-2/_warps.txt", +"npc/005-2/saxsochest.txt", +"npc/005-2/trapdoor.txt", diff --git a/npc/005-2/_mobs.txt b/npc/005-2/_mobs.txt new file mode 100644 index 0000000..436e0f1 --- /dev/null +++ b/npc/005-2/_mobs.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 005-2: Saxso's House mobs +005-2,43,40,0,0 monster Saxso Ghost 1076,1,36000,300000 diff --git a/npc/005-2/_warps.txt b/npc/005-2/_warps.txt new file mode 100644 index 0000000..35e4436 --- /dev/null +++ b/npc/005-2/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 005-2: Saxso's House warps +005-2,33,43,0 warp #005-2_33_43 0,0,005-1,38,90 diff --git a/npc/005-2/saxsochest.txt b/npc/005-2/saxsochest.txt new file mode 100644 index 0000000..591372e --- /dev/null +++ b/npc/005-2/saxsochest.txt @@ -0,0 +1,82 @@ +// TMW2 Script +// Author: +// Crazyfefe +// Description: +// Minor quest for a necklace + +005-2,44,41,0 script Saxso Chest NPC_NO_SPRITE,{ + + function quest_completed { + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("you already opened the chest."); + close; + } + + function quest_open { + if (countitem(.key) > 0) { + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("You open the chest and found a @@.",getitemlink(.reward)); + delitem .key,1; + getitem .reward,1; + getexp 80, 15; + setq CandorQuest_Chest, 1; + close; + } else { + speech S_FIRST_BLANK_LINE, + l("You don't have the key."); + tutmes l("In the world, you may find several treasure boxes. Different treasure boxes need different keys."), l("Treasure!"); + tutmes l("The most common treasure box uses %s and can opened many times. However, this is a special treasure box. You'll need a %s to open it.", getitemlink(TreasureKey), getitemlink(.key)), l("Treasure!"); + tutmes l("This key is dropped by the Saxso Ghost. Did you knew you can obtain info about the monster drop rates and strength?"), l("Monster Information!"); + tutmes l("Use %s (name in english) to obtain this info. You don't need the full name either, so go ahead and try it!", b("@monsterinfo Saxso")), l("Monster Information!"); + close; + } + } + + function quest_started { + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("It looks locked."); + narrator S_LAST_NEXT, + l("Perhaps you should use a key to open it."); + do + { + select + l("Use a key."), + menuaction(l("Quit")); + + switch (@menu) { + case 1: + quest_open; + break; + } + } while (@menu != 2); + } + + do + { + .@chest = getq(CandorQuest_Chest); + if (.@chest == 1) + goto quest_completed; + select + rif(.@chest == 0,l("There is a dusty chest.")), + menuaction(l("Quit")); + + switch (@menu) { + case 1: + quest_started; + break; + } + } while (@menu != 2); + + closedialog; + goodbye; + close; + +OnInit: + .key = SaxsoKey; + .reward = ToothNecklace; + + .sex = G_MALE; + .distance = 3; + end; +} + diff --git a/npc/005-2/trapdoor.txt b/npc/005-2/trapdoor.txt new file mode 100644 index 0000000..41c2317 --- /dev/null +++ b/npc/005-2/trapdoor.txt @@ -0,0 +1,13 @@ +// TMW 2 script +// Author: +// Saulc + +005-2,24,36,0 script Trap Door NPC_HIDDEN,0,0,{ + end; + +OnTouch: + .@chest = getq(CandorQuest_Chest); + if (.@chest == 1) + warp "005-2-1", 28, 35; + close; +} -- cgit v1.2.3-70-g09d2