mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 09:39:20 +02:00
17 lines
371 B
Lua
17 lines
371 B
Lua
local downstairs = {
|
|
435
|
|
}
|
|
|
|
local upstairs = {
|
|
1948, 1968, 5542
|
|
}
|
|
|
|
function onUse(player, item, fromPosition, target, toPosition)
|
|
if table.contains(downstairs, item:getId()) then
|
|
player:teleportTo(item:getPosition():moveRel(0, 0, 1))
|
|
elseif table.contains(upstairs, item:getId()) then
|
|
player:teleportTo(item:getPosition():moveRel(0, 1, -1))
|
|
end
|
|
return true
|
|
end
|