Bem eu estava vendo os outros post disso e eu não consigui daquele jeitos, dai eu baixei o aries e vou postar aqui os 2 codes funcionando perfeitamente!
Eu fiz isso pra quem usa outro mapa e necessita disso....
Antes me mais nada vá na pasta data/actions/script/ "copia algum arquivo e cola abre e remove tudo que tem dentro e poem esses 2" OBS:1 para cada script...
OBSIDIAN KNIFE:
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 random == 1 then
doTransformItem(item2.uid,item2.itemid+1)
doSendMagicEffect(topos,13)
if item2.itemid == 2881 then
doPlayerAddItem(cid,5948,1)
elseif item2.itemid == 2830 then
doPlayerAddItem(cid,5878,1)
elseif item2.itemid == 2866 then
doPlayerAddItem(cid,5878,1)
elseif item2.itemid == 2871 then
doPlayerAddItem(cid,5878,1)
elseif item2.itemid == 2876 then
doPlayerAddItem(cid,5878,1)
elseif item2.itemid == 2931 then
doPlayerAddItem(cid,5893,1)
elseif item2.itemid == 3031 then
doPlayerAddItem(cid,5925,1)
elseif item2.itemid == 3104 then
doPlayerAddItem(cid,5877,1)
elseif item2.itemid == 4256 then
doPlayerAddItem(cid,5876,1)
elseif item2.itemid == 4259 then
doPlayerAddItem(cid,5876,1)
elseif item2.itemid == 4262 then
doPlayerAddItem(cid,5876,1)
end
elseif random > 1 then
if item2.itemid == 2881 or item2.itemid == 2830 or item2.itemid == 2866 or item2.itemid == 2871 or item2.itemid == 2876 or item2.itemid == 2931 or item2.itemid == 3031 or item2.itemid == 3104 or item2.itemid == 4256 or item2.itemid == 4259 or item2.itemid == 4262 then
doTransformItem(item2.uid,item2.itemid+1)
doSendMagicEffect(topos,2)
end
end
end
return 1
end
BLESSED WOODEN STAKE:
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 random == 1 then
if item2.itemid == 2916 then
doTransformItem(item2.uid,item2.itemid+1)
doPlayerAddItem(cid,5906,1)
doSendMagicEffect(topos,13)
elseif item2.itemid == 2956 then
doTransformItem(item2.uid,item2.itemid+1)
doPlayerAddItem(cid,5905,1)
doSendMagicEffect(topos,13)
end
elseif random > 1 then
if item2.itemid == 2916 then
doTransformItem(item2.uid,item2.itemid+1)
doSendMagicEffect(topos,2)
elseif item2.itemid == 2956 then
doTransformItem(item2.uid,item2.itemid+1)
doSendMagicEffect(topos,2)
end
end
end
return 1
end
Depois de ter feito isso vá data/actions/actions.xml abre como bloco de notas
e adiciona esses 2:
<action itemid="5942" script="blessed wooden stake.lua"/><action itemid="5908" script="obsidian knife.lua"/>
Feito isso agora abra o ot e teste