Entrar nas houses?,ai poderão entrar nas houses dos outros
MA
pedido
Ajuda Action FlashKunai
Por matheus3254, 01 de set. de 2013 em Scripts
action data ajuda script
resolvido
tibia
script
otserv
5
813
info
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino

01 de setembro de 2013 às 20:08
info
Grupo: Barão
Registrado: 05/10/12
Posts: 245
Reputação: +36

04 de setembro de 2013 às 23:12
testa ai ^^
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = fromPositionlocal aqui = getPlayerPosition(cid)local vocs = {300, 301, 302, 303, 304, 305, 306, 307, 308}local agua = {4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}if getTileHouseInfo(getCreaturePosition(cid)) thenreturn doPlayerSendCancel(cid, "You can't use inside houses.")endif getTileHouseInfo(topos) thenreturn doPlayerSendCancel(cid, "You can't enter.")endif getDistanceBetween(aqui, toPosition) >= 7 thenreturn doPlayerSendTextMessage(cid, 27, "Esta Muito Longe.")elseif(not(isSightClear(aqui, toPosition, 1))) thenreturn doPlayerSendTextMessage(cid, 27, "Isso E Impossivel.")elseif(getTilePzInfo(aqui)) thenreturn doPlayerSendCancel(cid, "voce nao pode usar quando estiver em protect zone.")elseif(getTilePzInfo(toPosition)) thenreturn doPlayerSendCancel(cid, "voce nao pode entra em protec zone.")elseif(isInArray(agua, itemEx.itemid)) thenreturn doPlayerSendTextMessage(cid, 27, "voce nao pode usar em agua")elseif(not(isInArray(vocs, getPlayerVocation(cid)))) thenreturn doPlayerSendTextMessage(cid, 27, "Desculpe Apenas Vocacao Minato Para Usar.")endif(doTeleportThing(cid, toPosition, false)) thendoSendMagicEffect(pos, 234)doSendMagicEffect(toPosition, 234)return doSendDistanceShoot(pos, toPosition, 35)endreturn doPlayerSendCancel(cid, "Desculpe Nao Foi Possivel.")end
Editado Setembro 5 por craigmabbit
info
Grupo: Marquês
Registrado: 16/06/07
Posts: 1.2k
Reputação: +377
Gênero: Masculino
Char no Tibia: Nenhum

04 de setembro de 2013 às 23:42
Se o de cima não funcionar, testa esse:
function onUse(cid, item, fromPosition, itemEx, toPos)
local pos = fromPosition
local aqui = getPlayerPosition(cid)
local vocs = {300, 301, 302, 303, 304, 305, 306, 307, 308}
local agua = {4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}
if getDistanceBetween(aqui, toPosition) >= 7 then
return doPlayerSendTextMessage(cid, 27, "Esta Muito Longe.")
elseif(not(isSightClear(aqui, toPosition, 1))) then
return doPlayerSendTextMessage(cid, 27, "Isso E Impossivel.")
elseif(getTilePzInfo(aqui)) then
return doPlayerSendCancel(cid, "voce nao pode usar quando estiver em protect zone.")
elseif(getTilePzInfo(toPosition)) then
return doPlayerSendCancel(cid, "voce nao pode entra em protec zone.")
elseif(isInArray(agua, itemEx.itemid)) then
return doPlayerSendTextMessage(cid, 27, "voce nao pode usar em agua")
elseif(not(isInArray(vocs, getPlayerVocation(cid)))) then
return doPlayerSendTextMessage(cid, 27, "Desculpe Apenas Vocacao Minato Para Usar.")
elseif isCreature(getThingFromPos({x=toPos.x, y=toPos.y, z=toPos.z, stackpos=253}.uid) then
return doPlayerSendTextMessage(cid, 27, "Desculpe, mas voce nao pode usar isso em outros jogadores.")
local posi = getClosestFreeTile(cid, toPos, true, false)
elseif not posi or isInArray({pos.x, pos.y}, 0) then
doPlayerSendTextMessage(cid, 27, "Desculpe, nao foi possivel.")
return true
end
if(doTeleportThing(cid, toPosition, false)) then
doSendMagicEffect(pos, 234)
doSendMagicEffect(toPosition, 234)
return doSendDistanceShoot(pos, toPosition, 35)
end
return doPlayerSendCancel(cid, "Desculpe Nao Foi Possivel.")
end
1 mês depois...



info
Grupo: Campones
Registrado: 24/02/13
Posts: 30
Reputação: 0
Char no Tibia: Minato Lolz
EAI GALERA DENOVO AKI EU PREÇISANDO DE UMA AJUDINHA BOM ESSA AKI E A SCRIPT FLASHKUNAI QUE MUITOS CONHEÇEM EU DOU USE NA KUNAI DO MINATO E CLICO EM AUUGM LUGAR E MEU CHAR VAI ATÉ ESSE LUGAR NORMAL MAIS A SCRIPT QUE EU TENHO FIZERAO ELA + TA COM UM BUG BOM ELA NAO ENTRA NAS HOUSES E PZ NORMAL + ELA TA COM UM PROBLEMA
ELA ENTRA DENTRO DOS PLAYERS:
ELA ENTRA NAS PEDRAS E NAS PAREDES
A SCRIPT AKI
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = fromPosition
local aqui = getPlayerPosition(cid)
local vocs = {300, 301, 302, 303, 304, 305, 306, 307, 308}
local agua = {4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}
if getDistanceBetween(aqui, toPosition) >= 7 then
return doPlayerSendTextMessage(cid, 27, "Esta Muito Longe.")
elseif(not(isSightClear(aqui, toPosition, 1))) then
return doPlayerSendTextMessage(cid, 27, "Isso E Impossivel.")
elseif(getTilePzInfo(aqui)) then
return doPlayerSendCancel(cid, "voce nao pode usar quando estiver em protect zone.")
elseif(getTilePzInfo(toPosition)) then
return doPlayerSendCancel(cid, "voce nao pode entra em protec zone.")
elseif(isInArray(agua, itemEx.itemid)) then
return doPlayerSendTextMessage(cid, 27, "voce nao pode usar em agua")
elseif(not(isInArray(vocs, getPlayerVocation(cid)))) then
return doPlayerSendTextMessage(cid, 27, "Desculpe Apenas Vocacao Minato Para Usar.")
end
if(doTeleportThing(cid, toPosition, false)) then
doSendMagicEffect(pos, 234)
doSendMagicEffect(toPosition, 234)
return doSendDistanceShoot(pos, toPosition, 35)
end
return doPlayerSendCancel(cid, "Desculpe Nao Foi Possivel.")
end
PRA FALAR DENOVO ELE E DE NARUTIBIA
obs:
ELE TA ENTRANDO EM PAREDES PLAYERS MONSTROS E PEDRAS E ROCHAS TUDO EU QUERO QUE ELE APENAS
ANDE EM CHAO CHAO NORMAL