Amigos,
tenho um servidor de pokémon e preciso dar 50% de exp aos níveis 40 ou menores. Segue a parte importante do script:
local givenexp = getWildPokemonExp(cid)local killer = getItemAttribute(corpse.uid, "corpseowner")
if givenexp > 0 then
for a = 1, #deathList do
local pk = deathList[a]
if isCreature(pk) then
local extra = isPremium(pk) and 0.31 or 0
playerAddExp(pk, math.floor(playerExperienceRate * givenexp * getDamageMapPercent(pk, cid)*(1+extra)))
end
end
end
Aguardo ajuda.
Grato