M4
moveevent

Icone Inventório

Por M4TH3U5, 11 de jul. de 2013 em Actions e Talkactions

script
1
643
M4TH3U5M
11 de julho de 2013 às 13:06

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 Julho 11 por R1B31R0