From 772993f42814fb16d72725d1e42f8e784ff92377 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 3 Jun 2018 15:10:49 -0300 Subject: Tulimshar Sewers + bugfix --- npc/003-1/_import.txt | 1 + npc/003-1/inac.txt | 22 +++++++++++++++++++--- npc/003-1/sewer.txt | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 npc/003-1/sewer.txt (limited to 'npc/003-1') diff --git a/npc/003-1/_import.txt b/npc/003-1/_import.txt index 8bc084611..4d1007fc7 100644 --- a/npc/003-1/_import.txt +++ b/npc/003-1/_import.txt @@ -28,6 +28,7 @@ "npc/003-1/oldwell.txt", "npc/003-1/sailors.txt", "npc/003-1/sarah.txt", +"npc/003-1/sewer.txt", "npc/003-1/ship.txt", "npc/003-1/shop.txt", "npc/003-1/silvia.txt", diff --git a/npc/003-1/inac.txt b/npc/003-1/inac.txt index 8c05e6a3e..37ae82899 100644 --- a/npc/003-1/inac.txt +++ b/npc/003-1/inac.txt @@ -1,11 +1,27 @@ // TMW2 scripts. // Author: // Saulc +// Jesusalva 003-1,55,82,0 script Inac NPC_PLAYER,{ - - -hello; + mesn; + mesq l("Many stories are told about this city sewers."); + next; + mesn; + mesq l("One of them is really crazy, though: They say that there is a legendary monster down there."); + next; + mesn; + mesq l("That's just nonsense though, I've been there thousands of times and saw no such thing."); + if (getq(TulimsharQuest_Sewers) > 0) + close; + next; + mesn; + mesq l("Anyway, there's a barrier to prevent monsters from attacking the city from below."); + next; + mesn; + mesq l("To enter on them, you need to be level 25 and use the following chant: \"Blame Saulc\". I don't know why, but that open doors!"); + setq TulimsharQuest_Sewers, 1; + close; OnInit: .@npcId = getnpcid(0, .name$); diff --git a/npc/003-1/sewer.txt b/npc/003-1/sewer.txt new file mode 100644 index 000000000..269c56a01 --- /dev/null +++ b/npc/003-1/sewer.txt @@ -0,0 +1,35 @@ +// TMW2 scripts. +// Author: +// Jesusalva +// Notes: +// TW: Tulimshar, West +// TE: Tulimshar, East + +003-1,56,84,0 script #Sewer-TW NPC_NO_SPRITE,{ + if (getq(TulimsharQuest_Sewers) == 0) end; + if (BaseLevel < 25) end; + + mes col("Descend into Tulimshar sewers?", 9); + if (askyesno() == ASK_YES) { + closedialog; + warp "003-1-1", 57, 100; + dispbottom l("Blame Saulc."); + end; + } + close; +} + +003-1,115,111,0 script #Sewer-TE NPC_NO_SPRITE,{ + if (getq(TulimsharQuest_Sewers) == 0) end; + if (BaseLevel < 25) end; + + mes col("Descend into Tulimshar sewers?", 9); + if (askyesno() == ASK_YES) { + closedialog; + warp "003-1-1", 143, 128; + dispbottom l("Blame Saulc."); + end; + } + close; +} + -- cgit v1.2.3-70-g09d2