Abra action/scripts/tools/pick.lua e substitua o que há lá dentro por isso:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local itemGround = getThingFromPos({x = toPosition.x, y = toPosition.y, z = toPosition.z + 1, stackpos = STACKPOS_GROUND})
if(isInArray(SPOTS, itemGround.itemid) and isInArray({354, 355}, itemEx.itemid)) then
doTransformItem(itemEx.uid, 392)
doDecayItem(itemEx.uid)
doSendMagicEffect(toPosition, CONST_ME_POFF)
return true
end
if(itemEx.itemid == 7200) then
doTransformItem(itemEx.uid, 7236)
doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
return true
end
if(itemEx.actionid == ACTIONID) then
if (getPlayerPosition(cid).x = POS 1 and getPlayerPosition(cid).y = POS 1 and getPlayerPosition(cid).z = POS 1) then
doTeleportThing(cid, {x = POS 2, y = POS 2, z = POS 2})
doSendMagicEffect({x = POS DA PEDRA, y = POS DA PEDRA, z = POS DA PEDRA}, CONST_ME_BLOCKHIT)
elseif (getPlayerPosition(cid).x = POS 2 and getPlayerPosition(cid).y = POS 2 and getPlayerPosition(cid).z = POS 2) then
doTeleportThing(cid, {x = POS 1, y = POS 1, z = POS 1})
doSendMagicEffect({x = POS DA PEDRA, y = POS DA PEDRA, z = POS DA PEDRA}, CONST_ME_BLOCKHIT)
end
return true
end
return false
end



info
Grupo: Visconde
Registrado: 28/06/11
Posts: 356
Reputação: +26
Char no Tibia: Akor Rysea
Olá galera do XT meus amores na paz?
TFS: 1.2
V: 10.90
Gostaria de pedir um script de teleport, ele faz o seguinte:
> Você está em 1 lugar que só passa 1 jogador por vez e tem uma pedra na frente impedindo assim a passagem do mesmo, você usaria uma PICK na pedra e o jogador seria teleportado para o outro lado.
> Funciona da mesma forma se o jogador voltar por esse caminho.
*Apenas isso, espero que me ajudem '-'
Editado Março 29 por julhinhokullitz