• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Fly system help

Mooosie

mistofdeath.com
Premium User
Joined
Aug 2, 2008
Messages
742
Solutions
2
Reaction score
52
Location
Sweden
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:

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
 
Back
Top