Ir para conteúdo

Fir3element

Héroi
  • Registro em

  • Última visita

Tudo que Fir3element postou

  1. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    verifica seus creaturescripts
  2. chat.cpp, remova esse code: if(text.substr(1) == "disband") { if(player->getGuildLevel() == GUILDLEVEL_LEADER) { IOGuild::getInstance()->disbandGuild(player->getGuildId()); channel->talk(player, SPEAK_CHANNEL_W, "The guild has been disbanded."); } else player->sendCancel("You are not the leader of your guild."); } else
  3. troca a pasta npc/lib, database, config.lua, .exe são os principais, o resto tu vê quando abrir o ot
  4. não tem o que trocar se as portas tiver liberadas, é automático (só acessar) geralmente alguns modem não te deixa acessa , mas as outras pessoas vão conseguir
  5. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    C:\xampp\apache\conf\httpd.conf procure por 8080 e troca para 80 e sobre o no-ip, não tem nada pra fazer só criar o ip no site deles e acessar (se as portas tiver liberadas, claro)
  6. C:\Users\nome\otclient procure por arquivos com a extensão .otmm
  7. Fir3element postou uma resposta no tópico em Suporte & Pedidos
    aqui é área para show offs, não vai encontrar downloads
  8. O que a modificação faz? Ao fechar no X, o servidor é salvo. OBS.: funciona apenas nos servidores 1.x No arquivo game.cpp, procure por: void Game::shutdown() { std::cout << "Shutting down..." << std::flush; g_scheduler.shutdown(); g_databaseTasks.shutdown(); g_dispatcher.shutdown(); map.spawns.clear(); raids.clear(); cleanup(); if (serviceManager) { serviceManager->stop(); } ConnectionManager::getInstance().closeAll(); std::cout << " done!" << std::endl; } Substitua por: void Game::shutdown() { std::cout << ">> Shutting down...\n> " << std::flush; saveGameState(); g_scheduler.shutdown(); g_databaseTasks.shutdown(); g_dispatcher.shutdown(); map.spawns.clear(); raids.clear(); cleanup(); if (serviceManager) { serviceManager->stop(); } ConnectionManager::getInstance().closeAll(); std::cout << "> Done!" << std::endl; }
  9. não precisa de executar isso tudo, apenas apt-get install liblua5.1-0-dev rep+
  10. posta o login.lua aqui
  11. https://github.com/DSpeichert/tfs/archive/78e5ed8116f0ef1dff2819d18061104decd19c4f.zip
  12. n testei function onLogin(cid) local storage = 4597 local vocations = { [5] = 9, [6] = 10, [7] = 11, [8] = 12 } if isVip(cid) and getPlayerStorageValue(cid, storage) == -1 then doPlayerSetVocation(cid, vocations[getPlayerVocation(cid)]) setPlayerStorageValue(cid, storage, 1) elseif not isVip(cid) and getPlayerStorageValue(cid, storage) == 1 then setPlayerStorageValue(cid, storage, -1) for old, new in pairs(vocations) do if getPlayerVocation(cid) == new then doPlayerSetVocation(cid, old) break end end end return true end
  13. posta print do debug
  14. https://github.com/DSpeichert/tfs/commit/2a54ce0695f1c4b0ed05643873958ed0a0a84810 https://github.com/DSpeichert/tfs/commit/4c8dc2990fc705a5f348b3693fd2298b7a6473e0
  15. game.cpp, função combatChangeHealth
  16. Colocou .spr tbm?
  17. se o q o cara disse não funcionar, tenta esse aqui: apt-get install liblua5.1-0-dev
  18. Tem que compilar com o visual studio pra fucionar 64bit fix para o disband: https://github.com/fir3element/3884/commit/34a1746f64568471504ec0ee5e1adf566e578961
  19. c++ is better and easier s << " (Level " << level << ") [Reset " << resets << "]";
  20. Fir3element postou uma resposta no tópico em Códigos C++
    procura por esse ent: m_confBool[ADDONS_PREMIUM] = getGlobalBool("addonsOnlyPremium", true);
  21. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    8.54: http://www.mediafire.com/download/494ymeed2mhpdhw/forgottenserver-0.3.r5822.tar.gz 8.60: https://github.com/fir3element/forgottenserver036/archive/master.zip
  22. provavelmente esses programas não vão funcionar
  23. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    configura o arquivo do site primeiro... troca "177.132.42.181" para "localhost"
  24. isso ai n é o erro, apenas sua db copia tudo e cola aq
  25. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkState, talkUser = {}, NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, "promot") then npcHandler:say("Do you want to be promoted in your vocation for 20000 gold?", cid) talkState[talkUser] = 1 elseif msgcontains(msg, "yes") and talkState[talkUser] == 1 then if(getPlayerStorageValue(cid, 30018) == 1) then npcHandler:say('You are already promoted.', cid) elseif(getPlayerLevel(cid) < 20) then npcHandler:say('You need to be at least level 20 in order to be promoted.', cid) elseif getPlayerMoney(cid) < 20000 then npcHandler:say('You do not have enough money.', cid) elseif getConfigInfo("freePremium") == "yes" or isPremium(cid) == TRUE then npcHandler:say("Congratulations! You are now promoted. You have learned new spells.", cid) local promotedVoc = getPromotedVocation(getPlayerVocation(cid)) doPlayerSetVocation(cid, promotedVoc) doPlayerRemoveMoney(cid, 20000) else npcHandler:say("You need a premium account in order to promote.", cid) end talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())

Informação Importante

Confirmação de Termo