Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- SpectatorVec list;
- SpectatorVec::iterator it;
- getSpectators(list, player->getPosition());
- if(player->hasCondition(CONDITION_EXHAUST, 2))
- {
- player->sendTextMessage(MSG_STATUS_SMALL, "You have to wait a while.");
- return false;
- }
- if(Condition* conditionnpc = Condition::createCondition(CONDITIONID_DEFAULT, CONDITION_EXHAUST, 300, 0, false, 2))
- player->addCondition(conditionnpc);
- //send to npcs only
- Npc* tmpNpc;
- for(it = list.begin(); it != list.end(); ++it)
- {
- if((tmpNpc = (*it)->getNpc()))
- (*it)->onCreatureSay(player, MSG_NPC_TO, text);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement