From 46ab229818db5c5e00fc56b0f3bf0e0c2f0a720f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 3 Jun 2019 10:32:39 -0300 Subject: Regenerate maps, change boos room to MMO, instance only, allow to leave only after quest state 6. --- maps/re/015-8-1.mcache | Bin 267 -> 280 bytes npc/015-8-1/_import.txt | 2 ++ npc/015-8-1/campaign.txt | 7 +++++++ npc/015-8-1/puzzle.txt | 30 ++++++++++++++++++++++++++++++ npc/015-8/config.txt | 1 + 5 files changed, 40 insertions(+) create mode 100644 npc/015-8-1/campaign.txt create mode 100644 npc/015-8-1/puzzle.txt diff --git a/maps/re/015-8-1.mcache b/maps/re/015-8-1.mcache index 3cacaa10c..479b8ae61 100644 Binary files a/maps/re/015-8-1.mcache and b/maps/re/015-8-1.mcache differ diff --git a/npc/015-8-1/_import.txt b/npc/015-8-1/_import.txt index e3e37fbad..d2ae0e8bb 100644 --- a/npc/015-8-1/_import.txt +++ b/npc/015-8-1/_import.txt @@ -1,2 +1,4 @@ // Map 015-8-1: Cave Of Trials // This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/015-8-1/campaign.txt", +"npc/015-8-1/puzzle.txt", diff --git a/npc/015-8-1/campaign.txt b/npc/015-8-1/campaign.txt new file mode 100644 index 000000000..24c704c15 --- /dev/null +++ b/npc/015-8-1/campaign.txt @@ -0,0 +1,7 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// Description: +// Sagratha Quest + + diff --git a/npc/015-8-1/puzzle.txt b/npc/015-8-1/puzzle.txt new file mode 100644 index 000000000..6c91c6bf0 --- /dev/null +++ b/npc/015-8-1/puzzle.txt @@ -0,0 +1,30 @@ +// TMW2 scripts. +// Author: +// Jesusalva +// Description: +// PUZZLES and TRAPS submodule - Sagratha's Cave Boss Room - 015-8-1 + +// Exit area +015-8-1,50,79,0 script #Exit01581 NPC_HIDDEN,1,0,{ + end; +OnTouch: + .@q=getq(HurnscaldQuest_Sagratha); + // Cheater Detected + if (!MAGIC_LVL || .@q < 5) { + setq HurnscaldQuest_Sagratha, 0, 0, 0; + sc_end SC_CASH_PLUSEXP; + sc_end SC_OVERLAPEXPUP; + sc_start SC_OVERLAPEXPUP, 300000, -20; + warp "Save", 0, 0; + end; + } + if (.@q == 5) { + npctalkonce l("You are NOT allowed to leave here!"); + } else { + warp "015-8", 94, 21; + } + end; +} + + + diff --git a/npc/015-8/config.txt b/npc/015-8/config.txt index 75fa95002..6076fc9da 100644 --- a/npc/015-8/config.txt +++ b/npc/015-8/config.txt @@ -5,6 +5,7 @@ // 015-8 Sagratha Cave Configuration File 015-8 mapflag zone MMO +015-8-1 mapflag zone MMO // Check instances and rebuild if needed // Returns map name -- cgit v1.2.3-60-g2f50