Edwin2705
Nothing :)
How to make this function to set looktype for other players, like this:
??????
Please help me!
Code:
/newtype PLAYERNAME, OUTFITNUMBER
Code:
bool Commands::newType(Creature* creature, const std::string& cmd, const std::string& param)
{
Player* player = creature->getPlayer();
int32_t lookType = atoi(param.c_str());
if(player)
{
if(lookType < 0 || lookType == 1 || lookType == 135 || lookType > 160 && lookType < 192 || lookType > 282)
player->sendTextMessage(MSG_STATUS_SMALL, "This looktype does not exist.");
else
{
g_game.internalCreatureChangeOutfit(creature, (const Outfit_t&)lookType);
return true;
}
}
return false;
}
Please help me!