Witam, chcia?bym przerobi? czary zamiast wy?wietlanie na ???to to na pomara?czowo na dodatek bez ?adnej chmurki przy exh.
Kod:
bool Game::playerSaySpell(Player* player, SpeakClasses type, const std::string& text)
{
OTSYS_THREAD_LOCK_CLASS lockClass(gameLock, "Game::playerSaySpell()");
if(player->isRemoved())
return false;
TalkActionResult_t result;
result = g_talkactions->playerSaySpell(player, type, text);
if(result == TALKACTION_BREAK){
return true;
}
result = g_spells->playerSaySpell(player, type, text);
uint32_t muteTime;
if(player->isMuted(muteTime)){
std::stringstream ss;
ss << "You are still muted for " << muteTime << " seconds.";
player->sendTextMessage(MSG_STATUS_SMALL, ss.str());
result = TALKACTION_FAILED;
}
if(result == TALKACTION_BREAK){
return internalCreatureSay(player, SPEAK_SAY, text);
}
else if(result == TALKACTION_FAILED){
return true;
}
return false;
}
//--
bool Game::canThrowObjectTo(const Position& fromPos, const Position& toPos)
{
return map->canThrowObjectTo(fromPos, toPos);
}
bool Game::getPathTo(const Creature* creature, Position toPosition, std::list<Direction>& listDir)
{
return map->getPathTo(creature, toPosition, listDir);
}