From d2b18c292a3a59f785a1eb27208f7379065f6317 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Sat, 14 Aug 2010 16:06:23 +0000 Subject: * Quest log kill count now updated properly. (Added from topic 253813) * More battleground editing, and some bug fixes. - * ALL BATTLEGROUNDS ARE NOW ACTIVE BY DEFAULT. PLEASE CONTINUE TESTING * - Rewrote the Badge Exchange NPC in bg_common.txt, is official now. - Other changes to the bg_common folder, including disabled GM NPC. - Completely rewrote Flavius for the most part, from ground up. - Moved old Flavius battlegrounds to /custom/battleground folder. - Restored original bg_common, and KVM to /custom/battleground - Fixed wall bugs in Tierra Gorge, and added an oninit to the timers. - Other minor tweaks to both Tierra Gorge and KVM scripts. - Fixed the pseudo-cooldown on KVM not working properly, I hope. - Added global time2str function which will be used later in Endless tower. * Applied Epoque's mapflag clean up, which removes flags from scripts. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14374 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 45b8945c6..fd2f61522 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -13116,28 +13116,30 @@ void clif_quest_delete(struct map_session_data * sd, int quest_id) WFIFOSET(fd, packet_len(0x02B4)); } -//* 02b5 .w .w { .d .d .w }.mob_num +//* 02b5 .w .w { .d .d .w .w }.mob_num void clif_quest_update_objective(struct map_session_data * sd, struct quest * qd, int index) { - int fd = sd->fd; + int fd = sd->fd; int i; - int len = quest_db[index].num_objectives*10+6; + int len = quest_db[index].num_objectives*12+6; WFIFOHEAD(fd, len); - WFIFOW(fd, 0) = 0x02B5; - WFIFOW(fd, 2) = len; - WFIFOW(fd, 4) = quest_db[index].num_objectives; + WFIFOW(fd, 0) = 0x02B5; + WFIFOW(fd, 2) = len; + WFIFOW(fd, 4) = quest_db[index].num_objectives; for( i = 0; i < quest_db[index].num_objectives; i++ ) - { - WFIFOL(fd, i*10+6) = qd->quest_id; - WFIFOL(fd, i*10+10) = quest_db[index].mob[i]; - WFIFOW(fd, i*10+14) = qd->count[i]; - } + { + WFIFOL(fd, i*12+6) = qd->quest_id; + WFIFOL(fd, i*12+10) = quest_db[index].mob[i]; + WFIFOW(fd, i*12+14) = quest_db[index].count[i]; + WFIFOW(fd, i*12+16) = qd->count[i]; + } WFIFOSET(fd, len); } + //* 02B6 .L .B void clif_parse_questStateAck(int fd, struct map_session_data * sd) { -- cgit v1.2.3-70-g09d2