summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@users.noreply.github.com>2013-10-25 21:11:05 -0700
committershennetsind <shennetsind@users.noreply.github.com>2013-10-25 21:11:05 -0700
commit1ab0017183e910271f4590beee37530fa3ce8ba0 (patch)
tree03ef8eb76a73d498e69e8c7e1160a1015a4c9653 /src/map/clif.c
parent5f6f1d66834b8328496c1678f0ce4f90a001b3fb (diff)
parentf7158456d9f6338b38b16f321c9a229fc6547bc0 (diff)
downloadhercules-1ab0017183e910271f4590beee37530fa3ce8ba0.tar.gz
hercules-1ab0017183e910271f4590beee37530fa3ce8ba0.tar.bz2
hercules-1ab0017183e910271f4590beee37530fa3ce8ba0.tar.xz
hercules-1ab0017183e910271f4590beee37530fa3ce8ba0.zip
Merge pull request #202 from kisuka/master
Quest Bubbles (Actually Works Finally)
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 94fc6f7a7..decdfc2ce 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9316,6 +9316,8 @@ void clif_hercules_chsys_mjoin(struct map_session_data *sd) {
/// Notification from the client, that it has finished map loading and is about to display player's character (CZ_NOTIFY_ACTORINIT).
/// 007d
void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) {
+ int i;
+
if(sd->bl.prev != NULL)
return;
@@ -9624,10 +9626,24 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) {
skill->usave_trigger(sd);
}
-// Trigger skill effects if you appear standing on them
+ // Trigger skill effects if you appear standing on them
if(!battle_config.pc_invincible_time)
skill->unit_move(&sd->bl,timer->gettick(),1);
+ // NPC Quest / Event Icon Check [Kisuka]
+#if PACKETVER >= 20090218
+ for(i = 0; i < map->list[sd->bl.m].qi_count; i++) {
+ struct questinfo *qi = &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->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);
+ }
+ }
+ }
+#endif
}