antiblock
Rodnia | Alpha & Omega
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
SINOLOGY

Alterar Lua Drop Sistema

2 posts in this topic

Boas pessoal!

Eu tenho este sistema a funcionar no meu servidor, mas esta a apanhar o ID do mob.
É possível fazer isto funcionar com o Locale_Name da tabela mob_proto?
 

dofile("/usr/home/game/share/locale/germany/droplist.lua")
function drop(self)
    if dropList[self].typ == "limit" then
        if dropList[self].min_level == nil or dropList[self].max_level == nil then return end
        if dropList[self].min_level > pc.level or dropList[self].max_level < pc.level then return end
        local chance,count
        table.foreach(dropList[self].dropps, function(i)
            if dropList[self].dropps[3] ~= nil then
                chance = dropList[self].dropps[3]
            else
                chance = 100
            end
            if dropList[self].dropps[2] ~= nil then
                count = dropList[self].dropps[2]
            else
                count = 1
            end
            if math.random(1, 100) < chance then
                game.drop_item_with_ownership(dropList[self].dropps[1], count)
            end
        end)
    elseif dropList[self].typ == "drop" then
        local chance,count
        table.foreach(dropList[self].dropps, function(i)
            if dropList[self].dropps[3] ~= nil then
                chance = dropList[self].dropps[3]
            else
                chance = 100
            end
            if dropList[self].dropps[2] ~= nil then
                count = dropList[self].dropps[2]
            else
                count = 1
            end
            if math.random(1, 100) < chance then
                game.drop_item_with_ownership(dropList[self].dropps[1], count)
            end
        end)
    else
        return
    end
end

Share this post


Link to post
Share on other sites
antiblock
https://arwen2.global/

Dá uma olhada nesta linha:

dofile("/usr/home/game/share/locale/germany/droplist.lua")

 

Já agora, levaste 3 Pontos de Aviso.

Cumprimentos.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this