mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10635] Convert many opcode handlers to ObjectGuid use.
Also re-enabled anticheating check for bank window open base at .bank command access rights.
This commit is contained in:
parent
0901a4c2ac
commit
851e15c70a
26 changed files with 322 additions and 326 deletions
|
|
@ -587,10 +587,10 @@ void WorldSession::HandleDelIgnoreOpcode( WorldPacket & recv_data )
|
|||
void WorldSession::HandleSetContactNotesOpcode( WorldPacket & recv_data )
|
||||
{
|
||||
DEBUG_LOG("CMSG_SET_CONTACT_NOTES");
|
||||
uint64 guid;
|
||||
ObjectGuid guid;
|
||||
std::string note;
|
||||
recv_data >> guid >> note;
|
||||
_player->GetSocial()->SetFriendNote(GUID_LOPART(guid), note);
|
||||
_player->GetSocial()->SetFriendNote(guid.GetCounter(), note);
|
||||
}
|
||||
|
||||
void WorldSession::HandleBugOpcode( WorldPacket & recv_data )
|
||||
|
|
@ -619,7 +619,7 @@ void WorldSession::HandleReclaimCorpseOpcode(WorldPacket &recv_data)
|
|||
{
|
||||
DETAIL_LOG("WORLD: Received CMSG_RECLAIM_CORPSE");
|
||||
|
||||
uint64 guid;
|
||||
ObjectGuid guid;
|
||||
recv_data >> guid;
|
||||
|
||||
if (GetPlayer()->isAlive())
|
||||
|
|
@ -656,7 +656,7 @@ void WorldSession::HandleResurrectResponseOpcode(WorldPacket & recv_data)
|
|||
{
|
||||
DETAIL_LOG("WORLD: Received CMSG_RESURRECT_RESPONSE");
|
||||
|
||||
uint64 guid;
|
||||
ObjectGuid guid;
|
||||
uint8 status;
|
||||
recv_data >> guid;
|
||||
recv_data >> status;
|
||||
|
|
@ -965,7 +965,7 @@ void WorldSession::HandleMoveTimeSkippedOpcode( WorldPacket & recv_data )
|
|||
recv_data >> Unused<uint32>();
|
||||
|
||||
/*
|
||||
uint64 guid;
|
||||
ObjectGuid guid;
|
||||
uint32 time_skipped;
|
||||
recv_data >> guid;
|
||||
recv_data >> time_skipped;
|
||||
|
|
@ -992,7 +992,7 @@ void WorldSession::HandleMoveUnRootAck(WorldPacket& recv_data)
|
|||
// no used
|
||||
recv_data.rpos(recv_data.wpos()); // prevent warnings spam
|
||||
/*
|
||||
uint64 guid;
|
||||
ObjectGuid guid;
|
||||
recv_data >> guid;
|
||||
|
||||
// now can skip not our packet
|
||||
|
|
@ -1016,11 +1016,11 @@ void WorldSession::HandleMoveRootAck(WorldPacket& recv_data)
|
|||
// no used
|
||||
recv_data.rpos(recv_data.wpos()); // prevent warnings spam
|
||||
/*
|
||||
uint64 guid;
|
||||
ObjectGuid guid;
|
||||
recv_data >> guid;
|
||||
|
||||
// now can skip not our packet
|
||||
if(_player->GetGUID() != guid)
|
||||
if(_player->GetObjectGuid() != guid)
|
||||
{
|
||||
recv_data.rpos(recv_data.wpos()); // prevent warnings spam
|
||||
return;
|
||||
|
|
@ -1106,7 +1106,7 @@ void WorldSession::HandleInspectOpcode(WorldPacket& recv_data)
|
|||
|
||||
void WorldSession::HandleInspectHonorStatsOpcode(WorldPacket& recv_data)
|
||||
{
|
||||
uint64 guid;
|
||||
ObjectGuid guid;
|
||||
recv_data >> guid;
|
||||
|
||||
Player *player = sObjectMgr.GetPlayer(guid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue