mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-13 22:34:53 +02:00
introduce POI until entrance until the DL spawn
This commit is contained in:
20
data/movements/scripts/pits_of_inferno/holy_tible_tile.lua
Normal file
20
data/movements/scripts/pits_of_inferno/holy_tible_tile.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
local destinations = {
|
||||
[17640] = Position(32791, 32327, 10),
|
||||
[17641] = Position(32791, 32331, 10)
|
||||
}
|
||||
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return false
|
||||
end
|
||||
|
||||
if player:getItemCount(2836) < 1 then
|
||||
player:teleportTo(fromPosition)
|
||||
return true
|
||||
end
|
||||
|
||||
player:teleportTo(destinations[item:getMovementId()])
|
||||
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
|
||||
return true
|
||||
end
|
Reference in New Issue
Block a user