From 4bb021a442a620f324a9ed39f574ba4a060f3ead Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 16 Mar 2018 10:16:01 -0300 Subject: Add GameNews to LaJohanne notes (untested) --- npc/002-3/note.txt | 20 ++++++++++++++++++-- npc/functions/game-rules.txt | 1 + npc/functions/news.txt | 15 +++++++++++++++ npc/scripts.conf | 1 + 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 npc/functions/news.txt (limited to 'npc') diff --git a/npc/002-3/note.txt b/npc/002-3/note.txt index 0ab6c88c0..5dc89b8f7 100644 --- a/npc/002-3/note.txt +++ b/npc/002-3/note.txt @@ -9,9 +9,25 @@ 002-3,40,25,0 script Note#johanne NPC_PAPER_NOTE,{ narrator S_LAST_NEXT, - l("There is a paper with some rules written on it."); + l("The La Johanne always have interesting notes."); + + do { + selectd + l("Read the Rules."), + l("Read the News."), + l("Leave."); + + switch (@menu) { + case 1: + GameRules 8 | 4; + break; + case 2: + GameNews 8 | 4; + break; + + } + } while (@menu != 3); - GameRules 8 | 4; narrator S_NO_NPC_NAME, l("Following these lines are some other writings on this paper."), diff --git a/npc/functions/game-rules.txt b/npc/functions/game-rules.txt index 1bd0d3aa9..d5618e66d 100644 --- a/npc/functions/game-rules.txt +++ b/npc/functions/game-rules.txt @@ -1,3 +1,4 @@ +// TMW-2 script. // Evol scripts. // Authors: // gumi diff --git a/npc/functions/news.txt b/npc/functions/news.txt new file mode 100644 index 000000000..60838997c --- /dev/null +++ b/npc/functions/news.txt @@ -0,0 +1,15 @@ +// TMW-2 script. +// Authors: +// Jesusalva +// Description: +// Server news. + +function script GameNews { + narrator getarg(0, 0), + l("You can read the [@@news|latest news@@], or even the [@@https://tmw2.org/news|older entries@@]."), + l("Release 2.1 - Free Lunch For Those Who Work Hard!"), + l(""), + l("Shall you have any inquiry, do not hesit to [@@mailto:admin@tmw2.org|send us an email@@]##b."); + return; +} + diff --git a/npc/scripts.conf b/npc/scripts.conf index 3d75acc1f..ee908344b 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -42,6 +42,7 @@ "npc/functions/mouboofunc.txt", "npc/functions/asklanguage.txt", "npc/functions/game-rules.txt", +"npc/functions/news.txt", "npc/functions/riddle.txt", "npc/functions/confused-tree-dict.txt", "npc/functions/util.txt", -- cgit v1.2.3-70-g09d2