Ir para conteúdo

Fir3element

Héroi
  • Registro em

  • Última visita

Tudo que Fir3element postou

  1. Executa isso no sql: ALTER TABLE `players` ADD `cast` TINYINT NOT NULL DEFAULT '0', ADD `castViewers` INT( 11 ) NOT NULL DEFAULT '0', ADD `castDescription` VARCHAR( 255 ) NOT NULL
  2. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → Geral" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  3. Ninguém encontrou pois o problema não existe, pelo menos não no tfs oficial. Deve ser algum bug nesses datapacks com mapa global...
  4. war system com escudos auto-stack op codes arrumei alguns bugs desconhecidos compilando em todos os linux e outras coisas q já nem lembro mais aheuhae
  5. Tenta com essa source: https://github.com/fir3element/forgottenserver036
  6. Qual o tamanho do mapa (MB) e quanto de memória RAM você tem?
  7. https://github.com/otland/forgottenserver/archive/master.zip
  8. É um script bem simples, mas talvez ajude alguém. Testei no TFS 1.1! Imagem Script 1. Em creaturescripts/scripts crie um arquivo chamado fly.lua e adicione isso nele: function onModalWindow(player, modalWindowId, buttonId, choiceId) if(modalWindowId ~= 4597 or buttonId == 2) then return false end if(not getTileInfo(player:getPosition()).protection) then player:sendTextMessage(MESSAGE_STATUS_SMALL, "You can only fly in protection zone.") player:getPosition():sendMagicEffect(CONST_ME_POFF) return false end local positions = { [1] = {x = 95, y = 117, z = 7}, -- Trekolt [2] = {x = 159, y = 387, z = 6} -- Rhyves } player:teleportTo(positions[choiceId]) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) return true end 2. No arquivo creaturescripts/scripts/login.lua adicione isso antes do último return true: player:registerEvent("fly") 3. No Arquivo creaturescripts/creaturescripts.xml adicione isso antes de </creaturescripts>: <event type="modalwindow" name="fly" script="fly.lua"/> 4. Em talkactions/scripts crie um arquivo chamado fly.lua e adicione isso nele: function onSay(player, words, param) local places, options = {"Rhyves", "Trekolt"}, -- places {"Fly", "Cancel"} -- options local modalWindow = ModalWindow(4597, "List of places", "Select your destiny:") for w = 1, #places do modalWindow:addChoice(w, places[w]) end -- Select modalWindow:addButton(1, options[1]) modalWindow:setDefaultEnterButton(1) -- Cancel modalWindow:addButton(2, options[2]) modalWindow:setDefaultEscapeButton(2) -- Send window modalWindow:sendToPlayer(player) return false end 5. No arquivo talkactions/talkactions.xml adicione isso antes de </talkactions>: <talkaction words="!fly" script="fly.lua"/>
  9. items.xml, deleta a linha 13202: <item fromid="8678" toid="8683" name="tool parts" />
  10. Muito bom, acho que resolveria 99% dos problemas... Poderia colocar luajit ai também.
  11. Aprovado e movido para a área correta.
  12. Pretende adaptar para outras versões (0.4/0.3)?
  13. Pelo que vi no code a skill é adicionada quando o player loga, então acho que não daria certo. } else if (offlineTrainingSkill == SKILL_MAGLEVEL) { int32_t gainTicks = topVocation->getManaGainTicks() * 2; if (gainTicks == 0) { gainTicks = 1; } addOfflineTrainingTries(SKILL_MAGLEVEL, trainingTime * (static_cast<double>(vocation->getManaGainAmount()) / gainTicks)); }
  14. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Mapping" Para: "OTServ → Suporte OTServ → Suporte de WebSites"
  15. Não me lembro muito bem mas acho que é na função onCreatureAppear no arquivo player.cpp
  16. Site do seu amigo: Apache/2.2.21 Win32 mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 Tenta atualizar o xampp.
  17. Tem dois jeitos de aumentar o limite do client oficial, injetando uma dll que faz isso ou editando a source. Qual você prefere?
  18. Talvez isso ajude: http://www.tibiaking.com/forum/topic/51473-cliente-860-traduzido/ Lembro que fizeram isso na versão 8.31, não virou nada =/
  19. 3 - Agora nós vamos compilar o seu OTServ, mas para isso preciso que você utilize o FileZilla e bote a pasta do seu OTServ nomeada como "otserv" na pasta home, ou seja, /otserv e a deixe a pasta das suas sources dentro da pasta do seu otserv nomeada como "trunk", ou seja /otserv/trunk. Se não deu certo, é que você não fez direito.
  20. apt-get install autoconf build-essential pkg-config automake libboost-all-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev
  21. Seu RME tá pegando o spr/dat certo?
  22. O items.otb que você usa no servidor tem que ser o mesmo no RME...
  23. local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local storage = "first_login" -- não mexe local msg = "msg aqui" -- muda a msg aqui if getPlayerStorageValue(cid, storage) == -1 then setPlayerStorageValue(cid, storage, 0) doPlayerPopupFYI(cid, msg) end registerCreatureEvent(cid, "onPrepareDeath") local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Sua ultima visita no servidor foi em " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Mude seu Outifit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Castle") registerCreatureEvent(cid, "zombieevent") registerCreatureEvent(cid, "FirstItems") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "inquisitionPortals") registerCreatureEvent(cid, "ExpVip") registerCreatureEvent(cid, "castAttack") registerCreatureEvent(cid, "castHits") registerCreatureEvent(cid, "castLogout") registerCreatureEvent(cid, "PlayerDeath") registerCreatureEvent(cid, "LevelItem") registerCreatureEvent(cid, "EventLoot") registerCreatureEvent(cid, "HeartSys") registerCreatureEvent(cid, "stats_ctf") registerCreatureEvent(cid, "ctf_target") registerCreatureEvent(cid, "zombieevent") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "DeathSystem") registerCreatureEvent(cid, "BoasVindas") return true end

Informação Importante

Confirmação de Termo