Eu testei 1 milhao de scripts de remoção de pedras por alavanca, mas nenhum pega no meu ot! Será que os comandos de um ot 8.6 são diferentes?
O que "quase funcionou" foi:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=1125, y=926, z=12, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 9991 and item.itemid == 1945 and getgate.itemid == 1304 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 9991 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(1304,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return TRUE
end
Mas ta dando erro. Por favor alguem me mande mais sugestões para esse tipo de script.
Grato
++