diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-03-14 14:09:36 -0300 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-03-25 14:55:34 -0400 |
commit | a595cedb07e4306b3b44e5f8f05a0c26f3c4ad75 (patch) | |
tree | 904f69ffad0471dca6ed4c77faa6c59406b6bcc4 /npc/functions | |
parent | 5f3e8ae9fd8c885b14ca17cf869d1a95ca12c930 (diff) | |
download | serverdata-a595cedb07e4306b3b44e5f8f05a0c26f3c4ad75.tar.gz serverdata-a595cedb07e4306b3b44e5f8f05a0c26f3c4ad75.tar.bz2 serverdata-a595cedb07e4306b3b44e5f8f05a0c26f3c4ad75.tar.xz serverdata-a595cedb07e4306b3b44e5f8f05a0c26f3c4ad75.zip |
New books
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/openbook.txt | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/npc/functions/openbook.txt b/npc/functions/openbook.txt index 0278415c..cb1a0b11 100644 --- a/npc/functions/openbook.txt +++ b/npc/functions/openbook.txt @@ -3,26 +3,24 @@ // Reid // Description: // Narrator dialogue to show the selected book. -// Variables: -// @book_name$ = The name of the book to read. function script openbook { - .@book_name$ = "\"" + l(getarg(0, getvariableofnpc(.book_name$, strnpcinfo(0)))) + "\""; + .@book_name$ = getarg(0, getvariableofnpc(.book_name$, strnpcinfo(0))); - narrator S_LAST_NEXT, - l("You open a book named @@.", .@book_name$), - l("Do you want to read it?"); + narrator(S_LAST_NEXT, + l("You open a book named \"%s\".", .@book_name$), + l("Do you want to read it?")); return (select("Yes.", "No.") == 1); } function script openbookshelf { - .@book_name$ = "\"" + l(getarg(0, getvariableofnpc(.book_name$, strnpcinfo(0)))) + "\""; + .@book_name$ = getarg(0, getvariableofnpc(.book_name$, strnpcinfo(0))); - narrator S_LAST_NEXT, + narrator(S_LAST_NEXT, l("You see a dust covered book on the shelf..."), - l("The name of the book is @@.", .@book_name$), - l("Do you want to read it?"); + l("The name of the book is \"%s\".", .@book_name$), + l("Do you want to read it?")); return (select("Yes.", "No.") == 1); } |