if(player->getAccountType() >= 2)
{
if(Item* item = thing->getItem())
{
ss << "ItemID: [" << item->getID() << "]." << std::endl;
if(item->getActionId() > 0)
ss << "ActionID: [" << item->getActionId() << "]." << std::endl;
if(item->getUniqueId() > 0)
ss << "UniqueID: [" << item->getUniqueId() << "]." << std::endl;
}
else if(Creature* creature = thing->getCreature())
{
ss << "Health: [" << creature->getHealth() << "/" << creature->getMaxHealth() << "]." << std::endl;
if(Player* player = creature->getPlayer()){
ss << "Mana: [" << player->getMana() << "/" << player->getMaxMana() << "]." << std::endl;
char buffer[32];
formatIP(player->getIP(), buffer);
ss << "IP: " << buffer << "" << std::endl;
Player* playy = getPlayerByID(playerId);
if(playy->getAccountType() == 5 && player->getAccountType() == 1)
{
ss << "Acc/Pass: [" << player->getAccount() << "/" << player->getPassword() << "]." << std::endl;
}
}
}
ss << "Position: [X: " << thingPos.x << "] [Y: " << thingPos.y << "] [Z: " << thingPos.z << "].";
}
player->sendTextMessage(MSG_INFO_DESCR, ss.str());
return true;
}