JA

Ajuda Com Exp De Enforced

Por jacking, 09 de out. de 2011 em Archived

2
379
jackingJ
09 de outubro de 2011 às 15:45

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 

1418311
13 de outubro de 2011 às 19:07

Qual versao vc usa ? ( ex : 8.60 , 8.54 , 8.50 ...)