mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Attempt to fix quests. Some other fixes.
This commit is contained in:
parent
2d61cc1e76
commit
908f41b031
13 changed files with 158 additions and 138 deletions
|
|
@ -345,12 +345,12 @@ void WorldSession::LogoutPlayer(bool Save)
|
|||
if(Save)
|
||||
{
|
||||
uint32 eslot;
|
||||
for(int j = BUYBACK_SLOT_START; j < BUYBACK_SLOT_END; j++)
|
||||
for(int j = BUYBACK_SLOT_START; j < BUYBACK_SLOT_END; ++j)
|
||||
{
|
||||
eslot = j - BUYBACK_SLOT_START;
|
||||
_player->SetUInt64Value(PLAYER_FIELD_VENDORBUYBACK_SLOT_1+eslot*2,0);
|
||||
_player->SetUInt32Value(PLAYER_FIELD_BUYBACK_PRICE_1+eslot,0);
|
||||
_player->SetUInt32Value(PLAYER_FIELD_BUYBACK_TIMESTAMP_1+eslot,0);
|
||||
_player->SetUInt64Value(PLAYER_FIELD_VENDORBUYBACK_SLOT_1 + (eslot * 2), 0);
|
||||
_player->SetUInt32Value(PLAYER_FIELD_BUYBACK_PRICE_1 + eslot, 0);
|
||||
_player->SetUInt32Value(PLAYER_FIELD_BUYBACK_TIMESTAMP_1 + eslot, 0);
|
||||
}
|
||||
_player->SaveToDB();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue