Drop Ultimate Potion OTC


Tibia RPG Brasil

Recommended Posts

Galerinha dos script, tem como fazer esse script abaixo dropar as novas potion?

 

--[[ script de dropar potions
id das potions = {283 = Strong ,284 = Great, 285 = Normal}
]]

cycleEvent( function() 
    if g_game.isOnline() then
        local id = '285'
        local player = g_game.getLocalPlayer()
        local mypos = player:getPosition()
        local flask = player:getItem(id)
        
        if flask == nil then
            return
        elseif flask:getCount() > 0 then
            g_game.move(flask, mypos, flask:getCount())
        end
    end
end, 1000/2)

Link to comment
Share on other sites

1 hora atrás, Pet Mercenarys disse:

Galerinha dos script, tem como fazer esse script abaixo dropar as novas potion?

 

--[[ script de dropar potions
id das potions = {283 = Strong ,284 = Great, 285 = Normal}
]]

cycleEvent( function() 
    if g_game.isOnline() then
        local id = '285'
        local player = g_game.getLocalPlayer()
        local mypos = player:getPosition()
        local flask = player:getItem(id)
        
        if flask == nil then
            return
        elseif flask:getCount() > 0 then
            g_game.move(flask, mypos, flask:getCount())
        end
    end
end, 1000/2)

eh soh trocar o id da pot em local id = '285'

Link to comment
Share on other sites

1 hora atrás, Pet Mercenarys disse:

{283 = Strong ,284 = Great, 285 = Normal} ,   nao tem ultimate amigo, o script nao dropa as pot nova

Igual o @ThiagoMetal falou @Pet Mercenarys só trocar o ID  283 = Strong ,284 = Great, 285 = Potion 

troca em: 

1 hora atrás, ThiagoMetal disse:

local id = '285'

ai voce poe o tipo de pot que vai dropar= 285 mana potion 284 supreme health potion

Link to comment
Share on other sites

potion_event = cycleEvent( function() 
    local potions = {283, 284, 285}
    if g_game.isOnline() then
        local player = g_game.getLocalPlayer()
        local mypos = player:getPosition()
        for k,v in pairs(potions) do
            local flask = player:getItem(v)

            if flask and flask:getCount() > 0 then
                g_game.move(flask, mypos, flask:getCount())
                break
            end
        end
    end
end, 1000/2)

usa esse script aki, editei e dropa qualquer potion vazia que vc tiver dentro da bp que estiver dentro da lista chamada "potions", ai vc coloca o id das potions ali e já era

Link to comment
Share on other sites

3 horas atrás, Gugu - Karin Uzumaki disse:

potion_event = cycleEvent( function() 
    local potions = {283, 284, 285}
    if g_game.isOnline() then
        local player = g_game.getLocalPlayer()
        local mypos = player:getPosition()
        for k,v in pairs(potions) do
            local flask = player:getItem(v)

            if flask and flask:getCount() > 0 then
                g_game.move(flask, mypos, flask:getCount())
                break
            end
        end
    end
end, 1000/2)

usa esse script aki, editei e dropa qualquer potion vazia que vc tiver dentro da bp que estiver dentro da lista chamada "potions", ai vc coloca o id das potions ali e já era

O tibiawiki me da os Ids abaixo, oque eu faço agora? coloco em que lugar do script Gu? (nao manjo nada disso, desculpa)

ultimate mana potion 23373
ultimate spirit potion 23374
 

Link to comment
Share on other sites

potion_event = cycleEvent( function() 
    local potions = {283, 284, 285, 23373, 23374}
    if g_game.isOnline() then
        local player = g_game.getLocalPlayer()
        local mypos = player:getPosition()
        for k,v in pairs(potions) do
            local flask = player:getItem(v)

            if flask and flask:getCount() > 0 then
                g_game.move(flask, mypos, flask:getCount())
                break
            end
        end
    end
end, 1000/2)

 

1 hora atrás, Pet Mercenarys disse:

O tibiawiki me da os Ids abaixo, oque eu faço agora? coloco em que lugar do script Gu? (nao manjo nada disso, desculpa)

ultimate mana potion 23373
ultimate spirit potion 23374
 

  • Like 1
Link to comment
Share on other sites

1 hora atrás, Gugu - Karin Uzumaki disse:

potion_event = cycleEvent( function() 
    local potions = {283, 284, 285, 23373, 23374}
    if g_game.isOnline() then
        local player = g_game.getLocalPlayer()
        local mypos = player:getPosition()
        for k,v in pairs(potions) do
            local flask = player:getItem(v)

            if flask and flask:getCount() > 0 then
                g_game.move(flask, mypos, flask:getCount())
                break
            end
        end
    end
end, 1000/2)

 

vlw, desculpa ti dar trabalho.

  • Like 1
Link to comment
Share on other sites

12 horas atrás, Pet Mercenarys disse:

Gu, ele ta dropando as pot cheia.

Você passou o id das potions cheias, o id delas vazias eh o msm das great vazias, 284.

potion_event = cycleEvent( function() 
    local potions = {283, 284, 285}
    if g_game.isOnline() then
        local player = g_game.getLocalPlayer()
        local mypos = player:getPosition()
        for k,v in pairs(potions) do
            local flask = player:getItem(v)

            if flask and flask:getCount() > 0 then
                g_game.move(flask, mypos, flask:getCount())
                break
            end
        end
    end
end, 1000/2)

 

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...