Ir para conteúdo

Fir3element

Héroi
  • Registro em

  • Última visita

Solutions

  1. Fir3element's post in (Resolvido)[RESOLVIDO] Otclient 10.76 was marked as the answer   
    Última versão: https://github.com/edubart/otclient/archive/master.zip
     


    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 OTServ Geral"
    Para: "OTServ → Suporte OTServ → Suporte de Clients"
  2. Fir3element's post in (Resolvido)[Compilar] Erro ao compilar TFS 0.4 - Ubuntu 14.04 was marked as the answer   
    1. Abra o arquivo: /usr/include/boost/filesystem/config.hpp
    Na linha 16, troque != 3 para != 2
     
    2. otsystem.h, antes de: (± linha 125)
    #define foreach BOOST_FOREACH #define reverse_foreach BOOST_REVERSE_FOREACH #endif adicione:
    #if BOOST_VERSION < 104400 #define BOOST_DIR_ITER_FILENAME(iterator) (iterator)->path().filename() #else #define BOOST_DIR_ITER_FILENAME(iterator) (iterator)->path().filename().string() #endif luascript.cpp, troque: (± linha 740)
    std::string s = it->leaf(); por:
    std::string s = BOOST_DIR_ITER_FILENAME(it); scriptmanager.cpp (± linha 130), faça a mesma coisa
  3. Fir3element's post in (Resolvido)[DUVIDA/PEDIDO] Esse lugar WTF ankra was marked as the answer   
    Recortei: http://www.mediafire.com/download/tdk6ea9r383in6d/ankrahmun.rar
  4. Fir3element's post in (Resolvido)[PEDIDO] Player perder house após ficar alguns dias inativo was marked as the answer   
    http://www.tibiaking.com/forum/topic/36529-clean-house-remover-casas-de-quem-n%C3%A3o-loga/
  5. Fir3element's post in (Resolvido)Erro ao compilar 0.3.6pl1 - was marked as the answer   
    Exclui seu dev-cpp e usa esse: http://www.mediafire.com/download/os3063htddwxlb9/dev-cpp.rar
    Se tu quer na versão 8.6: https://github.com/Skazw/forgottenserver036
  6. Fir3element's post in (Resolvido)[Duvida e Pedido] Great Potion / Stamina was marked as the answer   
    2. http://www.tibiaking.com/forum/topic/55243-036pl1-atacar-e-usar-runa-ao-mesmo-tempo-usar-runa-enquanto-corre/
  7. Fir3element's post in (Resolvido)Não consigo compilar. was marked as the answer   
    Baixa esse dev: http://www.mediafire.com/download/4xj667oxt99x7tk/TheForgottenDevCpp.7z Extrai ele para o mesmo lugar do seu outro dev. Renomeia o seu dev antigo para qualquer outra coisa. Renomeia o dev atual (que passei o link) para o mesmo nome do seu antigo. Tenta compilar depois...
  8. Fir3element's post in (Resolvido)[AJUDA]Sistema de Pesca para PokeTibia was marked as the answer   
    Tenta ai:



     
    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 → Aprovação de Tópicos de Conteúdos"
    Para: "OTServ → Suporte OTServ → Suporte de Scripts"
  9. Fir3element's post in (Resolvido)Paralyze com chance em portecentagem was marked as the answer   
    creaturescripts/scripts/paralyze.lua
    local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20 * 1000) -- tempo de paralyze setConditionFormula(condition, -0.9, 40, -0.9, 0) function onAttack(cid, target)     local config = {         storage = 4597,         delay = 120, -- em segundos         chance = 25 -- chance     }     if (os.time() - getPlayerStorageValue(cid, config.storage)) >= config.delay and getPlayerVocation(cid) ~= getPlayerVocation(target) then         setPlayerStorageValue(cid, config.storage, os.time())         if math.random(1, 100) <= config.chance then             doAddCondition(target, condition)         end     end     return true end creaturescripts/creaturescripts.xml
        <event type="attack" name="attack" event="script" value="paralyze.lua"/> creaturescripts/scripts/login.lua, adicione:
    registerCreatureEvent(cid, "attack")
  10. Fir3element's post in (Resolvido)Enviando server pro VPS was marked as the answer   
    Se sua internet for muito lenta pode demorar bastante mesmo.
    Recomendo zipar o arquivo, dar upload em algum site e baixar no VPS.
     
    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 → OTServ Geral"
    Para: "OTServ → Suporte OTServ → Suporte de Infraestrutura"
  11. Fir3element's post in (Resolvido)[PEDIDO] Hp / Mp por porcentagem %% was marked as the answer   
    protocolgame.cpp, procure por:
        msg->put<uint16_t>(player->getHealth());     msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MAXHEALTH)); troque por:
        if (player->getPlayerInfo(PLAYERINFO_MAXHEALTH) > 0)     {         msg->put<uint16_t>(uint16_t(player->getHealth() * 100 / player->getPlayerInfo(PLAYERINFO_MAXHEALTH)));         msg->put<uint16_t>(100);     }     else     {         msg->put<uint16_t>(0);         msg->put<uint16_t>(0);       } procure por:
        msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MANA));     msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MAXMANA)); troque por:
        if (player->getPlayerInfo(PLAYERINFO_MAXMANA) > 0)     {         msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MANA) * 100 / player->getPlayerInfo(PLAYERINFO_MAXMANA));         msg->put<uint16_t>(100);     }     else     {         msg->put<uint16_t>(0);         msg->put<uint16_t>(0);     }
  12. Fir3element's post in (Resolvido)Ajuda Site 10.76 was marked as the answer   
    /home/otserv/global1076
     
    Depois do global não tinha que ter uma "/"?
  13. Fir3element's post in (Resolvido)[AJUDA] como mudar cor healing (dev-cpp) was marked as the answer   
    game.cpp

    MessageDetails* details = new MessageDetails(healthChange, COLOR_MAYABLUE);
  14. Fir3element's post in (Resolvido)Erro ao compilar TFS 0.4 rev3884 no Dev c++ was marked as the answer   
    Deleta todos os dev do seu pc (se tiver instalado mingw, deleta tbm).
    Depois baixa o dev do stian (http://www.4shared.com/archive/jxytO4M5ba/Stians_Repack_Dev-Cpp_02_64bit.htm) e instala o pacote openssl.
     
    Acho que vai aparecer uma coisa relacionado ao cache quando abrir o dev, aperta em "yes".
  15. Fir3element's post in (Resolvido)Mudando Acess do vip. was marked as the answer   
    Adicione isso em alguma parte do login.lua (creaturescripts):
    if getPlayerAccess(cid) == 0 and vip.hasVip(cid) then     setPlayerGroupId(cid, 1) elseif getPlayerAccess(cid) == 1 and not vip.hasVip(cid) then     setPlayerGroupId(cid, 0) end
  16. Fir3element's post in (Resolvido)Uma ajudinha pro novato was marked as the answer   
    Posta uma imagem do debug.
    Uma dica: tente usar o otclient, ele não dá debug (é mais fácil de identificar o problema).
  17. Fir3element's post in (Resolvido)[AJUDAFAST] COMO COLOKA ATAK MAIS FAST was marked as the answer   
    Tem que modificar uma linha na source.
     
    Em player.cpp, procure por:
    else if((!weapon->hasExhaustion() || !hasCondition(CONDITION_EXHAUST, EXHAUST_COMBAT)) && weapon->useWeapon(this, tool, attackedCreature)) Troque por:
    else if(!weapon->hasExhaustion() && weapon->useWeapon(this, tool, attackedCreature))
  18. Fir3element's post in (Resolvido)[BUG NPC] Npc não vende wands e Rods was marked as the answer   
    Troque a pasta npc/lib por essa:lib.rar
  19. Fir3element's post in (Resolvido)Mudar URL do PHPMYADMIN was marked as the answer   
    http://www.thetechrepo.com/main-articles/488-change-default-access-url-of-phpmyadmin.html
  20. Fir3element's post in (Resolvido)aol infinita was marked as the answer   
    <item id="2196" article="a" name="VIP amulet">     <attribute key="weight" value="420" />     <attribute key="slotType" value="necklace" />     <attribute key="absorbPercentall" value="15" />     <attribute key="preventDrop" value="1"/>     <attribute key="speed" value="40" />     <attribute key="showattributes" value="1" />     <attribute key="charges" value="99999999999999999999999999999999999999" /> </item>
  21. Fir3element's post in (Resolvido)Erro Na Função setCreatureName was marked as the answer   
    Não encontrei nenhum erro
    Tente usar meus arquivos:
    monster.cpp: http://hastebin.com/raw/iqexubevon
    monster.h: http://hastebin.com/raw/lotiyisilu
  22. Fir3element's post in (Resolvido)[PEDIDO] NPC PROMOTION was marked as the answer   
    The Forgotten King.xml

    <?xml version="1.0" encoding="UTF-8"?> <npc name="The Forgotten King" script="promotion.lua" walkinterval="2000" floorchange="0">     <health now="100" max="100"/>     <look type="133" head="20" body="39" legs="45" feet="7" addons="0"/> </npc>  
    scripts/promotion.lua

    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 onPlayerEndTrade(cid)                npcHandler:onPlayerEndTrade(cid)            end function onPlayerCloseChannel(cid)            npcHandler:onPlayerCloseChannel(cid)        end local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 2000000 gold coins. Do you want me to promote you?'})     node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 2000000, level = 8, promotion = 1, text = 'Congratulations! You are now promoted.'})     node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) npcHandler:addModule(FocusModule:new())
  23. Fir3element's post in (Resolvido)Database errada was marked as the answer   
    db: http://hastebin.com/ludevoxohi.vbs
    executa isso dps:

    ALTER TABLE  `players` ADD  `cast` TINYINT NOT NULL DEFAULT  '0', ADD  `castViewers` INT( 11 ) NOT NULL DEFAULT  '0', ADD  `castDescription` VARCHAR( 255 ) NOT NULL
  24. Fir3element's post in (Resolvido)[RESOLVIDO] Player ganha vida upando Defense was marked as the answer   
    1 - local amount = 50
    2 - Sim, adicione isso no creaturescripts.xml

        <event type="advance" name="AdvanceShield" event="script" value="advanceshield.lua"/>  
    login.lua, adicione junto aos outros:

        registerCreatureEvent(cid, "AdvanceShield")  
    crie um arquivo na pasta scripts chamado advanceshield.lua:

    function onAdvance(cid, skill, oldLevel, newLevel)     local amount = 50     if skill == SKILL_SHIELD then         setCreatureMaxHealth(cid, amount + getCreatureMaxHealth(cid))     end     return true end
  25. Fir3element's post in (Resolvido)[AJUDA] Gesior e Website was marked as the answer   
    deleta ele e tenta entrar

Informação Importante

Confirmação de Termo