primeira action 7.92 ta ai
Ia lançar depois + resolvi libera agora
Fireworks.lua
--function by ta4e--function onUse(cid, item, frompos, item2, topos)
sorte = math.random(1,3)
if frompos.x == 65535 then
if sorte == 1 then
doSendMagicEffect(topos,28)
doSendMagicEffect(topos,4)
doCreatureAddHealth(cid,-10)
doPlayerSay(cid,'Ouch! Rather place it on ground next time.',16)
doRemoveItem(item.uid,1)
elseif sorte == 2 then
doSendMagicEffect(topos,29)
doSendMagicEffect(topos,4)
doCreatureAddHealth(cid,-10)
doPlayerSay(cid,'Ouch! Rather place it on ground next time.',16)
doRemoveItem(item.uid,1)
elseif sorte == 3 then
doSendMagicEffect(topos,30)
doSendMagicEffect(topos,4)
doCreatureAddHealth(cid,-10)
doPlayerSay(cid,'Ouch! Rather place it on ground next time.',16)
doRemoveItem(item.uid,1)
end
else
if sorte == 1 then
doSendMagicEffect(topos,28)
doRemoveItem(item.uid,1)
elseif sorte == 2 then
doSendMagicEffect(topos,29)
doRemoveItem(item.uid,1)
elseif sorte == 3 then
doSendMagicEffect(topos,30)
doRemoveItem(item.uid,1)
end
end
return 1
end
e em actions.xml
<action itemid="6576" script="Fireworks.lua" />
NAUM TENTE COLOCAR EM SERVER 7.9 OU - POIS NAUM EXISTE OS MAGICS EFFECTS
comentem
flws :hi: