mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 22:54:53 +02:00
99% poi quest done. Missing bureaucrats npcs, maybe some exit tps and quest log
This commit is contained in:
29
data/movements/scripts/pits_of_inferno/ladder.lua
Normal file
29
data/movements/scripts/pits_of_inferno/ladder.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
local ladderPosition = Position(32854, 32321, 11)
|
||||
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
local ladderItem = Tile(ladderPosition):getItemById(5542)
|
||||
if not ladderItem then
|
||||
Game.createItem(5542, 1, ladderPosition)
|
||||
player:say('You hear a rumbling from far away.', TALKTYPE_MONSTER_SAY, false, player)
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
function onStepOut(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
local ladderItem = Tile(ladderPosition):getItemById(5542)
|
||||
if ladderItem then
|
||||
ladderItem:remove()
|
||||
player:say('You hear a rumbling from far away.', TALKTYPE_MONSTER_SAY, false, player)
|
||||
end
|
||||
return true
|
||||
end
|
Reference in New Issue
Block a user