mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
Full Distribution
This commit is contained in:
21
data/movements/scripts/nostalrius/74.lua
Normal file
21
data/movements/scripts/nostalrius/74.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if Game.isItemThere({x = 33368, y = 32763, z = 14},2567) and Game.isItemThere ({x = 33382, y = 32786, z = 14},2567) and Game.isItemThere ({x = 33305, y = 32734, z = 14},2567) and Game.isItemThere ({x = 33338, y = 32702, z = 14},2567) and Game.isItemThere ({x = 33320, y = 32682, z = 14},2567) and Game.isItemThere ({x = 33349, y = 32680, z = 14},2567) and Game.isItemThere ({x = 33358, y = 32701, z = 14},2567) and Game.isItemThere ({x = 33357, y = 32749, z = 14}, 2567) then
|
||||
doRelocate(item:getPosition(),{x = 33367, y = 32805, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33367, y = 32805, z = 14}, 11)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33399, y = 32801, z = 14})
|
||||
Game.sendMagicEffect({x = 33399, y = 32801, z = 14}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
if Game.isItemThere({x = 33368, y = 32763, z = 14},2567) and Game.isItemThere ({x = 33382, y = 32786, z = 14},2567) and Game.isItemThere ({x = 33305, y = 32734, z = 14},2567) and Game.isItemThere ({x = 33338, y = 32702, z = 14},2567) and Game.isItemThere ({x = 33320, y = 32682, z = 14},2567) and Game.isItemThere ({x = 33349, y = 32680, z = 14},2567) and Game.isItemThere ({x = 33358, y = 32701, z = 14},2567) and Game.isItemThere ({x = 33357, y = 32749, z = 14}, 2567) then
|
||||
doRelocate(tileitem:getPosition(),{x = 33367, y = 32805, z = 14})
|
||||
tileitem:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33367, y = 32805, z = 14}, 11)
|
||||
else
|
||||
doRelocate(tileitem:getPosition(),{x = 33399, y = 32801, z = 14})
|
||||
Game.sendMagicEffect({x = 33399, y = 32801, z = 14}, 11)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user