Vocês já devem ter percebido que o Evolutions 0.72 existem alguns bugs. Como o bug de salvar bans ( Saving the server...
Error while saving bans [done]), e o deathlist (na hora que um player morre por um monstro aparece o erro no console do Otserv). E sem falar na falta de algumas funções, como command /send & /invisible & Trade Delay, entre outros.
Historico de Patchs:13/12
*Fixed save bans by Fernando Coutinho
*Fixed Death list by Fernando Coutinho
*Fixed /send by TKhan
SALVAR BANS: Fixed by Fernando Coutinho
Procure:
if(g_bans.saveBans(g_config.getString(ConfigManager::BAN_FILE))){std::cout << "::Error while saving bans" << std::endl;
}
Troque por:
if(!g_bans.saveBans(g_config.getString(ConfigManager::BAN_FILE))){std::cout << "::Error while saving bans" << std::endl;
}
DEATHLIST: Fixed by Fernando Coutinho
Procure:
<<","<< Database::escapeString((*it).killer) <<","<<
Troque por:
<<",'"<< Database::escapeString((*it).killer) <<"',"<<
COMMAND /SEND: Fixed by TKhan
Procure:
{"/kick",&Commands::kickPlayer},
Adicione isso embaixo:
{"/send",&Commands::teleportPlayerTo},
Procure:
bool kickPlayer(Creature* creature, const std::string& cmd, const std::string& param);
Adicione isso embaixo:
bool teleportPlayerTo(Creature* c, const std::string &cmd, const std::string ¶m);
No Final do Commands.cpp adicione:
bool Commands::teleportPlayerTo(Creature* c, const std::string &cmd, const std::string ¶m){
Position pos;
std::string name;
std::istringstream in(param.c_str());
std::getline(in, name, ',');
in >> pos.x >> pos.y >> pos.z;
Creature* creature = game->getCreatureByName(name);
Player* player = dynamic_cast<Player*>(creature);
if (player)
game->internalTeleport(player, pos);
return true;
}
Por motivos de falta de tempo não colocarei mais patchs. :confused:
~~ TKhan