milbradt
New Member
- Joined
- Dec 25, 2011
- Messages
- 177
- Solutions
- 1
- Reaction score
- 4
Hello..
Why does not the FOR start?
Is this going to start only if the creature has registered ??
Why does not the FOR start?
Is this going to start only if the creature has registered ??
C++:
bool Game::playerRequestOutfit(uint32_t playerId)
{
Player* player = getPlayerByID(playerId);
if(!player || player->isRemoved())
return false;
if(player->hasCondition(CONDITION_EXHAUST, 4))
{
player->sendTextMessage(MSG_STATUS_SMALL, "You have to wait a while.");
return false;
}
if(Condition* conditionoutfit = Condition::createCondition(CONDITIONID_DEFAULT, CONDITION_EXHAUST, 300, 0, false, 4))
player->addCondition(conditionoutfit);
//player->sendOutfitWindow();
// custom
CreatureEventList events = player->getCreatureEvents(CREATURE_EVENT_REQUEST_OUTFIT_WINDOW);
for(CreatureEventList::iterator it = events.begin(); it != events.end(); ++it) //no start =\
{
(*it)->executeCustomRequestOutfitWindow(player);
player->sendTextMessage(MSG_STATUS_SMALL, "[FOR] start. ENTER PLEASE");
}
player->sendTextMessage(MSG_STATUS_SMALL, "[END] playerRequestOutfit.");
return true;
}
Last edited: