SKULL_YELLOW = 1
[B]SKULL_GREEN = [COLOR="red"]2[/COLOR]
SKULL_WHITE = [COLOR="red"]3[/COLOR]
SKULL_RED = [COLOR="red"]4[/COLOR][/B]
SKULL_BLACK = 5
if(Monster* summon = Monster::createMonster(it->name))
{
addSummon(summon);
[B][COLOR="red"]summon->setSkull(SKULL_NONE);[/COLOR][/B]
bool Monster::convinceCreature(Creature* creature)
{
Player* player = creature->getPlayer();
if(player && !player->hasFlag(PlayerFlag_CanConvinceAll) && !mType->isConvinceable)
return false;
Creature* oldMaster = NULL;
if(isSummon())
oldMaster = getMaster();
if(oldMaster)
{
if(oldMaster->getPlayer() || oldMaster == creature)
return false;
oldMaster->removeSummon(this);
}
setFollowCreature(NULL);
setAttackedCreature(NULL);
destroySummons();
creature->addSummon(this);
[B][COLOR="red"] setSkull(SKULL_NONE);
g_game.updateCreatureSkull(this);[/COLOR][/B]
ReturnValue Game::placeSummon(Creature* creature, const std::string& name)
{
Monster* monster = Monster::createMonster(name);
if(!monster)
return RET_NOTPOSSIBLE;
// Place the monster
creature->addSummon(monster);
[B][COLOR="red"]monster->setSkull(SKULL_NONE);[/COLOR][/B]