diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-03-26 00:34:18 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-03-26 00:34:18 -0300 |
commit | 35056b7702f0f21f84d4d16f15e807a545a34b54 (patch) | |
tree | 6a3af4856214e60cb96be6faac9d11260f91feda /npc/functions/openbook.txt | |
parent | 9d2fd73cef8de24d03121bdde2fd4fb3b803a2f9 (diff) | |
parent | 7233ced3d5edaf1799e7bf5fa2961111128b9e5d (diff) | |
download | serverdata-jesusalva/fishing.tar.gz serverdata-jesusalva/fishing.tar.bz2 serverdata-jesusalva/fishing.tar.xz serverdata-jesusalva/fishing.zip |
Merge branch 'master' into jesusalva/fishingjesusalva/fishing
Diffstat (limited to 'npc/functions/openbook.txt')
-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); } |