• 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!

TFS 1.X+ Flying mount system unable to move

Zombiegod

Active Member
Joined
Oct 22, 2009
Messages
198
Solutions
1
Reaction score
25
So i am using TFS 1.3, i have everything in place and working.

I can go up and down, but can't move around. How do i enable movement? I would assume its adding layer of tiles around me, however idk how to do that.
 
Is there a possible way to fix this, and make it so they can move diagonal and faster?

I know this part of the code

Lua:
function Position:createFlyFloor()
    local toTile = Tile(self)
    if not toTile or not toTile:getItems() or not toTile:getGround() then
        doAreaCombatHealth(0, 0, self, 0, 0, 0, CONST_ME_NONE)
        Game.createItem(460, 1, self)
    end
end

Controls making the floor

and this part in the creaturescripts controls removing it

Lua:
function onMove(player, fromPosition, toPosition)
    if PvpRestrictions:lower() == "high" and player:isPzLocked() then
        return true
    end

    if player:isFlying() then
        local fromTile = Tile(fromPosition)
        local fromItem = fromTile:getItemById(460)
        if fromItem then
            fromItem:remove()
        end
        toPosition:createFlyFloor()
    end
    return true
end

However i am not fully sure how to adjust it so that i can make bigger floors (that also remove themself)
 
Back
Top