Ajuda Action FlashKunai

matheus3254
em Scripts

matheus3254

Nike
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 24/02/13Posts: 30Char 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

SkyDarkyes

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 28/01/13Posts: 1685Gênero: Masculino

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

48EnrrM.png

 

craigmabbit

avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 05/10/12Posts: 245

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

Omega

o/
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 17/06/07Posts: 1165Gênero: MasculinoChar no Tibia: Nenhum

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