Ir para conteúdo

Obsidian Knife


pedroddcunha

Posts Recomendados

Ae

Me baseiei num topic aqui de uma cara que fez 7.6

Adicione isso em actions.xml

 

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

 

Adicione isso na pasta data > actions > scrips com o nome obsidian knife.lua

 

--Action By BrunuxXfunction onUse(cid, item, frompos, item2, topos)if item2.itemid == 0 thenreturn 0endrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2881 and random == 1 thendoTransformItem(item2.uid,2882)doPlayerAddItem(cid,5948,1)elseif item2.itemid == 2881 and random == 2 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 3 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 4 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 5 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 6 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 7 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 8 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 9 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 10 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 11 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 12 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 13 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 14 thendoTransformItem(item2.uid,2882)elseif item2.itemid == 2881 and random == 15 thendoTransformItem(item2.uid,2882)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 3104 and random == 1 thendoTransformItem(item2.uid,3105)doPlayerAddItem(cid,5877,1)elseif item2.itemid == 3104 and random == 2 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 3 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 4 thendoTransformItem(item2.uid,2845)elseif item2.itemid == 3104 and random == 5 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 6 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 7 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 8 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 9 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 10 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 11 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 12 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 13 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 14 thendoTransformItem(item2.uid,3105)elseif item2.itemid == 3104 and random == 15 thendoTransformItem(item2.uid,3105)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2830 and random == 1 thendoTransformItem(item2.uid,2831)doPlayerAddItem(cid,5878,1)elseif item2.itemid == 2830 and random == 2 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 3 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 4 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 5 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 6 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 7 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 8 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 9 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 10 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 12 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 13 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 14 thendoTransformItem(item2.uid,2831)elseif item2.itemid == 2830 and random == 15 thendoTransformItem(item2.uid,2831)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2876 and random == 1 thendoTransformItem(item2.uid,2877)doPlayerAddItem(cid,5878,1)elseif item2.itemid == 2876 and random == 2 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 3 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 4 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 5 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 6 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 7 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 8 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 9 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 10 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 11 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 12 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 13 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 14 thendoTransformItem(item2.uid,2877)elseif item2.itemid == 2876 and random == 15 thendoTransformItem(item2.uid,2877)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2871 and random == 1 thendoTransformItem(item2.uid,2872)doPlayerAddItem(cid,5878,1)elseif item2.itemid == 2871 and random == 2 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 3 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 4 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 5 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 6 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 7 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 8 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 9 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 10 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 11 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 12 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 13 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 14 thendoTransformItem(item2.uid,2872)elseif item2.itemid == 2871 and random == 15 thendoTransformItem(item2.uid,2872)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2866 and random == 1 thendoTransformItem(item2.uid,2867)doPlayerAddItem(cid,5878,1)elseif item2.itemid == 2866 and random == 2 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 3 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 4 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 5 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 6 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 7 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 8 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 9 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 10 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 11 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 12 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 13 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 14 thendoTransformItem(item2.uid,2867)elseif item2.itemid == 2866 and random == 15 thendoTransformItem(item2.uid,2867)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 4256 and random == 1 thendoTransformItem(item2.uid,4257)doPlayerAddItem(cid,5876,1)elseif item2.itemid == 4256 and random == 2 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 3 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 4 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 5 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 6 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 7 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 8 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 9 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 10 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 11 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 12 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 13 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 14 thendoTransformItem(item2.uid,4257)elseif item2.itemid == 4256 and random == 15 thendoTransformItem(item2.uid,4257)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 4259 and random == 1 thendoTransformItem(item2.uid,4260)doPlayerAddItem(cid,5876,1)elseif item2.itemid == 4259 and random == 2 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 3 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 4 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 5 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 6 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 7 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 8 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 9 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 10 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 11 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 12 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 13 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 14 thendoTransformItem(item2.uid,4260)elseif item2.itemid == 4259 and random == 15 thendoTransformItem(item2.uid,4260)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 4262 and random == 1 thendoTransformItem(item2.uid,4263)doPlayerAddItem(cid,5876,1)elseif item2.itemid == 4262 and random == 2 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 3 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 4 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 5 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 6 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 7 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 8 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 9 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 10 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 11 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 12 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 13 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 14 thendoTransformItem(item2.uid,4263)elseif item2.itemid == 4262 and random == 15 thendoTransformItem(item2.uid,4263)endendreturn 1end

 

Quero arruma de todos os bixos que dá para usar a Obsidian Knife

Minotaur.. Lizard..

Funfando, eu mesmo testei

Espero que se divirtam

Fui

Edit ------------

Arrumei, estão todos bixos funcionando

Minotaur's.. Lizard's.. e Dragon's e Dragon Lord's

Link para o comentário
Compartilhar em outros sites

  • 3 weeks later...

eu percebi q faltava o behemoth e o bone beast

ai editei e tbm essa ta 3 chanches ao inves de 1 pq com uma de vez em quando buga...

--Action By BrunuxX edit by ta4e

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)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

doPlayerAddItem(cid,5948,1)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

doPlayerAddItem(cid,5948,1)

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

doTransformItem(item2.uid,2882)

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

doTransformItem(item2.uid,2882)

end

end

random = math.random(1,15)

if getPlayerLevel(cid) >= 8 then

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

doTransformItem(item2.uid,3105)

doPlayerAddItem(cid,5877,1)

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

doTransformItem(item2.uid,3105)

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

doTransformItem(item2.uid,3105)

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

doTransformItem(item2.uid,2845)

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

doTransformItem(item2.uid,3105)

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

doTransformItem(item2.uid,3105)

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

doTransformItem(item2.uid,3105)

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

doTransformItem(item2.uid,3105)

doPlayerAddItem(cid,5877,1)

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

doTransformItem(item2.uid,3105)

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

doTransformItem(item2.uid,3105)

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

doTransformItem(item2.uid,3105)

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

doTransformItem(item2.uid,3105)

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

doTransformItem(item2.uid,3105)

doPlayerAddItem(cid,5877,1)

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

doTransformItem(item2.uid,3105)

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

doTransformItem(item2.uid,3105)

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)

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

doTransformItem(item2.uid,2831)

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

doTransformItem(item2.uid,2831)

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

doTransformItem(item2.uid,2831)

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

doTransformItem(item2.uid,2831)

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

doTransformItem(item2.uid,2831)

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

doTransformItem(item2.uid,2831)

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

doTransformItem(item2.uid,2831)

doPlayerAddItem(cid,5878,1)

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

doTransformItem(item2.uid,2831)

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

doTransformItem(item2.uid,2831)

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

doTransformItem(item2.uid,2831)

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

doTransformItem(item2.uid,2831)

doPlayerAddItem(cid,5878,1)

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

doTransformItem(item2.uid,2831)

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

doTransformItem(item2.uid,2831)

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)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

doPlayerAddItem(cid,5878,1)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

doPlayerAddItem(cid,5878,1)

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

doTransformItem(item2.uid,2877)

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

doTransformItem(item2.uid,2877)

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)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

doPlayerAddItem(cid,5878,1)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

doPlayerAddItem(cid,5878,1)

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

doTransformItem(item2.uid,2872)

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

doTransformItem(item2.uid,2872)

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)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

doPlayerAddItem(cid,5878,1)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

doPlayerAddItem(cid,5878,1)

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

doTransformItem(item2.uid,2867)

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

doTransformItem(item2.uid,2867)

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)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

doPlayerAddItem(cid,5876,1)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

doPlayerAddItem(cid,5876,1)

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

doTransformItem(item2.uid,4257)

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

doTransformItem(item2.uid,4257)

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)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

doPlayerAddItem(cid,5876,1)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

doPlayerAddItem(cid,5876,1)

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

doTransformItem(item2.uid,4260)

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

doTransformItem(item2.uid,4260)

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)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

doPlayerAddItem(cid,5876,1)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

doPlayerAddItem(cid,5876,1)

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

doTransformItem(item2.uid,4263)

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

doTransformItem(item2.uid,4263)

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)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

doPlayerAddItem(cid,5893,1)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

doPlayerAddItem(cid,5893,1)

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

doTransformItem(item2.uid,2932)

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

doTransformItem(item2.uid,2932)

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)

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

doTransformItem(item2.uid,3032)

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

doTransformItem(item2.uid,3032)

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

doTransformItem(item2.uid,3032)

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

doTransformItem(item2.uid,3032)

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

doTransformItem(item2.uid,3032)

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

doTransformItem(item2.uid,3032)

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

doTransformItem(item2.uid,3032)

doPlayerAddItem(cid,5925,1)

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

doTransformItem(item2.uid,3032)

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

doTransformItem(item2.uid,3023)

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

doTransformItem(item2.uid,3032)

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

doTransformItem(item2.uid,3032)

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

doTransformItem(item2.uid,3032)

doPlayerAddItem(cid,5925,1)

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

doTransformItem(item2.uid,3032)

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

doTransformItem(item2.uid,3032)

end

end

return 1

end

Link para o comentário
Compartilhar em outros sites

Melhoramentos =D

obsidian..

 

--Action By BrunuxX modificado por Cunha para 7.8 ( Re-editado/Simplificado por Pedokas )--Não Remover os Creditos!function onUse(cid, item, frompos, item2, topos)if item2.itemid == 0 thenreturn 0endrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2881 and random == 1 thendoTransformItem(item2.uid,2882)doPlayerAddItem(cid,5948,1)doSendMagicEffect(topos,13)elseif item2.itemid == 2881 and random > 1 thendoTransformItem(item2.uid,2882)doSendMagicEffect(topos,2)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 3104 and random == 1 thendoTransformItem(item2.uid,3105)doPlayerAddItem(cid,5877,1)doSendMagicEffect(topos,13)elseif item2.itemid == 3104 and random > 1 thendoTransformItem(item2.uid,3105)doSendMagicEffect(topos,2)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2830 and random == 1 thendoTransformItem(item2.uid,2831)doPlayerAddItem(cid,5878,1)doSendMagicEffect(topos,13)elseif item2.itemid == 2830 and random > 1 thendoTransformItem(item2.uid,2831)doSendMagicEffect(topos,2)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2876 and random == 1 thendoTransformItem(item2.uid,2877)doPlayerAddItem(cid,5878,1)doSendMagicEffect(topos,13)elseif item2.itemid == 2876 and random > 1 thendoTransformItem(item2.uid,2877)doSendMagicEffect(topos,2)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2871 and random == 1 thendoTransformItem(item2.uid,2872)doPlayerAddItem(cid,5878,1)doSendMagicEffect(topos,13)elseif item2.itemid == 2871 and random > 1 thendoTransformItem(item2.uid,2872)doSendMagicEffect(topos,2)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2866 and random == 1 thendoTransformItem(item2.uid,2867)doPlayerAddItem(cid,5878,1)doSendMagicEffect(topos,13)elseif item2.itemid == 2866 and random > 1 thendoTransformItem(item2.uid,2867)doSendMagicEffect(topos,2)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 4256 and random == 1 thendoTransformItem(item2.uid,4257)doPlayerAddItem(cid,5876,1)doSendMagicEffect(topos,13)elseif item2.itemid == 4256 and random > 1 thendoTransformItem(item2.uid,4257)doSendMagicEffect(topos,2)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 4259 and random == 1 thendoTransformItem(item2.uid,4260)doPlayerAddItem(cid,5876,1)doSendMagicEffect(topos,13)elseif item2.itemid == 4259 and random > 1 thendoTransformItem(item2.uid,4260)doSendMagicEffect(topos,2)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 4262 and random == 1 thendoTransformItem(item2.uid,4263)doPlayerAddItem(cid,5876,1)doSendMagicEffect(topos,13)elseif item2.itemid == 4262 and random > 1 thendoTransformItem(item2.uid,4263)doSendMagicEffect(topos,2)endendreturn 1end-------------------------------------------------------------------------------------------------------------

 

blessed wooden stake..

 

--Action By BrunuxX modificado por Cunha para 7.8 ( Re-editado/Simplificado por Pedokas )--Não Remover os Creditos!function onUse(cid, item, frompos, item2, topos)if item2.itemid == 0 thenreturn 0endrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2916 and random == 1 thendoTransformItem(item2.uid,2917)doPlayerAddItem(cid,5906,1)doSendMagicEffect(topos,13)elseif item2.itemid == 2916 and random > 1 thendoTransformItem(item2.uid,2917)doSendMagicEffect(topos,2)endendrandom = math.random(1,15)if getPlayerLevel(cid) >= 8 thenif item2.itemid == 2956 and random == 1 thendoTransformItem(item2.uid,2957)doPlayerAddItem(cid,5905,1)doSendMagicEffect(topos,13)elseif item2.itemid == 2956 and random > 1 thendoTransformItem(item2.uid,2957)doSendMagicEffect(topos,2)endendreturn 1end--------------------------------------------------------------------------------------------------------

 

espero ter ajudado :p

Link para o comentário
Compartilhar em outros sites

  • 3 weeks later...
  • 6 months later...
  • 1 month later...

Cara, eu tava analisando um monte de action aqui do pessoal, e tipo, tua action tem 500 metros...

Eu sou um "actioner" aposentado, faz tempo que não mexo, mas até onde eu me lembre, daria pra ti fazer assim:

--Action By BrunuxX
function onUse(cid, item, frompos, item2, topos)

if item2.itemid == 0 then
return 0
end


random = math.random(1,15)

if getPlayerLevel(cid) >= 8 and randem == 1 then

if item2.itemid == 2881 then
doTransformItem(item2.uid,2882)
doPlayerAddItem(cid,5948,1)

if item2.itemid == 3104 then
doTransformItem(item2.uid,3105)
doPlayerAddItem(cid,5877,1)

if item2.itemid == 2830 then
doTransformItem(item2.uid,2831)
doPlayerAddItem(cid,5878,1)

if item2.itemid == 2876 then
doTransformItem(item2.uid,2877)
doPlayerAddItem(cid,5878,1)

if item2.itemid == 2871 then
doTransformItem(item2.uid,2872)
doPlayerAddItem(cid,5878,1)

if item2.itemid == 2866 then
doTransformItem(item2.uid,2867)
doPlayerAddItem(cid,5878,1)

if item2.itemid == 4256 then
doTransformItem(item2.uid,4257)
doPlayerAddItem(cid,5876,1)

if item2.itemid == 4259 then
doTransformItem(item2.uid,4260)
doPlayerAddItem(cid,5876,1)

if item2.itemid == 4262 then
doTransformItem(item2.uid,4263)
doPlayerAddItem(cid,5876,1)

elseif item2.itemid == 2881 or item2.itemid == 3104 or item2.itemid == 2830 or item2.itemid == 2876 or item2.itemid == 2871 or item2.itemid == 2866 or item2.itemid == 4256 or item2.itemid == 4259 or item2.itemid == 4262 and random >= 2 then
doTransformItem(item2.uid,item2.uid+1)

end
end

return 1
end

 

Beeeeem mais curto e mais simples. Eu não testei, por isso não posso afirmar se está 100% certo. Se falhar alguma coisa tentem mudar ali no final

 

elseif item2.itemid == 2881 or item2.itemid == 3104 or item2.itemid == 2830 or item2.itemid == 2876 or item2.itemid == 2871 or item2.itemid == 2866 or item2.itemid == 4256 or item2.itemid == 4259 or item2.itemid == 4262 and random >= 2 then
doTransformItem(item2.uid,item2.itemid+1)

 

só recortar e colar isso emcima da parte parecida com esta.

Se mesmo assim o problema persisitir, postem aqui que eu checarei mais tarde.

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
×
×
  • Criar Novo...