Bom, estou fazendo um OT de war. mais não está subindo experiencia para os players quando se matam... quero uma tipo stage ex: (level 150 ganha 10 de xp) 180 (5 de xp) 200 (1 de xp)
SÓ UM EXEMPLO...
creio eu que seja nessa config:
function onLogin(cid)
local rebalanceStor = getPlayerStorageValue(cid, 37454)
if rebalanceStor == -1 and getPlayerLevel(cid) >= 250 then
doPlayerAddExperience(cid, (getExperienceForLevel(200) - getPlayerExperience(cid)))
setPlayerStorageValue(cid, 37454, 1)
elseif rebalanceStor == -1 and getPlayerLevel(cid) > 255 and getPlayerLevel(cid) < 160 then
doPlayerAddExperience(cid, (getExperienceForLevel(200) - getPlayerExperience(cid)))
setPlayerStorageValue(cid, 37454, 1)
elseif rebalanceStor == -1 and getPlayerLevel(cid) < 260 then
doPlayerAddExperience(cid, (getExperienceForLevel(250) - getPlayerExperience(cid)))
setPlayerStorageValue(cid, 37454, 1)
else setPlayerStorageValue(cid, 37454, 1)
end
return TRUE
end
info
Grupo: Campones
Registrado: 08/10/11
Posts: 17
Reputação: +9
Char no Tibia: umdoistresindiosinhos
Bom, estou fazendo um OT de war. mais não está subindo experiencia para os players quando se matam... quero uma tipo stage ex: (level 150 ganha 10 de xp) 180 (5 de xp) 200 (1 de xp)
SÓ UM EXEMPLO...
creio eu que seja nessa config: