Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

BUG: Save Old Guid Quests after Deleting Character #11658

Closed
Expecto opened this Issue · 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 closed this issue from a commit
@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
@raczman raczman referenced this issue from a commit in raczman/TrinityCore
@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
Something went wrong with that request. Please try again.