MSG_QUERY_NEXT_MAIL_TIME fixing my fault
This commit is contained in:
parent
769a7f9c9d
commit
945ef1e798
@ -714,55 +714,7 @@ void WorldSession::HandleMailCreateTextItem(WorldPacket& recv_data)
|
||||
void WorldSession::HandleQueryNextMailTime(WorldPacket& /**recv_data*/)
|
||||
{
|
||||
WorldPacket data(MSG_QUERY_NEXT_MAIL_TIME, 4);
|
||||
|
||||
data << float(0);
|
||||
|
||||
//if (_player->unReadMails > 0)
|
||||
//{
|
||||
// data << uint32(0); // float
|
||||
// data << uint32(0); // count
|
||||
|
||||
// uint32 count = 0;
|
||||
// time_t now = time(NULL);
|
||||
// for (PlayerMails::iterator itr = _player->GetMailBegin(); itr != _player->GetMailEnd(); ++itr)
|
||||
// {
|
||||
// Mail* m = (*itr);
|
||||
// // must be not checked yet
|
||||
// if (m->checked & MAIL_CHECK_MASK_READ)
|
||||
// { continue; }
|
||||
|
||||
// // and already delivered
|
||||
// if (now < m->deliver_time)
|
||||
// { continue; }
|
||||
|
||||
// data << ObjectGuid(HIGHGUID_PLAYER, m->sender); // sender guid
|
||||
|
||||
// switch (m->messageType)
|
||||
// {
|
||||
// case MAIL_AUCTION:
|
||||
// data << uint32(m->sender); // auction house id
|
||||
// data << uint32(MAIL_AUCTION); // message type
|
||||
// break;
|
||||
// default:
|
||||
// data << uint32(0);
|
||||
// data << uint32(0);
|
||||
// break;
|
||||
// }
|
||||
|
||||
// data << uint32(m->stationery);
|
||||
// data << uint32(0xC6000000); // float unk, time or something
|
||||
|
||||
// ++count;
|
||||
// if (count == 2) // do not display more than 2 mails
|
||||
// { break; }
|
||||
// }
|
||||
// data.put<uint32>(4, count);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// data << uint32(0xC7A8C000);
|
||||
// data << uint32(0x00000000);
|
||||
//}
|
||||
data << (_player->unReadMails > 0 ? float(0) : float(-1));
|
||||
SendPacket(&data);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user