mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
Full Distribution
This commit is contained in:
19
data/movements/scripts/nostalrius/155.lua
Normal file
19
data/movements/scripts/nostalrius/155.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if Game.isItemThere({x = 32876, y = 32584, z = 10},4996) and Game.isItemThere ({x = 32823, y = 32525, z = 10},4996) and Game.isItemThere ({x = 32792, y = 32527, z = 10},4996) and Game.isItemThere ({x = 32744, y = 32586, z = 10}, 4996) then
|
||||
doRelocate(item:getPosition(),{x = 32884, y = 32632, z = 11})
|
||||
item:getPosition():sendMagicEffect(21)
|
||||
Game.sendMagicEffect({x = 32884, y = 32632, z = 11}, 21)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 32853, y = 32543, z = 10})
|
||||
item:getPosition():sendMagicEffect(21)
|
||||
Game.sendMagicEffect({x = 32853, y = 32543, z = 10}, 21)
|
||||
item:getPosition():sendMonsterSay("Spectral guardians ward you off.")
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32853, y = 32543, z = 10})
|
||||
item:getPosition():sendMagicEffect(21)
|
||||
Game.sendMagicEffect({x = 32853, y = 32543, z = 10}, 21)
|
||||
item:getPosition():sendMonsterSay("Spectral guardians ward you off.")
|
||||
end
|
Reference in New Issue
Block a user