mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[10811] Use ObjectGuids in chat commands.
Still exist 15 GUID_LOPART uses in code.
This commit is contained in:
parent
c6d3c5e0d6
commit
b305f203b9
15 changed files with 151 additions and 146 deletions
|
|
@ -62,7 +62,7 @@ void WorldSession::HandleGMTicketGetTicketOpcode( WorldPacket & /*recv_data*/ )
|
|||
{
|
||||
SendQueryTimeResponse();
|
||||
|
||||
GMTicket* ticket = sTicketMgr.GetGMTicket(GetPlayer()->GetGUIDLow());
|
||||
GMTicket* ticket = sTicketMgr.GetGMTicket(GetPlayer()->GetObjectGuid());
|
||||
if(ticket)
|
||||
{
|
||||
if(ticket->HasResponse())
|
||||
|
|
@ -79,7 +79,7 @@ void WorldSession::HandleGMTicketUpdateTextOpcode( WorldPacket & recv_data )
|
|||
std::string ticketText;
|
||||
recv_data >> ticketText;
|
||||
|
||||
if(GMTicket* ticket = sTicketMgr.GetGMTicket(GetPlayer()->GetGUIDLow()))
|
||||
if(GMTicket* ticket = sTicketMgr.GetGMTicket(GetPlayer()->GetObjectGuid()))
|
||||
ticket->SetText(ticketText.c_str());
|
||||
else
|
||||
sLog.outError("Ticket update: Player %s (GUID: %u) doesn't have active ticket", GetPlayer()->GetName(), GetPlayer()->GetGUIDLow());
|
||||
|
|
@ -87,7 +87,7 @@ void WorldSession::HandleGMTicketUpdateTextOpcode( WorldPacket & recv_data )
|
|||
|
||||
void WorldSession::HandleGMTicketDeleteTicketOpcode( WorldPacket & /*recv_data*/ )
|
||||
{
|
||||
sTicketMgr.Delete(GetPlayer()->GetGUIDLow());
|
||||
sTicketMgr.Delete(GetPlayer()->GetObjectGuid());
|
||||
|
||||
WorldPacket data( SMSG_GMTICKET_DELETETICKET, 4 );
|
||||
data << uint32(9);
|
||||
|
|
@ -113,7 +113,7 @@ void WorldSession::HandleGMTicketCreateOpcode( WorldPacket & recv_data )
|
|||
|
||||
DEBUG_LOG("TicketCreate: map %u, x %f, y %f, z %f, text %s", map, x, y, z, ticketText.c_str());
|
||||
|
||||
if(sTicketMgr.GetGMTicket(GetPlayer()->GetGUIDLow()) && !isFollowup)
|
||||
if(sTicketMgr.GetGMTicket(GetPlayer()->GetObjectGuid()) && !isFollowup)
|
||||
{
|
||||
WorldPacket data( SMSG_GMTICKET_CREATE, 4 );
|
||||
data << uint32(1); // 1 - You already have GM ticket
|
||||
|
|
@ -122,9 +122,9 @@ void WorldSession::HandleGMTicketCreateOpcode( WorldPacket & recv_data )
|
|||
}
|
||||
|
||||
if(isFollowup)
|
||||
sTicketMgr.Delete(_player->GetGUIDLow());
|
||||
sTicketMgr.Delete(_player->GetObjectGuid());
|
||||
|
||||
sTicketMgr.Create(_player->GetGUIDLow(), ticketText.c_str());
|
||||
sTicketMgr.Create(_player->GetObjectGuid(), ticketText.c_str());
|
||||
|
||||
SendQueryTimeResponse();
|
||||
|
||||
|
|
@ -186,7 +186,7 @@ void WorldSession::HandleGMResponseResolveOpcode(WorldPacket & recv_data)
|
|||
// empty opcode
|
||||
DEBUG_LOG("WORLD: %s", LookupOpcodeName(recv_data.GetOpcode()));
|
||||
|
||||
sTicketMgr.Delete(GetPlayer()->GetGUIDLow());
|
||||
sTicketMgr.Delete(GetPlayer()->GetObjectGuid());
|
||||
|
||||
WorldPacket data(SMSG_GMRESPONSE_STATUS_UPDATE, 1);
|
||||
data << uint8(0); // ask to fill out gm survey = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue