summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-12-28 17:08:51 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-12-28 17:08:51 +0000
commit69d5bbb1866f9dd0570de23ede78240e94a067e9 (patch)
treefee8f9c47281a678e92591d139fed489ce06c7af /src/map/script.c
parentbb34b7681e824a17be7d60d351187977310b99a9 (diff)
downloadhercules-69d5bbb1866f9dd0570de23ede78240e94a067e9.tar.gz
hercules-69d5bbb1866f9dd0570de23ede78240e94a067e9.tar.bz2
hercules-69d5bbb1866f9dd0570de23ede78240e94a067e9.tar.xz
hercules-69d5bbb1866f9dd0570de23ede78240e94a067e9.zip
- Book reading script command.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13417 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index a40a50bd7..8bd8c9ef1 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -13140,6 +13140,24 @@ BUILDIN_FUNC(mercenary_set_faith)
return 0;
}
+/*------------------------------------------
+ * Book Reading
+ *------------------------------------------*/
+BUILDIN_FUNC(readbook)
+{
+ struct map_session_data *sd;
+ int book_id, page;
+
+ if( (sd = script_rid2sd(st)) == NULL )
+ return 0;
+
+ book_id = script_getnum(st,2);
+ page = script_getnum(st,3);
+
+ clif_readbook(sd->fd, book_id, page);
+ return 0;
+}
+
/******************
Questlog script commands
*******************/
@@ -13578,6 +13596,7 @@ struct script_function buildin_func[] = {
BUILDIN_DEF(mercenary_get_faith,"i"),
BUILDIN_DEF(mercenary_set_calls,"ii"),
BUILDIN_DEF(mercenary_set_faith,"ii"),
+ BUILDIN_DEF(readbook,"ii"),
// WoE SE
BUILDIN_DEF(agitstart2,""),
BUILDIN_DEF(agitend2,""),