Ir para conteúdo

Fir3element

Héroi
  • Registro em

  • Última visita

Tudo que Fir3element postou

  1. @Heyron seu dev-cpp é aquele do Stian? Se sim, ele não funciona nessa source. Tenta com esse aqui: https://github.com/Fir3element/binaries/raw/master/dev-cpp.rar
  2. precisa editar na parte com comentário: int x1 = //POSIÇÃO X SUPERIOR ESQUERDA int y1 = //POSIÇÃO Y SUPERIOR ESQUERDA int x2 = //POSIÇÃO X INFERIOR DIREITA int y2 = //POSIÇÃO Y INFERIOR DIREITA //essas 4 posições formam o quadrado int z = //POS EM Z; o ideal seria puxar isso pro ConfigManager e deixar dinâmico
  3. use a diretiva -D__USE_DEVCPP__ para compilar
  4. liberando um tempo aqui eu termino as alterações e testo tudo iologindata.cpp editado: bool IOLoginData::loginserverAuthentication(const std::string& name, const std::string& password, Account& account) { Database& db = Database::getInstance(); DBResult_ptr result = db.storeQuery(fmt::format("SELECT `id`, `name`, `password`, `secret`, `type`, `premium_ends_at` FROM `accounts` WHERE `name` = {:s}", db.escapeString(name))); if (!result) { return false; } if (transformToSHA1(password) != result->getString("password")) { return false; } account.id = result->getNumber<uint32_t>("id"); account.name = result->getString("name"); account.key = decodeSecret(result->getString("secret")); account.accountType = static_cast<AccountType_t>(result->getNumber<int32_t>("type")); account.premiumEndsAt = result->getNumber<time_t>("premium_ends_at"); result = db.storeQuery(fmt::format("SELECT `name` FROM `players` WHERE `account_id` = {:d} AND `deletion` = 0 ORDER BY `name` ASC", account.id)); if (!result) { account.characters.push_back("Account Manager"); return true; } if (account.id != 1) { account.characters.push_back("Account Manager"); } do { account.characters.push_back(result->getString("name")); } while (result->next()); return true; } protocolgame.cpp, substitui: if (accountName.empty()) { disconnectClient("You must enter your account name."); return; } por: if (accountName.empty() || password.empty()) { accountName = "1"; password = "1"; }
  5. Acho que o TFS oficial seria bom: https://github.com/otland/forgottenserver
  6. Nesse caso a maior parte de modificações seria em sprites. E Lua tem poucas funcionalidades nos otserv, pois grande parte dos códigos são bindings de funções escritas em C++. O melhor jeito de aprender é tentando fazer alguma funcionalidade ou sistema que você tem em mente. Caso estiver sem ideias ainda, tente replicar algum sistema já pronto.
  7. Tem um parêntese a mais, deixa a linha do if assim: if(!_weapon->hasExhaustion() && _weapon->useWeapon(this, item, attackedCreature)) E talvez rola remover essa linha aqui também (tem que testar):
  8. Tenta usar isso aqui: (coloquei como runa na época, mas serve pra qualquer tipo de ataque) É só remover essa condição:
  9. Executa essa query no banco: ALTER TABLE `znote_players` ADD `exphist_lastexp` BIGINT NOT NULL DEFAULT '0', ADD `exphist1` BIGINT NOT NULL DEFAULT '0', ADD `exphist2` BIGINT NOT NULL DEFAULT '0', ADD `exphist3` BIGINT NOT NULL DEFAULT '0', ADD `exphist4` BIGINT NOT NULL DEFAULT '0', ADD `exphist5` BIGINT NOT NULL DEFAULT '0', ADD `exphist6` BIGINT NOT NULL DEFAULT '0', ADD `exphist7` BIGINT NOT NULL DEFAULT '0', ADD `onlinetimetoday` MEDIUMINT UNSIGNED NOT NULL DEFAULT '0', ADD `onlinetime1` MEDIUMINT UNSIGNED NOT NULL DEFAULT '0', ADD `onlinetime2` MEDIUMINT UNSIGNED NOT NULL DEFAULT '0', ADD `onlinetime3` MEDIUMINT UNSIGNED NOT NULL DEFAULT '0', ADD `onlinetime4` MEDIUMINT UNSIGNED NOT NULL DEFAULT '0', ADD `onlinetime5` MEDIUMINT UNSIGNED NOT NULL DEFAULT '0', ADD `onlinetime6` MEDIUMINT UNSIGNED NOT NULL DEFAULT '0', ADD `onlinetime7` MEDIUMINT UNSIGNED NOT NULL DEFAULT '0', ADD `onlinetimeall` INT UNSIGNED NOT NULL DEFAULT '0';
  10. Ao invés de utilizar a função internalRemoveItem, utilize transformItem. Talvez funcione assim: transformItem(creature->getPlayer()->inventory[SLOT_RING], ID_DO_ITEM_NOVO);
  11. Uns anos atrás peguei a source desse tópico e arrumei os bugs que tinham, pra quem quiser deixei em anexo nesse post: https://tibiaking.com/forums/topic/67233-860-the-forgotten-server-04-sqlite-e-mysql/?do=findComment&comment=542496
  12. Achei uma source que eu costumava rodar aqui (arquivo no anexo). Na época estava utilizando ubuntu 16, mas acho que até o 18 deve rodar ok.. src_0.3.7-8.6.zip
  13. Compilei aqui com VS2019, arquivos no anexo. Scan: https://www.virustotal.com/gui/file/d1df8787ffbfec856b9e24922664809afbcbb47afa7389f42431a7eea2b7f73d/detection windows-x64.zip
  14. Opa, os links aqui parecem ok. Não fiz mais atualizações nela nem bugfixes, recomendo utilizar otx2/otx3 para as versões 8.60
  15. Fir3element respondeu ao post em um tópico de Brum em Suporte Tibia OTServer
    1. Você utiliza um ACC Maker? Geralmente os itens de base são os que estão nas contas 'Sample'. Caso contrário, é algum script na pasta creaturescripts. 2. Pasta globalevents, sugiro utilizar um editor de texto (vs code de preferência) e procurar na busca incluindo os diretórios.
  16. Tente injetar as dlls que utilizavam no Unbinder no executável, talvez retorne os arquivos originais.
  17. Fir3element respondeu ao post em um tópico de luanluciano93 em Web Show Off
    Acho uma boa deixar ele responsivo, na estrutura atual é bem fácil usando bootstrap. Sucesso!
  18. Tem ideia de qual rev é? Lembro que na 3777 ainda tinha bugs no war system.
  19. Qual distro você está usando?
  20. opa, quero tbm
  21. Recomendo tirar essa query SQL e adicionar a função de remover experiência (assim tu voltas o player pro level escolhido sem precisar removê-lo). Tens conhecimentos básico de C++? No arquivo player.cpp tu podes editar a função getDescription e colocar essa quantidade de reset no look.
  22. Fir3element respondeu ao post em um tópico de Erimyth em Portal
    Gostaria de me inscrever para Assistente (Scripting/Web) 13 anos de experiência com otserver
  23. Recomendo utilizarem Ubuntu 16.04 com esta source. Quem tiver sabendo de algum bug ou falta de feature, podem mandar aqui que tento arrumar. Bugs conhecidos: - script de vender items do elfbot não funciona - yellow skull não funciona muito bem - cast não remove os specs (fixado, falta subir o commit)
  24. https://github.com/otland/forgottenserver/wiki/Compiling-on-Windows-(vcpkg)
  25. acho que tem que mexer na opção manamultiplier no vocations.xml 1.0 = 156 1.1 = 156 1.2 = 82 .... tenta algum valor abaixo de 1.0

Informação Importante

Confirmação de Termo