Skip to content

Instantly share code, notes, and snippets.

@FALL1N1
Created April 9, 2015 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FALL1N1/81ad8f74d0c29bd4bb32 to your computer and use it in GitHub Desktop.
Save FALL1N1/81ad8f74d0c29bd4bb32 to your computer and use it in GitHub Desktop.
GmTicket::GmTicket(Player* player, WorldPacket& recvData) : _createTime(time(NULL)), _lastModifiedTime(time(NULL)), _closedBy(0), _assignedTo(0), _completed(false), _escalatedStatus(TICKET_UNASSIGNED), _haveTicket(false)
{
_id = sTicketMgr->GenerateTicketId();
_playerName = player->GetName();
_playerGuid = player->GetGUID();
uint32 mapId, unk2;
uint8 unk1, t1, t2;
recvData >> mapId;
_mapId = mapId;
recvData >> _posX;
recvData >> _posY;
recvData >> _posZ;
recvData >> unk2;
recvData >> unk1;
recvData >> t1;
recvData >> t2;
recvData >> _message;
recvData.rfinish();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment