SINOLOGY 220 Posted March 28, 2016 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
NewWars 875 Posted March 28, 2016 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