SabrehavenServer/data/movements/scripts/goroma/back_ferumbras_floor.lua
2019-12-12 15:47:57 +02:00

22 lines
771 B
Lua

function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return true
end
doRelocate(item:getPosition(),{x = 32121, y = 32709, z = 7})
Game.sendMagicEffect({x = 32121, y = 32709, z = 7}, 11)
local isInGhostMode = player:isInGhostMode()
local spectators = Game.getSpectators(player:getPosition(), false, true, 3, 3)
for i = 1, #spectators do
player:say("This entrance has been sealed by the Edron Academy.", TALKTYPE_MONSTER_SAY, isInGhostMode, spectators[i], player:getPosition())
end
end
function onAddItem(item, tileitem, position)
doRelocate(item:getPosition(),{x = 32121, y = 32709, z = 7})
item:getPosition():sendMagicEffect(11)
Game.sendMagicEffect({x = 32121, y = 32709, z = 7}, 11)
end