Converted Quest Database to YAML (#4064)
* Changes TimeLimit format to be human readable. * Converts title to string. * Converts objectives and drop items to vectors. * General clean ups and optimizations. * Got rid of dummy_quest. * Added TXT to YAML converter. Thanks to @Atemo and @Normynator! Co-authored-by: atemo <capucrath@gmail.com>
This commit is contained in:
@@ -19587,10 +19587,10 @@ BUILDIN_FUNC(changequest)
|
||||
BUILDIN_FUNC(checkquest)
|
||||
{
|
||||
struct map_session_data *sd;
|
||||
enum quest_check_type type = HAVEQUEST;
|
||||
e_quest_check_type type = HAVEQUEST;
|
||||
|
||||
if( script_hasdata(st, 3) )
|
||||
type = (enum quest_check_type)script_getnum(st, 3);
|
||||
type = (e_quest_check_type)script_getnum(st, 3);
|
||||
|
||||
if (!script_charid2sd(4,sd))
|
||||
return SCRIPT_CMD_FAILURE;
|
||||
@@ -19606,12 +19606,11 @@ BUILDIN_FUNC(checkquest)
|
||||
BUILDIN_FUNC(isbegin_quest)
|
||||
{
|
||||
struct map_session_data *sd;
|
||||
int i;
|
||||
|
||||
if (!script_charid2sd(3,sd))
|
||||
return SCRIPT_CMD_FAILURE;
|
||||
|
||||
i = quest_check(sd, script_getnum(st, 2), (enum quest_check_type) HAVEQUEST);
|
||||
int i = quest_check(sd, script_getnum(st, 2), HAVEQUEST);
|
||||
script_pushint(st, i + (i < 1));
|
||||
|
||||
return SCRIPT_CMD_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user