Ir para conteúdo

Posts Recomendados

A um tempo atras me ajudaram no aol que nao perdi level nem quando black e red, mas tem um problema a primeira morte ele volta para o level 1 e depois nao volta, alguem sabe como faz para parar de voltar com a primeira morte

 

Script:

 

local config = {

ammyID = 2196,

lossExp = false,

lossItems = false

}

 

function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)

if isPlayer(cid) then

if (getPlayerSlotItem(cid, 2).itemid == config.ammyID) then

if (config.lossExp == false) then

doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)

end

 

doCreatureSetDropLoot(cid, config.lossItems)

return true

end

end

 

return true

end

 

 

Abrass

Link para o comentário
https://xtibia.com/forum/topic/180779-aol-que-n%C3%A3o-perder-level/
Compartilhar em outros sites

×
×
  • Criar Novo...