mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-17 07:43:27 +02:00
Full Distribution
This commit is contained in:
16
data/actions/scripts/misc/teleporters.lua
Normal file
16
data/actions/scripts/misc/teleporters.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
local downstairs = {
|
||||
435
|
||||
}
|
||||
|
||||
local upstairs = {
|
||||
1948, 1968
|
||||
}
|
||||
|
||||
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
|
Reference in New Issue
Block a user