mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
*Merge.
--HG-- branch : trunk
This commit is contained in:
@@ -195,13 +195,21 @@ bool ChatHandler::HandleSendOpcodeCommand(const char* /*args*/)
|
||||
data.append(unit->GetPackGUID());
|
||||
}
|
||||
else if(type == "myguid")
|
||||
{
|
||||
data.append(player->GetPackGUID());
|
||||
}
|
||||
else if(type == "pos")
|
||||
{
|
||||
data << unit->GetPositionX();
|
||||
data << unit->GetPositionY();
|
||||
data << unit->GetPositionZ();
|
||||
}
|
||||
else if(type == "mypos")
|
||||
{
|
||||
data << player->GetPositionX();
|
||||
data << player->GetPositionY();
|
||||
data << player->GetPositionZ();
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog.outDebug("Sending opcode: unknown type '%s'", type.c_str());
|
||||
|
||||
Reference in New Issue
Block a user