diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-09-04 11:14:27 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-09-04 11:14:27 +0000 |
commit | 9d9b8bcd463e8337d5f3e5b41658eee10e20c17c (patch) | |
tree | 5b2f29658eb57408d6e50dfb65cbcc1626ff3595 /src/map/clif.c | |
parent | 46311a784a46d1f1afb3173e73aff722f2208958 (diff) | |
download | hercules-9d9b8bcd463e8337d5f3e5b41658eee10e20c17c.tar.gz hercules-9d9b8bcd463e8337d5f3e5b41658eee10e20c17c.tar.bz2 hercules-9d9b8bcd463e8337d5f3e5b41658eee10e20c17c.tar.xz hercules-9d9b8bcd463e8337d5f3e5b41658eee10e20c17c.zip |
* QuestLog Fix.
- mob id no longer stores in sql.
- counts won't increase if you have killed sufficient mobs.
* Fixed Merchant's medalion wrong aspd bonus (bugreport:3554)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14036 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 06a51354f..515d7642a 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -12626,12 +12626,12 @@ void clif_send_questlog_info(struct map_session_data * sd) { WFIFOL(fd, i*104+8) = sd->quest_log[i].quest_id; WFIFOL(fd, i*104+16) = sd->quest_log[i].time; - WFIFOW(fd, i*104+20) = sd->quest_log[i].num_objectives; + WFIFOW(fd, i*104+20) = quest_db[sd->quest_index[i]].num_objectives; - for( j = 0 ; j < sd->quest_log[i].num_objectives; j++ ) + for( j = 0 ; j < quest_db[sd->quest_index[i]].num_objectives; j++ ) { WFIFOW(fd, i*104+26+j*30) = sd->quest_log[i].count[j]; - mob = mob_db(sd->quest_log[i].mob[j]); + mob = mob_db(quest_db[sd->quest_index[i]].mob[j]); memcpy(WFIFOP(fd, i*104+28+j*30), mob?mob->jname:"NULL", NAME_LENGTH); } } @@ -12641,7 +12641,7 @@ void clif_send_questlog_info(struct map_session_data * sd) //Send info when objective info needs an update //* 02B3 <quest_id>.L <state>.B <ignored>.L <time>.L <num mobs>.W {<ignored>.L <mob count>.W <Mob Name>.24B}.30B[3] -void clif_send_quest_info(struct map_session_data * sd, struct quest * qd) +void clif_send_quest_info(struct map_session_data * sd, struct quest * qd, int index) { int fd = sd->fd; int i; @@ -12653,12 +12653,12 @@ void clif_send_quest_info(struct map_session_data * sd, struct quest * qd) WFIFOL(fd, 2) = qd->quest_id; WFIFOB(fd, 6) = qd->state; WFIFOL(fd, 11) = qd->time; - WFIFOW(fd, 15) = qd->num_objectives; + WFIFOW(fd, 15) = quest_db[index].num_objectives; - for( i = 0; i < qd->num_objectives; i++ ) + for( i = 0; i < quest_db[index].num_objectives; i++ ) { WFIFOW(fd, i*30+21) = qd->count[i]; - mob = mob_db(qd->mob[i]); + mob = mob_db(quest_db[index].mob[i]); memcpy(WFIFOP(fd, i*30+23), mob?mob->jname:"NULL", NAME_LENGTH); } |