Amigo Vou Ter Passar Um Aqui Não Testado Na Sua Versão Mais Tenta ai Qualquer Coisa Não Deixe de postar :
local spotId = {384, 418, 8278, 8592}
local holeId = {
294, 369, 370, 383, 392,
408, 409, 427, 428, 430,
462, 469, 470, 482, 484,
485, 489, 924, 3135, 3136,
7933, 7938, 8170, 8286, 8285,
8284, 8281, 8280, 8279, 8277,
8276, 8323, 8380, 8567, 8585,
8596, 8595, 8249, 8250, 8251,
8252, 8253, 8254, 8255, 8256,
8972, 9606, 9625
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(toPosition.x == CONTAINER_POSITION) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
return true
end
local itemGround = getThingFromPos(toPosition)
if(isInArray(spotId, itemGround.itemid)) then
doTeleportThing(cid, {x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1}, false)
elseif(isInArray(holeId, itemEx.itemid)) then
local hole = getThingFromPos({x = toPosition.x, y = toPosition.y, z = toPosition.z + 1, stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE})
if(hole.itemid > 0) then
doTeleportThing(hole.uid, {x = toPosition.x, y = toPosition.y + 1, z = toPosition.z}, false)
else
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
end
else
return false
end
return true
end








info
Grupo: Campones
Registrado: 27/03/13
Posts: 6
Reputação: 0
Oi, tudo bom? Tudo na paz com vocês?
Bom, eu não sei nem se estou fazendo o pedido no lugar certo, pois tenho na verdade um PEDIDO e uma DÚVIDA ao mesmo tempo.
Acontece que baixei recentemente um ot 8.1 XML (não me xinguem, prefiro XML, eu não mexo em ot desde 2007/2008).
E achar esse ot me deu o maior trabalhão, portanto não queria sair procurando por outros.
Acontece que o ot tem um problema: NÃO DÁ PRA ROPAR. Poisé, nem em escada, nem em buraco, nem na fonte, em lugar nenhum... Nem gente, nem objetos, nem criaturas.
O que eu queria saber era se isso se resolvia simplesmente com actions ou só mesmo na source..
Quem puder me ajudar eu agradeceria muito mesmo.. Vlww!
Editado Março 28 por babarata