summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-06-25 21:00:42 +0100
committerAsheraf <acheraf1998@gmail.com>2018-07-24 02:24:40 +0100
commit7c43dd908622e083b0fecf7fc8ebab61501186fa (patch)
treef742073f0dcc69ac5ac365ab24adaaac7aebc0df /src/map/clif.c
parent620c55e87019a46ffffc6ffb69bea77df088b904 (diff)
downloadhercules-7c43dd908622e083b0fecf7fc8ebab61501186fa.tar.gz
hercules-7c43dd908622e083b0fecf7fc8ebab61501186fa.tar.bz2
hercules-7c43dd908622e083b0fecf7fc8ebab61501186fa.tar.xz
hercules-7c43dd908622e083b0fecf7fc8ebab61501186fa.zip
Questinfo System overhaul
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 061cb7073..2a2d87ccc 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10068,14 +10068,9 @@ static void clif_parse_LoadEndAck(int fd, struct map_session_data *sd)
int i;
for (i = 0; i < VECTOR_LENGTH(map->list[sd->bl.m].qi_data); i++) {
struct questinfo *qi = &VECTOR_INDEX(map->list[sd->bl.m].qi_data, i);
- if( quest->check(sd, qi->quest_id, HAVEQUEST) == -1 ) {// Check if quest is not started
- if( qi->hasJob ) { // Check if quest is job-specific, check is user is said job class.
- if (sd->status.class == qi->job)
- clif->quest_show_event(sd, &qi->nd->bl, qi->icon, qi->color);
- } else {
- clif->quest_show_event(sd, &qi->nd->bl, qi->icon, qi->color);
- }
- }
+
+ if (quest->questinfo_validate(sd, qi))
+ clif->quest_show_event(sd, &qi->nd->bl, qi->icon, qi->color);
}
}
#endif