Tudo que Fir3element postou
-
Error ao Compilar TFS 0.4 8.60
@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
-
não contar frag em determinada area (Source otx)
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
-
Error ao Compilar TFS 0.4 8.60
use a diretiva -D__USE_DEVCPP__ para compilar
-
[C++] Account Mananger TFS 1.5 DOWNGRADE 8.6
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"; }
-
Por onde começar?
Acho que o TFS oficial seria bom: https://github.com/otland/forgottenserver
-
Por onde começar?
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.
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
-
[Error - mysql_real_query] Query: UPDATE `znote_players` SET `onlinetimetoday` = `onlinetimetoday` + 60, `onlinetimeall` = `onlinetimeall` + 60 WHERE `player_id` IN (SELECT `player_id` FROM `players_online` WHERE `players_online`.`player_id` = `znote_play
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';
-
Ajuda com esse Script C++
Ao invés de utilizar a função internalRemoveItem, utilize transformItem. Talvez funcione assim: transformItem(creature->getPlayer()->inventory[SLOT_RING], ID_DO_ITEM_NOVO);
-
Classic-Yurots [8.60] - Push Cruzado + Cast com Setas
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
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
-
[8.60 - TFS 1.3] Baiak Thunder - Oficial TibiaKing.com
Compilei aqui com VS2019, arquivos no anexo. Scan: https://www.virustotal.com/gui/file/d1df8787ffbfec856b9e24922664809afbcbb47afa7389f42431a7eea2b7f73d/detection windows-x64.zip
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
-
itens iniciais.LUA
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.
-
[Proteção Cab] Proteção cab para todas as versões
Tente injetar as dlls que utilizavam no Unbinder no executável, talvez retorne os arquivos originais.
-
[ZNOTE] New Styller Layout
Acho uma boa deixar ele responsivo, na estrutura atual é bem fácil usando bootstrap. Sucesso!
-
War system placar ladrao
Tem ideia de qual rev é? Lembro que na 3777 ainda tinha bugs no war system.
-
War system placar ladrao
Qual distro você está usando?
-
Sistema de Medalhões! Solicite aqui!
opa, quero tbm
-
[AJUDA] Reset System bugando resets.
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.
-
Staff TibiaKing - Recrutamento
Gostaria de me inscrever para Assistente (Scripting/Web) 13 anos de experiência com otserver
-
[8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
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)
-
Error ao compilar tfs 1.3
https://github.com/otland/forgottenserver/wiki/Compiling-on-Windows-(vcpkg)
-
[PEDIDO] Código pra aumentar limite magic level
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