BUG: Save Old Guid Quests after Deleting Character #11658

Closed
Expecto opened this Issue Mar 1, 2014 · 0 comments

1 participant

@Expecto

Good Day!

After removal of the character, in the tables remain old characters Guids
character_queststatus_seasonal
character_queststatus_weekly
character_queststatus_mounthly

if you create a a new character to him are given by old guids

Rev edcd757

Sorry, I bad write on English.

possible fix for void Player::DeleteFromDB

stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_QUEST_STATUS_WEEKLY_CHAR);
stmt->setUInt32(0, guid);
trans->Append(stmt);

stmt = CharacterDatabase.GetPreparedStatemen(CHAR_DEL_QUEST_STATUS_MONTHLY_CHAR);
stmt->setUInt32(0, guid);
trans->Append(stmt);

stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_QUEST_STATUS_SEASONAL_CHAR);
stmt->setUInt32(0, guid);
trans->Append(stmt);

@joschiwald joschiwald added a commit that closed this issue Mar 1, 2014
@joschiwald joschiwald Core/Player: delete queststatus (weekly/monthly/seasonal) on deleting…
… character thx @Expecto

- also rename some prepared statements

Closes #11658
3a40d8a
@joschiwald joschiwald closed this in 3a40d8a Mar 1, 2014
@raczman raczman pushed a commit to raczman/TrinityCore that referenced this issue Apr 20, 2014
@joschiwald joschiwald Core/Player: delete queststatus (weekly/monthly/seasonal) on deleting…
… character thx @Expecto

- also rename some prepared statements

Closes #11658
a4325e1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment