-
-
Fir3element alterou sua foto pessoal
-
-
BonasxD reagiu a uma resposta no tópico: [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
-
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
-
Tacabala22 começou a seguir Fir3element
-
-
[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';
-
-
-
Fir3element reagiu a uma resposta no tópico: [Repositório de Scripts / CodeReview] Vamos Desenvolver Juntos?
-
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
-
premii começou a seguir Fir3element
-
-
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
- [8.60 - TFS 1.3] Baiak Thunder - Oficial TibiaKing.com
- [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.