• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

RevScripts moviment

alcapone

Member
Joined
Jan 13, 2021
Messages
235
Reaction score
17
The player in the red arrow position will not be able to pass down the player who is in the green arrow position will be able to pass up
 

Attachments

Solution
Lua:
local actionId = 5000
local moveevent = MoveEvent()

function moveevent.onStepIn(creature, item, position, fromPosition)
    if fromPosition.y == item:getPosition().y - 1 then
        creature:teleportTo(fromPosition, true)
        return false
    end

    position.y = position.y - 1
    creature:teleportTo(position, true)
    return true
end

moveevent:type("stepin")
moveevent:aid(actionId)
moveevent:register()

cabrera2608

New Member
Joined
Dec 21, 2018
Messages
110
Solutions
1
Reaction score
4
Lua:
local actionId = 5000
local moveevent = MoveEvent()

function moveevent.onStepIn(creature, item, position, fromPosition)
    if fromPosition.y == item:getPosition().y - 1 then
        creature:teleportTo(fromPosition, true)
        return false
    end

    position.y = position.y - 1
    creature:teleportTo(position, true)
    return true
end

moveevent:type("stepin")
moveevent:aid(actionId)
moveevent:register()
 
Solution
Top