Can someone make this flydown script that, IF i am in tha air (dont want to post the flyup.lua xd) ah anyway, ye if i am in the air and then want down, how can i do so, if it is not walkable items under the player then teleport him down, else just send cancel.
-
_Help me make that if it is a higher floor than 7 under you, flydown to that floor:
-
_Help me make that if it is a higher floor than 7 under you, flydown to that floor:
LUA:
function onSay(cid, words, param, channel)
flypos = getCreaturePosition(cid)
poszao = {x=flypos.x, y=flypos.y, z=flypos.z +7}
pos = getCreaturePosition(cid)
local posd = {x = flypos.x, y = flypos.y, z = 7}
if pos.z == 0 and getPlayerStorageValue(cid, 21511) == 1 then
doTeleportThing(cid, poszao)
doRemoveCondition(cid, CONDITION_OUTFIT)
doPlayerSetStorageValue(cid, 21511, -1)
doChangeSpeed(cid, -600)
doSendMagicEffect(poszao, 14)
else
doPlayerSendCancel(cid, "You are not in fly mode.")
end
end