summaryrefslogtreecommitdiff
path: root/npc/functions/openbook.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-26 00:34:18 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-26 00:34:18 -0300
commit35056b7702f0f21f84d4d16f15e807a545a34b54 (patch)
tree6a3af4856214e60cb96be6faac9d11260f91feda /npc/functions/openbook.txt
parent9d2fd73cef8de24d03121bdde2fd4fb3b803a2f9 (diff)
parent7233ced3d5edaf1799e7bf5fa2961111128b9e5d (diff)
downloadserverdata-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.txt18
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);
}