Ir para conteúdo

Icone Inventório


M4TH3U5

Posts Recomendados

Como Coloco Para Colocar o Icone Do Fogo Nesse Script?

Aquele do Fire Field

 

2j3hcnq.png

 

 

 

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)

local lifeporcentagem = 2
local dano = -2
local playerpos = getPlayerPosition(cid)
doSendMagicEffect(playerpos, 15)
function a(pos)
local playerpos2 = getPlayerPosition(cid)
if getPlayerVocation(cid) == 1 then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid)*(dano/100))
doSendMagicEffect(playerpos2, 15)
end
if getPlayerVocation(cid) == 2 then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid)*(lifeporcentagem/100))
doPlayerAddMana(cid, getCreatureMaxHealth(cid)*(lifeporcentagem/100))
doSendMagicEffect(playerpos2, 15)
end
if getPlayerVocation(cid) == 3 then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid)*(dano/100))
doSendMagicEffect(playerpos2, 15)
end
end
for i = 1, 10 do
addEvent(a, i*2000)
end
return true
end

Editado por R1B31R0
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...