From 34b37179c0895f0b0acc4377bf2bfe5edfcff9ce Mon Sep 17 00:00:00 2001 From: Inkfish Date: Sat, 25 Jul 2009 20:55:35 +0000 Subject: Rewrote Quest Log system. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13959 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 3b2fab576..880167797 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -130,6 +130,8 @@ //= Extended the behaviour of duplicates (warps/shops/cashshops). [FlavioJS] //= 3.26.20090702 //= Replaced 'bonusautoscript' by 'autobonus'. [Inkfish] +//= 3.27.20090725 +//= Added Quest Log related commands. [Inkfish] //========================================================= This document is a reference manual for all the scripting commands and functions @@ -6527,5 +6529,57 @@ instance times out while inactive. --------------------------------------- +======================== +|8.- Quest Log commands.| +======================== +--------------------------------------- + +*setquest ; + +Place quest of in the users quest log, the state of which is "active". + +--------------------------------------- + +*completequest ; + +Change the state for the given quest to "complete" and remove from the users quest log. + +--------------------------------------- + +*erasequest ; + +Remove the quest of the given from the user's quest log. + +--------------------------------------- + +*changequest ,; + +Remove quest of the given from the user's quest log, and change state to "complete". +Add quest of the to the the quest log, and the state is "active". + +--------------------------------------- + +checkquest({,PLAYTIME|HUNTING}); + +If no additonal argument supplied, return the state of the quest: + -1 = Quest not started (not in quest log) + 0 = Quest has been given, but the state is "inactive" + 1 = Quest has been given, and the state is "active" + 2 = Quest comepleted + +If parameter "PLAYTIME" is supplied: + -1 = Quest not started (not in quest log) + 0 = the time limit has not yet been reached + 1 = the time limit has not been reached but the quest is marked as complete + 2 = the time limit has been reached + +If parameter "HUNTING" is supplied: + -1 = Quest not started (not in quest log) + 0 = you haven't killed all of the target monsters and the time limit has not been reached. + 1 = you haven't killed all of the target monsters but the time limit has been reached. + 2 = you've killed all of the target monsters + +--------------------------------------- + Whew. That's about all of them. -- cgit v1.2.3-60-g2f50