Ir para conteúdo

Obsidian Knif E Blessed Wooden Stake 100% Tibiarl


Cassio Silvio

Posts Recomendados

Resolvi fazer mesmo pra nada...

 

1° ObsidianKnife.

Faça um arquivo chamado obsidian knife.lua em data/actions/scripts/

e coloque isso:

 

--Action By lucas_sempreloko@hotmail.com

function onUse(cid, item, frompos, item2, topos)

 

if item2.itemid == 0 then

return 0

end

 

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 2881 and random == 1 then

doTransformItem(item2.uid,2882)

doPlayerAddItem(cid,5948,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 2881 and random == 2 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 3 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 4 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 5 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 6 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 7 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 8 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 9 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 10 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 11 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 12 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 13 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 14 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2881 and random == 15 then

doTransformItem(item2.uid,2882)

doSendMagicEffect(topos,3)

 

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 2844 and random == 1 then

doTransformItem(item2.uid,2845)

doPlayerAddItem(cid,5877,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 2844 and random == 2 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 3 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 4 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 5 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 6 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 7 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 8 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 9 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 10 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 11 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 12 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 13 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 14 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2844 and random == 15 then

doTransformItem(item2.uid,2845)

doSendMagicEffect(topos,3)

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 2830 and random == 1 then

doTransformItem(item2.uid,2831)

doPlayerAddItem(cid,5878,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 2830 and random == 2 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 3 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 4 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 5 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 6 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 7 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 8 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 9 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 10 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 12 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 13 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 14 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2830 and random == 15 then

doTransformItem(item2.uid,2831)

doSendMagicEffect(topos,3)

 

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 2876 and random == 1 then

doTransformItem(item2.uid,2877)

doPlayerAddItem(cid,5878,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 2876 and random == 2 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 3 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 4 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 5 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 6 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 7 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 8 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 9 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 10 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 11 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 12 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 13 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 14 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2876 and random == 15 then

doTransformItem(item2.uid,2877)

doSendMagicEffect(topos,3)

 

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 2871 and random == 1 then

doTransformItem(item2.uid,2872)

doPlayerAddItem(cid,5878,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 2871 and random == 2 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 3 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 4 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 5 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 6 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 7 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 8 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 9 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 10 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 11 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 12 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 13 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 14 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2871 and random == 15 then

doTransformItem(item2.uid,2872)

doSendMagicEffect(topos,3)

 

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 2866 and random == 1 then

doTransformItem(item2.uid,2867)

doPlayerAddItem(cid,5878,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 2866 and random == 2 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 3 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 4 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 5 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 6 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 7 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 8 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 9 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 10 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 11 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 12 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 13 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 14 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2866 and random == 15 then

doTransformItem(item2.uid,2867)

doSendMagicEffect(topos,3)

 

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 4256 and random == 1 then

doTransformItem(item2.uid,4257)

doPlayerAddItem(cid,5876,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 4256 and random == 2 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 3 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 4 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 5 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 6 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 7 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 8 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 9 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 10 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 11 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 12 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 13 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 14 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4256 and random == 15 then

doTransformItem(item2.uid,4257)

doSendMagicEffect(topos,3)

 

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 4259 and random == 1 then

doTransformItem(item2.uid,4260)

doPlayerAddItem(cid,5876,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 4259 and random == 2 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 3 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 4 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 5 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 6 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 7 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 8 then

doTransformItem(item2.uid,4260)

 

elseif item2.itemid == 4259 and random == 9 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 10 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 11 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 12 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 13 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 14 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4259 and random == 15 then

doTransformItem(item2.uid,4260)

doSendMagicEffect(topos,3)

 

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 4262 and random == 1 then

doTransformItem(item2.uid,4263)

doPlayerAddItem(cid,5876,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 4262 and random == 2 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 3 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 4 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 5 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 6 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 7 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 8 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 9 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 10 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 11 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 12 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 13 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 14 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 4262 and random == 15 then

doTransformItem(item2.uid,4263)

doSendMagicEffect(topos,3)

 

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 2931 and random == 1 then

doTransformItem(item2.uid,2932)

doPlayerAddItem(cid,5893,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 2931 and random == 2 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 3 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 4 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 5 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 6 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 7 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 8 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 9 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 10 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 11 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 12 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 13 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 14 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2931 and random == 15 then

doTransformItem(item2.uid,2932)

doSendMagicEffect(topos,3)

 

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 3031 and random == 1 then

doTransformItem(item2.uid,3032)

doPlayerAddItem(cid,5925,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 3031 and random == 2 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 3 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

elseif item2.itemid == 3031 and random == 4 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 5 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 6 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 7 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 8 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 9 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 10 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 11 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 12 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 13 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 14 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 3031 and random == 15 then

doTransformItem(item2.uid,3032)

doSendMagicEffect(topos,3)

 

end

end

return 1

end

 

 

agora em data/actions/actions.xml

<action itemid="5908" script="obsidian knife.lua"/>

 

 

 

Agora blessed wooden stake.

 

Faça um arquivo chamado blessed wooden stake.lua em data/actions/scripts/

e coloque isso:

 

--Action By lucas_sempreloko@hotmail.com

function onUse(cid, item, frompos, item2, topos)

 

if item2.itemid == 0 then

return 0

end

 

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 2916 and random == 1 then

doTransformItem(item2.uid,2917)

doPlayerAddItem(cid,5906,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 2916 and random == 2 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 3 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 4 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 5 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 6 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 7 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 8 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 9 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 10 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 11 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 12 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 13 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 14 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2916 and random == 15 then

doTransformItem(item2.uid,2917)

doSendMagicEffect(topos,3)

 

end

end

 

random = math.random(1,15)

 

if getPlayerLevel(cid) >= 8 then

 

if item2.itemid == 2956 and random == 1 then

doTransformItem(item2.uid,2957)

doPlayerAddItem(cid,5905,1)

doSendMagicEffect(topos,14)

 

elseif item2.itemid == 2956 and random == 2 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 3 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 4 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 5 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 6 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 7 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 8 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 9 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 10 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 11 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 12 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 13 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 14 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

elseif item2.itemid == 2956 and random == 15 then

doTransformItem(item2.uid,2957)

doSendMagicEffect(topos,3)

 

end

end

return 1

end

 

agora em data/actions/actions.xml

<action itemid="5942" script="blessed wooden stake.lua"/>

 

ele foi testado no Evolutions 0.7.6, o corpo dos bixos podem variar de acordo com o ot, ai vc troca os corpos ai.

 

Só isso...

falow...

qualquer coisa add ai o msn... lucas_sempreloko@hotmail.com

Link para o comentário
Compartilhar em outros sites

grande d+ :S

 

o meu primeiro foi assim tbm

olha como tah hj :

 

(num 100% meu)

 

--idea of cokey--

--script by ta4e--

function onUse(cid,item,frompos,item2,topos)

number = math.random(1,100)

chance = getConfigNumber("blessed_wooden_chance")

 

if chance > 100 or chance == 0 then

chance = 100

end

 

--vampire--

if item2.itemid == 2916 then

if number <= chance then

doSendMagicEffect(topos,14)

doPlayerAddItem(cid,5906,1)

doTransformItem(item2.uid,item2.itemid+1)

else

doSendMagicEffect(topos,3)

doTransformItem(item2.uid,item2.itemid+1)

end

return 1

end

 

--demon--

if item2.itemid == 2956 then

if number <= chance then

doSendMagicEffect(topos,14)

doPlayerAddItem(cid,5905,1)

doTransformItem(item2.uid,item2.itemid+1)

else

doSendMagicEffect(topos,3)

doTransformItem(item2.uid,item2.itemid+1)

end

return 1

end

--end

return 0

end

 

+ ta bom

 

flws

Link para o comentário
Compartilhar em outros sites

Ae o script pode ser pequeno vo posta aki, é que vc fez do modo + dificil mesmo, eu fiz de otro metodo, é muito + rapido e + facil até de modificar.

Mas muito bom, eu até mudei o meu pra bota o random em 15 eu tava com ele em 10 mas fui testa em 15 fico mt + real.

 

function onUse(cid, item, frompos, item2, topos) 

if item2.itemid == 0 then 
return 0 
end 


random = math.random(1,15)

if getPlayerLevel(cid) >= 8 then 


if item2.itemid == 2881 and random < 2 then 
doTransformItem(item2.uid,2882) 
doPlayerAddItem(cid,5948,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 2881 and random >= 2 then 
doTransformItem(item2.uid,2882) 
doSendMagicEffect(topos,3)  

end 
end 

random = math.random(1,15) 

if getPlayerLevel(cid) >= 8 then 

if item2.itemid == 2844 and random < 2 then 
doTransformItem(item2.uid,2845) 
doPlayerAddItem(cid,5877,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 2844 and random >= 2 then
doTransformItem(item2.uid,2845) 
doSendMagicEffect(topos,3) 
end 
end 

random = math.random(1,15) 

if getPlayerLevel(cid) >= 8 then 

if item2.itemid == 2830 and random < 2 then 
doTransformItem(item2.uid,2831) 
doPlayerAddItem(cid,5878,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 2830 and random >= 2 then 
doTransformItem(item2.uid,2831) 
doSendMagicEffect(topos,3)  

end 
end 

random = math.random(1,15) 

if getPlayerLevel(cid) >= 8 then 

if item2.itemid == 2876 and random < 2 then  
doTransformItem(item2.uid,2877) 
doPlayerAddItem(cid,5878,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 2876 and random >= 2 then 
doTransformItem(item2.uid,2877) 
doSendMagicEffect(topos,3) 


end 
end 

random = math.random(1,15) 

if getPlayerLevel(cid) >= 8 then 

if item2.itemid == 2871 and random == 1 then 
doTransformItem(item2.uid,2872) 
doPlayerAddItem(cid,5878,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 2871 and random >= 2 then
doTransformItem(item2.uid,2872) 
doSendMagicEffect(topos,3) 


end 
end 

random = math.random(1,15) 

if getPlayerLevel(cid) >= 8 then 

if item2.itemid == 2866 and random == 1 then 
doTransformItem(item2.uid,2867) 
doPlayerAddItem(cid,5878,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 2866 and random >= 2 then
doTransformItem(item2.uid,2867) 
doSendMagicEffect(topos,3)  

end 
end 

random = math.random(1,15) 

if getPlayerLevel(cid) >= 8 then 

if item2.itemid == 4256 and random == 1 then 
doTransformItem(item2.uid,4257) 
doPlayerAddItem(cid,5876,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 4256 and random >= 2 then 
doTransformItem(item2.uid,4257) 
doSendMagicEffect(topos,3) 


end 
end 

random = math.random(1,15) 

if getPlayerLevel(cid) >= 8 then 

if item2.itemid == 4259 and random == 1 then 
doTransformItem(item2.uid,4260) 
doPlayerAddItem(cid,5876,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 4259 and random >= 2 then 
doTransformItem(item2.uid,4260) 
doSendMagicEffect(topos,3)  

end 
end 

random = math.random(1,15) 

if getPlayerLevel(cid) >= 8 then 

if item2.itemid == 4262 and random == 1 then 
doTransformItem(item2.uid,4263) 
doPlayerAddItem(cid,5876,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 4262 and random >= 2 then 
doTransformItem(item2.uid,4263) 
doSendMagicEffect(topos,3) 


end 
end 

random = math.random(1,15) 

if getPlayerLevel(cid) >= 8 then 

if item2.itemid == 2931 and random == 1 then 
doTransformItem(item2.uid,2932) 
doPlayerAddItem(cid,5893,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 2931 and random >= 2 then 
doTransformItem(item2.uid,2932) 
doSendMagicEffect(topos,3)  

end 
end 

random = math.random(1,15) 

if getPlayerLevel(cid) >= 8 then 

if item2.itemid == 3031 and random == 1 then 
doTransformItem(item2.uid,3032) 
doPlayerAddItem(cid,5925,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 3031 and random >= 2 then 
doTransformItem(item2.uid,3032) 
doSendMagicEffect(topos,3)  

end 
end 
return 1 
end

 

 

@tibiaa4e

 

XD agente post +- ao mesmo tempo. o0

Da pra facilitar e deixar menor o seu codigo:

 

 

function onUse(cid, item, frompos, item2, topos) 

if item2.itemid == 0 then 
return 0 
end 

random = math.random(1,10) 

if item2.itemid == 2916 and random == 1 then 
doTransformItem(item2.uid,2917) 
doPlayerAddItem(cid,5906,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 2916 and random >= 2 then
doTransformItem(item2.uid,2917) 
doSendMagicEffect(topos,3) 
end

random = math.random(1,10) 
if item2.itemid == 2956 and random == 1 then 
doTransformItem(item2.uid,2957) 
doPlayerAddItem(cid,5905,1) 
doSendMagicEffect(topos,14) 

elseif item2.itemid == 2956 and random >= 2 then 
doTransformItem(item2.uid,2957) 
doSendMagicEffect(topos,3) 
end 
return 1 
end

 

 

random >= 2 then é Maior ou Igual a 2, ou seja tudo que for maior que 2 ou 2 irá ser erado, para almentar a chance é só mudar o random(1,15)

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

ta grande pq o random ta no config.lua

Eu nem fiz esse tipo copiei de uma obsidia knife e mudei os ids

Eu tinha q fazer umas 15 actions em1 5 minutos :S

qdo o zorzin ot foi lançado

 

flws

Link para o comentário
Compartilhar em outros sites

  • 4 weeks later...

como aumento as chances de cair os addons itens qdo se usa a obsiand knife e blessed wooden stake?

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

Essa script faz oq?

Sempre quiz saber a funçao da Obsidian Knif e da Blessed Wooden Stake!

 

Sempre vejo tutorias desses! Pois jah tem uns 2 ou 3 tutorias que eu jah q fala nessa script! Mas nunca descobri a função dessas scripts!

 

 

Obs : Topico Maul organizado, alem de ja ter essa script em outros topicos ta muito maul organizado!

Link para o comentário
Compartilhar em outros sites

Nussa, ta grande mesmo.

As scripts funcionam mesmo que eu acabei de testa...tá bem legal, parabéns.

Flws

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

  • 3 weeks later...
×
×
  • Criar Novo...