mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7898] Improve client error output at different mail send errors, cleanup code.
This commit is contained in:
parent
83b2eb2bba
commit
d2e25491a2
9 changed files with 72 additions and 55 deletions
|
|
@ -2598,13 +2598,13 @@ void Player::RemoveMail(uint32 id)
|
|||
}
|
||||
}
|
||||
|
||||
void Player::SendMailResult(uint32 mailId, uint32 mailAction, uint32 mailError, uint32 equipError, uint32 item_guid, uint32 item_count)
|
||||
void Player::SendMailResult(uint32 mailId, MailResponseType mailAction, MailResponseResult mailError, uint32 equipError, uint32 item_guid, uint32 item_count)
|
||||
{
|
||||
WorldPacket data(SMSG_SEND_MAIL_RESULT, (4+4+4+(mailError == MAIL_ERR_BAG_FULL?4:(mailAction == MAIL_ITEM_TAKEN?4+4:0))));
|
||||
WorldPacket data(SMSG_SEND_MAIL_RESULT, (4+4+4+(mailError == MAIL_ERR_EQUIP_ERROR?4:(mailAction == MAIL_ITEM_TAKEN?4+4:0))));
|
||||
data << (uint32) mailId;
|
||||
data << (uint32) mailAction;
|
||||
data << (uint32) mailError;
|
||||
if ( mailError == MAIL_ERR_BAG_FULL )
|
||||
if ( mailError == MAIL_ERR_EQUIP_ERROR )
|
||||
data << (uint32) equipError;
|
||||
else if( mailAction == MAIL_ITEM_TAKEN )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue