bom, fiz em 5 minutos.. então nao é pra estar um script mto profissional porem é divertido
em data\actions\scripts\other abra o arquivo fireworksrocket.lua (provavelmente ele ja existira) e substitua TUDO o que estiver dentro por isso:
--[[
By Draky Lucas
Contact: XTibia.com
NÃO RETIRAR OS CREDITOS
]]--
function onUse(cid, item, fromPosition, itemEx, toPosition)
local function estourar()
for x = -6,6 do
for y = -4,4 do
if math.random(1,7) == 1 then
doSendMagicEffect({x = fromPosition.x + x, y = fromPosition.y + y, z = fromPosition.z},math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE))
end
end
end
end
if(fromPosition.x ~= CONTAINER_POSITION) then
for i = 0,15 do
addEvent(estourar,i*200)
end
else
doCreatureSay(cid, "Ouch! Rather place it on the ground next time.", TALKTYPE_MONSTER)
doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -1, -70, math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE))
end
doRemoveItem(item.uid)
return true
end
de /reload actions , crie o item 6576 e teste você mesmo ^^







