Postado Junho 22, 2015 10 anos Tópico resolvido? Se sim, favor selecionar meu comentário lá em cima como melhor resposta.
Postado Junho 22, 2015 10 anos Autor Ainda n estou vendo com um amigo, ele disse que deu um erro, vou ver se ainda é no player.cpp Ei man funcionou! mas agora esta dando um erro em talkactions! olha ai a imagem agora minha source esta com outro erro: bool TalkActions::onPlayerSay(Creature* creature, uint16_t channelId, const std::string& words, bool ignoreAccess) { std::string cmdstring[TALKFILTER_LAST] = words, paramstring[TALKFILTER_LAST] = ""; size_t loc = words.find('"', 0); if(loc != std::string::npos && loc >= 0) { cmdstring[TALKFILTER_QUOTATION] = std::string(words, 0, loc); paramstring[TALKFILTER_QUOTATION] = std::string(words, (loc + 1), (words.size() - (loc - 1))); trimString(cmdstring[TALKFILTER_QUOTATION]); } loc = words.find(" ", 0); if(loc != std::string::npos && loc >= 0) { cmdstring[TALKFILTER_WORD] = std::string(words, 0, loc); paramstring[TALKFILTER_WORD] = std::string(words, (loc + 1), (words.size() - (loc - 1))); size_t sloc = words.find(" ", ++loc); if(sloc != std::string::npos && sloc >= 0) { cmdstring[TALKFILTER_WORD_SPACED] = std::string(words, 0, sloc); paramstring[TALKFILTER_WORD_SPACED] = std::string(words, (sloc + 1), (words.size() - (sloc - 1))); } } TalkAction* talkAction = NULL; for(TalkActionsMap::iterator it = talksMap.begin(); it != talksMap.end(); ++it) { if(it->first == cmdstring[it->second->getFilter()] || (!it->second->isSensitive() && !strcasecmp(it->first.c_str(), cmdstring[it->second->getFilter()].c_str()))) { talkAction = it->second; break; } } if(!talkAction) { for(TalkActionsMap::iterator it = talksMap.begin(); it != talksMap.end(); ++it) { if(it->first == "illegalWords") { talkAction = it->second; break; } } if(talkAction && talkAction->isScripted()) return talkAction->executeSay(creature, words, "", channelId); return false; } else if(talkAction->getChannel() != -1 && talkAction->getChannel() != channelId) return false; Player* player = creature->getPlayer(); StringVec exceptions = talkAction->getExceptions(); if(player && ((!ignoreAccess && std::find(exceptions.begin(), exceptions.end(), asLowerCaseString( player->getName())) == exceptions.end() && talkAction->getAccess() > player->getAccess()) || player->isAccountManager())) { if(player->hasCustomFlag(PlayerCustomFlag_GamemasterPrivileges)) { player->sendTextMessage(MSG_STATUS_SMALL, "You cannot execute this talkaction."); return true; } return false; } if(talkAction->isLogged()) { if(player) player->sendTextMessage(MSG_STATUS_CONSOLE_RED, words.c_str()); Logger::getInstance()->eFile("talkactions/" + creature->getName() + ".log", words, true); } if(talkAction->isScripted()) return talkAction->executeSay(creature, cmdstring[talkAction->getFilter()], paramstring[talkAction->getFilter()], channelId); if(TalkFunction* function = talkAction->getFunction()) return function(creature, cmdstring[talkAction->getFilter()], paramstring[talkAction->getFilter()]); return false; Pokémon Dust Evolution É aonde começa sua nova aventura!! Facebook Verifique Atualizações
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.