summaryrefslogtreecommitdiff
path: root/src/map/quest.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/quest.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/quest.c')
-rw-r--r--src/map/quest.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/quest.c b/src/map/quest.c
index b822b67ca..057c46d7c 100644
--- a/src/map/quest.c
+++ b/src/map/quest.c
@@ -185,6 +185,15 @@ int quest_update_objective(TBL_PC * sd, int quest_id, int objective_num, const c
}
+bool quest_has_quest(TBL_PC * sd, int quest_id)
+{
+ int i;
+
+ ARR_FIND(0, MAX_QUEST, i, sd->quest_log[i].quest_id == quest_id);
+
+ return (i != MAX_QUEST);
+}
+
int quest_update_status(TBL_PC * sd, int quest_id, bool status)
{