浏览代码

Corrected two mistakes when I was trying to do some tricks...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13974 54d463be-8e91-2dee-dedb-b68131a5f0ec
Inkfish 16 年之前
父节点
当前提交
76f7ee022d
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 3 3
      src/map/mob.c
  2. 2 2
      src/map/quest.c

+ 3 - 3
src/map/mob.c

@@ -1992,10 +1992,10 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
 				clif_mission_info(sd, temp, 0);
 			}
 			pc_setglobalreg(sd,"TK_MISSION_COUNT", sd->mission_count);
-
-			if( sd->avail_quests )
-				quest_update_objective(sd, md->class_);
 		}
+		//Move to status.c, and send a delete quest packet and then an add quest packet can refresh the kill counts. Just a trick. :P[Inkfish]
+		if( sd->avail_quests )
+			quest_update_objective(sd, md->class_);
 	}
 
 	// filter out entries not eligible for exp distribution

+ 2 - 2
src/map/quest.c

@@ -204,8 +204,8 @@ void quest_update_objective(TBL_PC * sd, int mob)
 				sd->quest_log[i].count[j]++;
 
 				// Should figure out the real packet.
-				clif_send_quest_delete(sd, sd->quest_log[i].quest_id);
-				clif_send_quest_info(sd, &sd->quest_log[i]);
+				//clif_send_quest_delete(sd, sd->quest_log[i].quest_id);
+				//clif_send_quest_info(sd, &sd->quest_log[i]);
 				//break;
 			}
 	}