Jump to content
  • 0

Questprogress script command


Question

Posted

I wanna know if somebody can give his src mod for get quest progress command from Herc (for instances).

And also I wanna know the main difference between rA & Herc instances system

7 answers to this question

Recommended Posts

  • 0
Posted (edited)
/**
 * questprogress(<ID>{,PLAYTIME|HUNTING{,<char_id>}})
 **/

BUILDIN_DEF(questprogress, "i??"),
BUILDIN_FUNC(questprogress)
{
    struct map_session_data *sd;
    enum quest_check_type type = HAVEQUEST;
    int ret;


    if( script_hasdata(st, 3) )
        type = (enum quest_check_type)script_getnum(st, 3);

    if (!script_charid2sd(4,sd))
        return SCRIPT_CMD_FAILURE;

    ret = quest_check(sd, script_getnum(st, 2), type));
    if (ret == 0) ret = 1;
    if (ret == -1) ret = 0;
    script_pushint(st, ret);

    return SCRIPT_CMD_SUCCESS;
}

haven't tested it but it should work

Edited by Nitrous
  • 0
Posted

Would be way simpler to just use checkquest.

 

Herc:

0 = Quest not started (not in quest log)
1 = Quest has been given
2 = Quest completed
 
rAthena:
-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 completed

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...