summaryrefslogtreecommitdiff
path: root/npc/functions/openbook.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/openbook.txt')
-rw-r--r--npc/functions/openbook.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/functions/openbook.txt b/npc/functions/openbook.txt
index 29074bf1..8e7be072 100644
--- a/npc/functions/openbook.txt
+++ b/npc/functions/openbook.txt
@@ -7,24 +7,24 @@
// @book_name$ = The name of the book to read.
function script openbook {
- .@book_name$ = "\"" + l(@book_name$) + "\"";
+ .@book_name$ = "\"" + l(getarg(0, @book_name$)) + "\"";
narrator 4,
l("You open a book named @@.", .@book_name$),
l("Do you want to read it?");
- return (select ("Yes.", "No.") == 1);
+ return (select ("Yes.", "No.") == 1);
}
function script openbookshelf {
- .@book_name$ = "\"" + l(@book_name$) + "\"";
+ .@book_name$ = "\"" + l(getarg(0, @book_name$)) + "\"";
narrator 4,
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?");
- return (select ("Yes.", "No.") == 1);
+ return (select ("Yes.", "No.") == 1);
}
function script openoldbook {
@@ -32,5 +32,5 @@ function script openoldbook {
l("You open the book, but it looks like the sea water and time damaged it severely. Some pages are not readable anymore. Some others are simply missing."),
l("The old book seems to tell about the legend of Aemil. Would you like to read it?");
- return (select ("Yes.", "No.") == 1);
+ return (select ("Yes.", "No.") == 1);
}