teste ai
local gatepos = {x=9845, y=10284, z=15, stackpos=1}local gatepos = {x=999, y=999, z=9, stackpos=1}
function onUse(cid, item, frompos, item2, topos)
if getThingfromPos(cid) >= gatepos
if getThingfromPos(cid) >= gatepos2
if item.itemid == 1945 and getgate.itemid == 1355 then
doRemoveItem(getgate.uid, 1)
doTransformItem(item.uid, item.itemid+1)
elseif item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(1355, 1, gatepos)
doTransformItem(item.uid, item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
não entendi muito seu pedido mas esta ai
espero ter ajudado
ate




info
Grupo: Artesão
Registrado: 01/05/07
Posts: 145
Reputação: +17
VEJAM ESTE SCRIPT ABAIXO.
TERIA COMO DUAS POSIÇÕES SEREM CRIADAS E APAGADAS? SENDO QUE O GATE, POR EXEMPLO, UM PORTÃO VOCÊ CLICA NA ALAVANCA E ELE ABRE, SENDO QUE NECESISTA-SE DE 2 SQM, E ESTE SCRIPT ACIMA É SOMENTE 1