MA
pedido

Ajuda Action FlashKunai

Por matheus3254, 01 de set. de 2013 em Scripts

action data ajuda script
resolvido
tibia
script
otserv
5
811
matheus3254M
01 de setembro de 2013 às 20:07

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

01 de setembro de 2013 às 20:08

Entrar nas houses?,ai poderão entrar nas houses dos outros

04 de setembro de 2013 às 23:12

testa ai ^^

 

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 getTileHouseInfo(getCreaturePosition(cid)) then
return doPlayerSendCancel(cid, "You can't use inside houses.")
end
if getTileHouseInfo(topos) then
return doPlayerSendCancel(cid, "You can't enter.")
end
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

Editado Setembro 5 por craigmabbit

OmegaO
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...
OmegaO
31 de outubro de 2013 às 17:18

Tópico movido para a seção de dúvidas e pedidos resolvidos.