[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /obj/handlers/quest_handler.c</h2>
This class keeps track of the current set of quests availabe in the
game.<p>Written by Furball
<h2>Includes</h2>
This class includes the following files /include/player_handler.h, /include/quest_handler.h and /include/library.h<h2>Method index</h2>
<ul>
<li><a href="#add_area">add_area</a>(string, string)<li><a href="#add_quest">add_quest</a>(string, int, string, string)<br/>
This method adds a new quest into the system.
<li><a href="#all_quest_data">all_quest_data</a>(string)<li><a href="#change_quest_status">change_quest_status</a>(string)<br/>
Change the status of a quest from active to inactive
and vice versa.
<li><a href="#compare_quests">compare_quests</a>(string)<br/>
This method queries the factors that make up the quest points.
<li><a href="#delete_quest">delete_quest</a>(string)<br/>
This method removes the given quest from the system.
<li><a href="#find_quest_by_name">find_quest_by_name</a>(string)<li><a href="#print_some_stats">print_some_stats</a>()<br/>
This method prints out a lot of quest stats.
<li><a href="#query_activated">query_activated</a>(string)<li><a href="#query_active_quests">query_active_quests</a>()<li><a href="#query_all_area_children">query_all_area_children</a>(string)<li><a href="#query_all_hints">query_all_hints</a>(string)<li><a href="#query_area_children">query_area_children</a>(string)<li><a href="#query_area_parents">query_area_parents</a>(string)<li><a href="#query_areas">query_areas</a>()<li><a href="#query_cre_solution">query_cre_solution</a>(string)<li><a href="#query_domains">query_domains</a>(string)<li><a href="#query_fame_str">query_fame_str</a>(string)<br/>
This method returns a string associated with the fame level of the
player.
<li><a href="#query_full_solution">query_full_solution</a>(string)<li><a href="#query_hints">query_hints</a>(string)<li><a href="#query_item_hints">query_item_hints</a>(string)<li><a href="#query_items">query_items</a>(string)<li><a href="#query_location_hints">query_location_hints</a>(string)<li><a href="#query_locations">query_locations</a>(string)<li><a href="#query_new_quest">query_new_quest</a>(string)<li><a href="#query_new_quests">query_new_quests</a>()<li><a href="#query_npc_hints">query_npc_hints</a>(string)<li><a href="#query_npcs">query_npcs</a>(string)<li><a href="#query_player_fame">query_player_fame</a>(string)<br/>
This method returns the fame of the player.
<li><a href="#query_player_story">query_player_story</a>(string)<br/>
This method lists the stories for the quests the player has done.
<li><a href="#query_quest_done">query_quest_done</a>(string)<br/>
This method returns the name of the last person to complete the
quest.
<li><a href="#query_quest_factors">query_quest_factors</a>(string)<br/>
This method queries the factors that make up the quest points.
<li><a href="#query_quest_level">query_quest_level</a>(string)<br/>
This method returns the level of the quest.
<li><a href="#query_quest_levels">query_quest_levels</a>()<br/>
This method returns the levels of all the quests.
<li><a href="#query_quest_names">query_quest_names</a>()<br/>
This method returns the names of all the quests.
<li><a href="#query_quest_status">query_quest_status</a>(string)<br/>
This method returns the status of a quest.
<li><a href="#query_quest_stories">query_quest_stories</a>()<br/>
This method returns the stories of all the quests.
<li><a href="#query_quest_story">query_quest_story</a>(string)<br/>
This method returns the story associated with the quest.
<li><a href="#query_quest_time_done">query_quest_time_done</a>(string)<br/>
This method returns the time of the last time the quest was completed.
<li><a href="#query_quest_times">query_quest_times</a>(string)<br/>
This method returns the number of times the quest has been
completed.
<li><a href="#query_quest_title">query_quest_title</a>(string)<br/>
This method returns the title associated with the quest.
<li><a href="#query_quest_titles">query_quest_titles</a>()<br/>
This method returns the titles of all the quests.
<li><a href="#query_quests">query_quests</a>()<li><a href="#query_total_qp">query_total_qp</a>()<br/>
This returns the current total gp for all of the current quests.
<li><a href="#quest_completed">quest_completed</a>(string, string, object)<br/>
This method should be called in the code when a quest is complete.
<li><a href="#recalc_quest_level">recalc_quest_level</a>(string)<br/>
This method recalculates the level of the quest.
<li><a href="#remove_area">remove_area</a>(string)<li><a href="#rename_area">rename_area</a>(string, string)<li><a href="#set_cre_solution">set_cre_solution</a>(string, string)<li><a href="#set_domains">set_domains</a>(string, string *)<li><a href="#set_full_solution">set_full_solution</a>(string, string)<li><a href="#set_hints">set_hints</a>(string, string *)<li><a href="#set_item_hints">set_item_hints</a>(string, string *)<li><a href="#set_items">set_items</a>(string, string *)<li><a href="#set_level_factor">set_level_factor</a>(string, int, int)<br/>
This sets a given quest level factor of a given quest.
<li><a href="#set_location_hints">set_location_hints</a>(string, string *)<li><a href="#set_locations">set_locations</a>(string, string *)<li><a href="#set_npc_hints">set_npc_hints</a>(string, string *)<li><a href="#set_npcs">set_npcs</a>(string, string *)<li><a href="#set_quest_area">set_quest_area</a>(string, int)<br/>
This method sets the quest points awarded for the dangerousness of the area
the quest is set in.
<li><a href="#set_quest_guild">set_quest_guild</a>(string, int)<br/>
This method sets the quest points awarded for any cross-guild involvement
involved to complete the quest.
<li><a href="#set_quest_level">set_quest_level</a>(string, int)<br/>
This method sets the level of the quest.
<li><a href="#set_quest_money">set_quest_money</a>(string, int)<br/>
This method sets the quest points awarded for the amount of money required
to complete the quest.
<li><a href="#set_quest_npcs">set_quest_npcs</a>(string, int)<br/>
This method sets the quest points awarded for the dangerousness of the npcs
that needs to be killed specifically to complete the quest.
<li><a href="#set_quest_people">set_quest_people</a>(string, int)<br/>
This method sets the quest points awarded for the amount of people involved
to complete the quest.
<li><a href="#set_quest_randomness">set_quest_randomness</a>(string, int)<br/>
This method sets the quest points awarded for the amount of randomness of the
quest.
<li><a href="#set_quest_skills">set_quest_skills</a>(string, int)<br/>
This method sets the quest points awarded for the amount of skills required
to complete the quest.
<li><a href="#set_quest_steps">set_quest_steps</a>(string, int)<br/>
This method sets the quest points awarded for the amount of steps of the
quest.
<li><a href="#set_quest_story">set_quest_story</a>(string, string)<br/>
This method sets the story associated with the quest.
<li><a href="#set_quest_time">set_quest_time</a>(string, int)<br/>
This method sets the quest points awarded for any time factor involved to
complete the quest.
<li><a href="#set_quest_title">set_quest_title</a>(string, string)<br/>
This method sets the title associated with the quest.
<li><a href="#set_quest_travel">set_quest_travel</a>(string, int)<br/>
This method sets the quest points awarded for the amount of travel involved
to complete the quest.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="add_area">
add_area</a><pre class="autodocfuncdef">
int add_area(string area,
             string parent)
</pre>
<dt class="autodocfuncname"><a name="add_quest">
add_quest</a><pre class="autodocfuncdef">
int add_quest(string name,
              int level,
              string title,
              string story)
</pre><dd><br />
This method adds a new quest into the system.  You only need to call
this ONCE.  The name of the quest must be unique.  The story is
what can be seen in the players books about the player.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
title - the title for finishing the quest, 0 for none<br />
story - the story about the quest<br />
<br />
<dd><b>Returns:</b>
<br />1 if successful, 0 if not<br /><br />
<dd><b>See also:</b>
<br /><a href="#delete_quest">delete_quest()</a>, <a href="#query_quest_level">query_quest_level()</a>, <a href="#query_quest_title">query_quest_title()</a> and <a href="#query_quest_story">query_quest_story()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="all_quest_data">
all_quest_data</a><pre class="autodocfuncdef">
mixed * all_quest_data(string name)
</pre>
<dt class="autodocfuncname"><a name="change_quest_status">
change_quest_status</a><pre class="autodocfuncdef">
int change_quest_status(string name)
</pre><dd><br />
Change the status of a quest from active to inactive
and vice versa.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
the - name of a quest.
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="compare_quests">
compare_quests</a><pre class="autodocfuncdef">
void compare_quests(string name)
</pre><dd><br />
This method queries the factors that make up the quest points.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest or the domain. Blank for all quests.<br />
<br />
<dd><b>Returns:</b>
<br />the level of the quest, -1 on failure<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="delete_quest">
delete_quest</a><pre class="autodocfuncdef">
int delete_quest(string name)
</pre><dd><br />
This method removes the given quest from the system.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br />name the name of the quest to remove.c and <a href="#add_quest">add_quest()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="find_quest_by_name">
find_quest_by_name</a><pre class="autodocfuncdef">
int find_quest_by_name(string name)
</pre>
<dt class="autodocfuncname"><a name="print_some_stats">
print_some_stats</a><pre class="autodocfuncdef">
void print_some_stats()
</pre><dd><br />
This method prints out a lot of quest stats. For debugging purposes
only.
<br />

<dt class="autodocfuncname"><a name="query_activated">
query_activated</a><pre class="autodocfuncdef">
int query_activated(string name)
</pre>
<dt class="autodocfuncname"><a name="query_active_quests">
query_active_quests</a><pre class="autodocfuncdef">
string * query_active_quests()
</pre>
<dt class="autodocfuncname"><a name="query_all_area_children">
query_all_area_children</a><pre class="autodocfuncdef">
string * query_all_area_children(string area)
</pre>
<dt class="autodocfuncname"><a name="query_all_hints">
query_all_hints</a><pre class="autodocfuncdef">
class quest_hints query_all_hints(string name)
</pre>
<dt class="autodocfuncname"><a name="query_area_children">
query_area_children</a><pre class="autodocfuncdef">
string * query_area_children(string area)
</pre>
<dt class="autodocfuncname"><a name="query_area_parents">
query_area_parents</a><pre class="autodocfuncdef">
string * query_area_parents(string area)
</pre>
<dt class="autodocfuncname"><a name="query_areas">
query_areas</a><pre class="autodocfuncdef">
mapping query_areas()
</pre>
<dt class="autodocfuncname"><a name="query_cre_solution">
query_cre_solution</a><pre class="autodocfuncdef">
string query_cre_solution(string name)
</pre>
<dt class="autodocfuncname"><a name="query_domains">
query_domains</a><pre class="autodocfuncdef">
string * query_domains(string name)
</pre>
<dt class="autodocfuncname"><a name="query_fame_str">
query_fame_str</a><pre class="autodocfuncdef">
string query_fame_str(string name)
</pre><dd><br />
This method returns a string associated with the fame level of the
player.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the player<br />
<br />
<dd><b>Returns:</b>
<br />the fame string<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_player_fame">query_player_fame()</a> and <a href="#query_player_story">query_player_story()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_full_solution">
query_full_solution</a><pre class="autodocfuncdef">
string query_full_solution(string name)
</pre>
<dt class="autodocfuncname"><a name="query_hints">
query_hints</a><pre class="autodocfuncdef">
string * query_hints(string name)
</pre>
<dt class="autodocfuncname"><a name="query_item_hints">
query_item_hints</a><pre class="autodocfuncdef">
string * query_item_hints(string name)
</pre>
<dt class="autodocfuncname"><a name="query_items">
query_items</a><pre class="autodocfuncdef">
string * query_items(string name)
</pre>
<dt class="autodocfuncname"><a name="query_location_hints">
query_location_hints</a><pre class="autodocfuncdef">
string * query_location_hints(string name)
</pre>
<dt class="autodocfuncname"><a name="query_locations">
query_locations</a><pre class="autodocfuncdef">
string * query_locations(string name)
</pre>
<dt class="autodocfuncname"><a name="query_new_quest">
query_new_quest</a><pre class="autodocfuncdef">
int query_new_quest(string quest)
</pre>
<dt class="autodocfuncname"><a name="query_new_quests">
query_new_quests</a><pre class="autodocfuncdef">
string * query_new_quests()
</pre>
<dt class="autodocfuncname"><a name="query_npc_hints">
query_npc_hints</a><pre class="autodocfuncdef">
string * query_npc_hints(string name)
</pre>
<dt class="autodocfuncname"><a name="query_npcs">
query_npcs</a><pre class="autodocfuncdef">
string * query_npcs(string name)
</pre>
<dt class="autodocfuncname"><a name="query_player_fame">
query_player_fame</a><pre class="autodocfuncdef">
int query_player_fame(string name)
</pre><dd><br />
This method returns the fame of the player.
Gets the fame percentage of the player. Quest points / total quest points<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the player<br />
<br />
<dd><b>Returns:</b>
<br />the fame as a percentage (0-100)<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_player_story">query_player_story()</a>, <a href="#query_fame_string">query_fame_string()</a> and <a href="#query_total_qp">query_total_qp()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_player_story">
query_player_story</a><pre class="autodocfuncdef">
string * query_player_story(string name)
</pre><dd><br />
This method lists the stories for the quests the player has done.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the player<br />
<br />
<dd><b>Returns:</b>
<br />the story of the player<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_fame_string">query_fame_string()</a> and <a href="#query_player_fame">query_player_fame()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_done">
query_quest_done</a><pre class="autodocfuncdef">
string query_quest_done(string name)
</pre><dd><br />
This method returns the name of the last person to complete the
quest.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - thre name of the quest<br />
<br />
<dd><b>Returns:</b>
<br />the last person to complete the quest<br /><br />
<dd><b>See also:</b>
<br /><a href="#quest_completed">quest_completed()</a>, <a href="#add_quest">add_quest()</a> and <a href="#query_quest_times">query_quest_times()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_factors">
query_quest_factors</a><pre class="autodocfuncdef">
int * query_quest_factors(string name)
</pre><dd><br />
This method queries the factors that make up the quest points.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
<br />
<dd><b>Returns:</b>
<br />The quest point factors<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_level">
query_quest_level</a><pre class="autodocfuncdef">
int query_quest_level(string name)
</pre><dd><br />
This method returns the level of the quest.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
<br />
<dd><b>Returns:</b>
<br />the level of the quest, -1 on failure<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_levels">
query_quest_levels</a><pre class="autodocfuncdef">
int * query_quest_levels()
</pre><dd><br />
This method returns the levels of all the quests.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the levels of all the quests<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#delete_quest">delete_quest()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_names">
query_quest_names</a><pre class="autodocfuncdef">
string * query_quest_names()
</pre><dd><br />
This method returns the names of all the quests.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the names of all the quests<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#delete_quest">delete_quest()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_status">
query_quest_status</a><pre class="autodocfuncdef">
int query_quest_status(string name)
</pre><dd><br />
This method returns the status of a quest.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
the - name of a quest<br />
<br />
<dd><b>Returns:</b>
<br />1 for active, 0 for inactive.
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_quest_stories">
query_quest_stories</a><pre class="autodocfuncdef">
string * query_quest_stories()
</pre><dd><br />
This method returns the stories of all the quests.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the stories of all the quests<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#delete_quest">delete_quest()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_story">
query_quest_story</a><pre class="autodocfuncdef">
string query_quest_story(string name)
</pre><dd><br />
This method returns the story associated with the quest.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - of the quest<br />
<br />
<dd><b>Returns:</b>
<br />the story of the quest<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#set_quest_story">set_quest_story()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_time_done">
query_quest_time_done</a><pre class="autodocfuncdef">
int query_quest_time_done(string name)
</pre><dd><br />
This method returns the time of the last time the quest was completed.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
<br />
<dd><b>Returns:</b>
<br />the last time the quest was completed<br /><br />
<dd><b>See also:</b>
<br /><a href="#quest_completed">quest_completed()</a>, <a href="#add_quest">add_quest()</a> and <a href="#query_quest_times">query_quest_times()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_times">
query_quest_times</a><pre class="autodocfuncdef">
int query_quest_times(string name)
</pre><dd><br />
This method returns the number of times the quest has been
completed.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - thre name of the quest<br />
<br />
<dd><b>Returns:</b>
<br />the number of times completed<br /><br />
<dd><b>See also:</b>
<br /><a href="#quest_completed">quest_completed()</a>, <a href="#add_quest">add_quest()</a> and <a href="#query_quest_done">query_quest_done()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_title">
query_quest_title</a><pre class="autodocfuncdef">
string query_quest_title(string name)
</pre><dd><br />
This method returns the title associated with the quest.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - of the quest<br />
<br />
<dd><b>Returns:</b>
<br />the title of the quest<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#set_quest_title">set_quest_title()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quest_titles">
query_quest_titles</a><pre class="autodocfuncdef">
string * query_quest_titles()
</pre><dd><br />
This method returns the titles of all the quests.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the titles of all the quests<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#delete_quest">delete_quest()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_quests">
query_quests</a><pre class="autodocfuncdef">
class quest * query_quests()
</pre>
<dt class="autodocfuncname"><a name="query_total_qp">
query_total_qp</a><pre class="autodocfuncdef">
int query_total_qp()
</pre><dd><br />
This returns the current total gp for all of the current quests.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the total gp
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="quest_completed">
quest_completed</a><pre class="autodocfuncdef">
void quest_completed(string name,
                     string quest,
                     object prev_ob)
</pre><dd><br />
This method should be called in the code when a quest is complete.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - name of the player<br />
quest - the quest completed<br />
prev_ob - the object which completed the quest<br />
<br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#delete_quest">delete_quest()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="recalc_quest_level">
recalc_quest_level</a><pre class="autodocfuncdef">
int recalc_quest_level(string name)
</pre><dd><br />
This method recalculates the level of the quest.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
<br />
<dd><b>Returns:</b>
<br />the 1 if it succeeds, 0 if it fails<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="remove_area">
remove_area</a><pre class="autodocfuncdef">
int remove_area(string area)
</pre>
<dt class="autodocfuncname"><a name="rename_area">
rename_area</a><pre class="autodocfuncdef">
int rename_area(string area,
                string new_name)
</pre>
<dt class="autodocfuncname"><a name="set_cre_solution">
set_cre_solution</a><pre class="autodocfuncdef">
int set_cre_solution(string name,
                     string solution)
</pre>
<dt class="autodocfuncname"><a name="set_domains">
set_domains</a><pre class="autodocfuncdef">
int set_domains(string name,
                string * domains)
</pre>
<dt class="autodocfuncname"><a name="set_full_solution">
set_full_solution</a><pre class="autodocfuncdef">
int set_full_solution(string name,
                      string solution)
</pre>
<dt class="autodocfuncname"><a name="set_hints">
set_hints</a><pre class="autodocfuncdef">
int set_hints(string name,
              string * hints)
</pre>
<dt class="autodocfuncname"><a name="set_item_hints">
set_item_hints</a><pre class="autodocfuncdef">
int set_item_hints(string name,
                   string * hints)
</pre>
<dt class="autodocfuncname"><a name="set_items">
set_items</a><pre class="autodocfuncdef">
int set_items(string name,
              string * items)
</pre>
<dt class="autodocfuncname"><a name="set_level_factor">
set_level_factor</a><pre class="autodocfuncdef">
int set_level_factor(string name,
                     int factor,
                     int num)
</pre><dd><br />
This sets a given quest level factor of a given quest.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - The name of the quest to set<br />
factor - Which factor to change<br />
num - The value to set the factor to<br />
<br />
<dd><b>Returns:</b>
<br />1 for success, 0 for failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="set_location_hints">
set_location_hints</a><pre class="autodocfuncdef">
int set_location_hints(string name,
                       string * hints)
</pre>
<dt class="autodocfuncname"><a name="set_locations">
set_locations</a><pre class="autodocfuncdef">
int set_locations(string name,
                  string * locs)
</pre>
<dt class="autodocfuncname"><a name="set_npc_hints">
set_npc_hints</a><pre class="autodocfuncdef">
int set_npc_hints(string name,
                  string * hints)
</pre>
<dt class="autodocfuncname"><a name="set_npcs">
set_npcs</a><pre class="autodocfuncdef">
int set_npcs(string name,
             string * npcs)
</pre>
<dt class="autodocfuncname"><a name="set_quest_area">
set_quest_area</a><pre class="autodocfuncdef">
int set_quest_area(string name,
                   int num)
</pre><dd><br />
This method sets the quest points awarded for the dangerousness of the area
the quest is set in. Can be 0-2.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_guild">
set_quest_guild</a><pre class="autodocfuncdef">
int set_quest_guild(string name,
                    int num)
</pre><dd><br />
This method sets the quest points awarded for any cross-guild involvement
involved to complete the quest. Can be 0-1.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_level">
set_quest_level</a><pre class="autodocfuncdef">
int set_quest_level(string name,
                    int level)
</pre><dd><br />
This method sets the level of the quest.
This is deprecated.  Set the level factors instead.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a>, <a href="#set_level_factor">set_level_factor()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_money">
set_quest_money</a><pre class="autodocfuncdef">
int set_quest_money(string name,
                    int num)
</pre><dd><br />
This method sets the quest points awarded for the amount of money required
to complete the quest. Can be 0-2.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_npcs">
set_quest_npcs</a><pre class="autodocfuncdef">
int set_quest_npcs(string name,
                   int num)
</pre><dd><br />
This method sets the quest points awarded for the dangerousness of the npcs
that needs to be killed specifically to complete the quest. Can be 0-2.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_people">
set_quest_people</a><pre class="autodocfuncdef">
int set_quest_people(string name,
                     int num)
</pre><dd><br />
This method sets the quest points awarded for the amount of people involved
to complete the quest. Can be 0-1.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_randomness">
set_quest_randomness</a><pre class="autodocfuncdef">
int set_quest_randomness(string name,
                         int num)
</pre><dd><br />
This method sets the quest points awarded for the amount of randomness of the
quest. Can be 0-3.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_skills">
set_quest_skills</a><pre class="autodocfuncdef">
int set_quest_skills(string name,
                     int num)
</pre><dd><br />
This method sets the quest points awarded for the amount of skills required
to complete the quest. Can be 0-2.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_steps">
set_quest_steps</a><pre class="autodocfuncdef">
int set_quest_steps(string name,
                    int num)
</pre><dd><br />
This method sets the quest points awarded for the amount of steps of the
quest. Can be 0-3.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_story">
set_quest_story</a><pre class="autodocfuncdef">
int set_quest_story(string name,
                    string story)
</pre><dd><br />
This method sets the story associated with the quest.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - of the quest<br />
story - the new story of the quest<br />
<br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_story">query_quest_story()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_time">
set_quest_time</a><pre class="autodocfuncdef">
int set_quest_time(string name,
                   int num)
</pre><dd><br />
This method sets the quest points awarded for any time factor involved to
complete the quest. Can be 0-1.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_title">
set_quest_title</a><pre class="autodocfuncdef">
int set_quest_title(string name,
                    string title)
</pre><dd><br />
This method sets the title associated with the quest.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - of the quest<br />
title - the new title of the quest<br />
<br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_title">query_quest_title()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_quest_travel">
set_quest_travel</a><pre class="autodocfuncdef">
int set_quest_travel(string name,
                     int num)
</pre><dd><br />
This method sets the quest points awarded for the amount of travel involved
to complete the quest. Can be 0-2.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the quest<br />
level - the level of the quest<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure, 1 on success<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_quest">add_quest()</a> and <a href="#query_quest_level">query_quest_level()
</a><br /><br /><br /></dl>

</dl>
[an error occurred while processing this directive]

