- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Metamorfose Arrow e Metamorfose Shield! By Alemaooxd
AL
action
Metamorfose Arrow e Metamorfose Shield! By Alemaooxd
Por Alemaooxd, 26 de mai. de 2013 em Actions e Talkactions
script
1
541
Por Alemaooxd, 26 de mai. de 2013 em Actions e Talkactions
info
Grupo: Campones
Registrado: 02/03/13
Posts: 40
Reputação: +8
Char no Tibia: [ADM] BBSZ
O sistema é bem simples, você da USE na arrow ou no shield e ele muda de elemento!
METAMORFOSE ARROW
1º Passo: Vá em data/actions/actions.xml e adicione essas tags:
2º Passo: Vá até data/actions/scripts crie um arquivo .lua chamado metaarrow.lua e bote isso dentro dele:
-- By: Alemaooxd
local ITEM_IDS = {
[7850] = 7839,
[7838] = 7839,
[7839] = 7840,
[7840] = 7838,
[7838] = 7850,
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not ITEM_IDS[item.itemid]) then
return false
end
doTransformItem(item.uid, ITEM_IDS[item.itemid])
doDecayItem(item.uid)
return true
end
Pronto sua Arrow está pronta...
METAMORFOSE SHIELD
1º Passo: Vá em data/actions/actions.xml e adicione está tag dentro:
2º Passo: Vá até data/actions/scripts crie um arquivo .lua chamado metashield.lua e bote isso dentro dele:
-- By: Alemaooxd
local ITEM_IDS = {
[8905] = 8906,
[8907] = 8906,
[8906] = 8909,
[8909] = 8907,
[8907] = 8908,
[8908] = 8905,
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not ITEM_IDS[item.itemid]) then
return false
end
doTransformItem(item.uid, ITEM_IDS[item.itemid])
doDecayItem(item.uid)
return true
end
Créditos:
Alemaooxd
davialves
Editado Maio 26 por Alemaooxd