summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-26 23:11:15 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-26 23:11:15 +0000
commitab60cf06afb586b106991b4b9848dd9c107ddec2 (patch)
treeb3f302475556f8e2a3fc6fb0b94a6796b982a272 /src/map/script.c
parenta184ee1870554dc203de4d3b51f29a3324aaf746 (diff)
downloadhercules-ab60cf06afb586b106991b4b9848dd9c107ddec2.tar.gz
hercules-ab60cf06afb586b106991b4b9848dd9c107ddec2.tar.bz2
hercules-ab60cf06afb586b106991b4b9848dd9c107ddec2.tar.xz
hercules-ab60cf06afb586b106991b4b9848dd9c107ddec2.zip
Added script function hasquest.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12660 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 316bf113a..4f2bcd1b0 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -13161,6 +13161,17 @@ BUILDIN_FUNC(setquestobjective)
return 0;
}
+BUILDIN_FUNC(hasquest)
+{
+
+ TBL_PC * sd = script_rid2sd(st);
+ int qid = script_getnum(st, 2);
+
+ script_pushint(st, quest_has_quest(sd, qid)?1:0);
+
+ return 0;
+}
+
BUILDIN_FUNC(setqueststatus)
{
@@ -13521,5 +13532,6 @@ struct script_function buildin_func[] = {
BUILDIN_DEF(deletequest, "i"),
BUILDIN_DEF(setquestobjective, "iisi"),
BUILDIN_DEF(setqueststatus, "ii"),
+ BUILDIN_DEF(hasquest, "i"),
{NULL,NULL,NULL},
};