diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-03-16 10:16:01 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-03-16 10:16:01 -0300 |
commit | 4bb021a442a620f324a9ed39f574ba4a060f3ead (patch) | |
tree | 5022a3038e6b24ed7664b4aa88f83498da3a50b5 /npc | |
parent | 04d3ce6e9e906529c3da753be3e6b74a1acbba99 (diff) | |
download | serverdata-4bb021a442a620f324a9ed39f574ba4a060f3ead.tar.gz serverdata-4bb021a442a620f324a9ed39f574ba4a060f3ead.tar.bz2 serverdata-4bb021a442a620f324a9ed39f574ba4a060f3ead.tar.xz serverdata-4bb021a442a620f324a9ed39f574ba4a060f3ead.zip |
Add GameNews to LaJohanne notes (untested)
Diffstat (limited to 'npc')
-rw-r--r-- | npc/002-3/note.txt | 20 | ||||
-rw-r--r-- | npc/functions/game-rules.txt | 1 | ||||
-rw-r--r-- | npc/functions/news.txt | 15 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
4 files changed, 35 insertions, 2 deletions
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", |