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/intif.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/intif.c')
-rw-r--r-- | src/map/intif.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/intif.c b/src/map/intif.c index 204fbe497..9643338fa 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -1354,6 +1354,18 @@ int intif_parse_questlog(int fd) for( i = 0; i < sd->num_quests; i++ ) { memcpy(&sd->quest_log[i], RFIFOP(fd, i*sizeof(struct quest)+8), sizeof(struct quest)); + + sd->quest_index[i] = quest_search_db(sd->quest_log[i].quest_id); + + if( sd->quest_index[i] < 0 ) + { + ShowError("intif_parse_questlog: quest %d not found in DB.\n",sd->quest_log[i].quest_id); + sd->avail_quests--; + sd->num_quests--; + i--; + continue; + } + if( sd->quest_log[i].state == Q_COMPLETE ) sd->avail_quests--; } |