Ir para conteúdo

Posts Recomendados

Aew galera!

 

Tenhu um script de FLy só que porem qria por para poder usa ele somente em pz!

 

Se alguem puder ajudar aew!

 

;D

 

Vlw's

 

Script:

 

 

-- !fly by Forcera --

-- Ideia by TheGODMaX --

function onSay(cid, words, param, channel)

 

flypos = getCreaturePosition(cid)

npos = {x=flypos.x, y=flypos.y, z=flypos.z - 6}

pos = getCreaturePosition(cid)

flyoutfit = {lookType = 239, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}

 

if pos.z == 6 then

if doTeleportThing(cid, npos) then

doSendMagicEffect(npos, 14)

doSetCreatureOutfit(cid, flyoutfit, -1)

else

return 0

end

end

return TRUE

end

 

 

 

 

Tem o outro script que é para voltar se precisar dele so pedir!

mdr.gif

Link para o comentário
https://xtibia.com/forum/topic/181585-pedido-arrumando-fly/
Compartilhar em outros sites

-- !fly by Forcera --
-- Ideia by TheGODMaX --
function onSay(cid, words, param, channel)

if (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then
   doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"You should be in the protection zone for use.")
return TRUE
end

flypos = getCreaturePosition(cid)
npos = {x=flypos.x, y=flypos.y, z=flypos.z - 6}
pos = getCreaturePosition(cid)
flyoutfit = {lookType = 239, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}

if pos.z == 6 then
if doTeleportThing(cid, npos) then
doSendMagicEffect(npos, 14)
doSetCreatureOutfit(cid, flyoutfit, -1)
else
return 0
end
end
return TRUE
end

Link para o comentário
https://xtibia.com/forum/topic/181585-pedido-arrumando-fly/#findComment-1208613
Compartilhar em outros sites

×
×
  • Criar Novo...