DR
action

Fogos de artificio customizados e estilosos by DrakyLucas

Por drakylucas, 08 de abr. de 2013 em Actions e Talkactions

otserv
tibia
script
3
966
drakylucasD
08 de abril de 2013 às 22:12

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 ^^

10 de abril de 2013 às 23:38

Fico Show de Bola Mano Funcionou 100% vlw ai gostei mt!

 

http://imageshack.us...shot001fmj.jpg/"

Editado Abril 10 por rafaorshabaal

2 semanas depois...
LeeooLML
19 de abril de 2013 às 18:03

aqui no meu só estoura aonde ta o adm =x

 

@Editado

 

deu certo vlw

Editado Abril 19 por LeeooLM