Obsidian Knif E Blessed Wooden Stake 100% Tibiarl

Cassio Silvio
em Actions e Talkactions

Cassio Silvio

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 19/10/06Posts: 4

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

hugobululu

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 08/12/06Posts: 44

pow ta mal organizado mais vlw vai ajuda o pessoal. flw

METAS:
1 posts[x]
10 posts[x]
30 post[x]
40 posts [x]
50 posts[x]
80 posts[x]
100 posts[x]
caçador[ ]


Qual personagem do Sonic você é?


Ultima sing

fikou roox ^^



te ajudei? gosta de mim? ou algo parecido? inton use\/


sou fan de:

Cassio Silvio

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 19/10/06Posts: 4

é pq o script é grande mesmo, pois se trata de um monte de monstros... mais valew mesmo assim...

tibiaa4e

Ex amante de Tibia
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 18/12/05Posts: 912Gênero: MasculinoChar no Tibia: Kohzete

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

Aposentado de OTserver e Tibia

Meus melhores tutoriais
Enciclopédia Pasta Data
Tutorial de quest

Yosef002

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 21/10/05Posts: 48Char no Tibia: Angel Yosef

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)

Atenciosamente,

Yuminir

www.RADBR.com

Servidor dedicado de 100MBPS

Mapa própio.

Jogabilidade.

Vocações balanceadas.

Rate 50x totalmente apropriada para o server.

Historias:

http://www.xtibia.com/forum/Parvndia-Histo...930#entry599930 <- Parvândia

http://www.xtibia.com/forum/index.php?showtopic=57539 <- As orbs

Sign2.gif

barfan.gif

familialostsignzz3.jpg

tibiaa4e

Ex amante de Tibia
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 18/12/05Posts: 912Gênero: MasculinoChar no Tibia: Kohzete

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

Aposentado de OTserver e Tibia

Meus melhores tutoriais
Enciclopédia Pasta Data
Tutorial de quest

Slayer Silver

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 10/03/07Posts: 5

Mesmo sendo muito grande, é muito útil para quem quer ter um sistema de addon = ao tibia rl...

 

Vlw, trazendo isso :]]

Atenciosamente,
Slayer.Silver


~~My Signature~~


~~Equipe~~
VillageTeam 7.92

Arcavier

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 24/10/06Posts: 16

Gostei, so q eu uso o do modo do Yosef



Você é meu Fan ou gosta do que eu faço? Use:

aeralorantrala

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 10/03/07Posts: 1

valew ai galera pelos elogios e as criticas, ainda sou novo no "ramo"....

catito

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 04/04/07Posts: 1

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

Gegiskan

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 02/02/07Posts: 89

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!

(¯`·._.·[]·._.·´¯)

GOD Zé

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 03/12/06Posts: 255

Bom,Bom ^^ veiu mt útil realmente xD~ flws ajudo pra kramba cya!

QUOTE
Aí GaLeRa CoM Um BrAçO Só ( _o/ _o/ _o/ ) AgOrAaa cOm O OuTrO ( \o_ \o_ \o_ ) AgOraaa COm Os DoiS ( \o/ \o/ \o/ ) VaMo Lá!! MãO Na CaBeÇa ( <o> <o> <o> ) PrA CimA (|o| |o| |o|) AGorA NenhUm DoS doiS ( _o_ _o_ _o_ ) IsSo... aGoRa QuErU VeR GeRaL PrUm LaDo ( o/ o/ o/ ) GeRaL PrO OuTrO ( \o \o \o ) BaTeNu PaLmInHa ( /o\ \o/ /o\ ) AgOrA AnImAe!¡!¡!

Universal Storm Ats União :-)

~*~~*~
Use minha fan bar
~*~~*~

Bl4Nk

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 11/02/07Posts: 126

Nussa, ta grande mesmo.

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

Flws

Giftfodadomalvadao


.Gifts:
[*] [*] [*] [*] [*] [*] [*] [*] [*] [*] [*]

.FanBar:



Daironx

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 27/04/07Posts: 8

Grandinho mais mto bom =D

 

 

mto util pra rpg ;)

 

 

=)