--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-24 21:14:00 -06:00
10 changed files with 244 additions and 379 deletions

View File

@@ -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());