-=-*RUBY NO HELMET POR ALAVANCA*-=- xD
em actions.xml add:
CODE
<action uniqueid="6667" script="ancient helmet.lua" />
e agora crie um arquivo chamado ancient helmet.lua e add:
CODE
function onUse(cid, item, frompos, item2, topos)
piece1pos = {x=68, y=142, z=7, stackpos=1}
piece2pos = {x=68, y=144, z=7, stackpos=1}
helmetpos = {x=69, y=143, z=7, stackpos=1}
getpiece1 = getThingfromPos(piece1pos)
getpiece2 = getThingfromPos(piece2pos)
if item.uid == 6667 and item.itemid == 2711 and getpiece1.itemid == 3167 and getpiece2.itemid == 2974 then
doRemoveItem(getpiece1.uid,1)
doRemoveItem(getpiece2.uid,1)
doCreateItem(3168,1,helmetpos)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 6667 and item.itemid == 2712 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendTextMessage(cid,22,"Sorry, not possible.")
end
return 1
end
piece1 e piece2 : sao as cordenadas dos itens
helmetpos : eh a cordenada da onde o helmet vai sair
as id's tao configuradas pra 7.5...
Espero ter ajudado!!!