Ir para conteúdo

FlamesAdmin

Infante
  • Total de itens

    1550
  • Registro em

  • Última visita

  • Dias Ganhos

    19

Posts postados por FlamesAdmin

  1. Aperta CTRL+SHIFT+F vai aparecer essa janela

    wc6bflg.png

    no Replace this item vc coloca o ID da shallow water

    e no With this item vc coloca o ID da deep water

     

    PS: Como as waters são vários ITEM IDS, vc vai ter que fazer isso com cada um

     

    Faz um backup do mapa antes

  2. Link do código @KaboFlow @raulcdj

    https://pastebin.com/dKiGhW9b

     

     

    #ME

    estou com um erro 

    [Error - Action Interface]
    In a timer event called from:
    data/actions/scripts/basic/catch.lua:onUse
    Description:
    data/lib/CaughtWindow.lua:282: attempt to index a number value
    stack traceback:
            data/lib/CaughtWindow.lua:282: in function 'sendcaught'
            data/lib/catch system.lua:237: in function <data/lib/catch system.lua:156>

     

  3. local trade_pokes, options = {
    
      ["Kabuto"] = {itemid = 12579, count = 1},
    }, {}
    
    local btype = "normal"
    
    for poke_name, trade_info in pairs(trade_pokes) do
      table.insert(options, poke_name.." - "..trade_info.count.."x "..getItemNameById(trade_info.itemid))
    end
    
    local keywordHandler = KeywordHandler:new()
    local npcHandler = NpcHandler:new(keywordHandler)
    NpcSystem.parseParameters(npcHandler)
    
    local talkState = {}
    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 talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
    
              if msgcontains(msg:lower(), "fossil") then
                selfSay("Eu posso trocar fósseis por esses pokémons. Qual vocę quer?", cid, TALKTYPE_MONSTER)
                doPlayerPopupFYI(cid, "*** POKÉMONS DISPONÍVEIS ***\n\n"..table.concat(options, "\n"))
                talkState[talkUser] = 1
              elseif talkState[talkUser] == 1 then
    
                local poke = trade_pokes[msg]
    
                if poke then
                  if doPlayerRemoveItem(cid, poke.itemid, poke.count) then
                    selfSay("Foi um prazer fazer negócios com vocę! Faça bom uso do seu novo "..msg..".", cid, TALKTYPE_MONSTER)
                    doPlayerRemoveItem(cid, 2152, 50)
                    addPokemon(cid, msg, 0, nil, btype)
                    end
                    talkState[talkUser] = 0
                  else
                    selfSay("Desculpe, mas vocę năo tem os itens necessários para ressucitar o fóssil. (5K + fossil)", cid, TALKTYPE_MONSTER)
                  end
                else
                  selfSay("Desculpe, provavelmente vocę está escrevendo o nome errado ou sem a primeira letra maiúscula", cid, TALKTYPE_MONSTER)
                end
              end
    
            npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
            npcHandler:addModule(FocusModule:new())

     

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...