3 horas atrás, boxxer321 disse:eu troquei essa linha
if megasConf[megaName].wildChance >= chance thenpor essa:
if megasConf[megaName].wildChance == chance then
melhora tambem?
3 horas atrás, RicardoRoX disse:vai melhorar, mas seria bom combinar os 2, ai fica bom kkk!
(:
Quando você fala em juntar, você quis dizer deixar um código abaixo do outro, desta forma ?
Veja:
function checkChenceToMega(cid)
local name, chance = doCorrectString(getCreatureName(cid)), math.random(0.1 ~~ 1000.9)
local megaID = ""
if name == "Charizard" then
megaID = math.random(1, 100) < 51 and "Y" or "X"
end
local megaName = "Mega " .. name .. (megaID ~= "" and " " .. megaID or "")
if megasConf[megaName] and not isMega(cid) then
if megasConf[megaName].wildChance >= chance then
if megasConf[megaName].wildChance == chance then
setPlayerStorageValue(cid, storages.isMegaID, megaID)
doTransformMega(cid)
end
end
end







info
Grupo: Campones
Registrado: 07/08/12
Posts: 2
Reputação: 0
Char no Tibia: Kaiser
@thiago2oliveir1 pode fazer uma lista dos pokes sem moves?