mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
Full Distribution
This commit is contained in:
25
data/movements/scripts/nostalrius/41.lua
Normal file
25
data/movements/scripts/nostalrius/41.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if Game.isItemThere({x = 32243, y = 31892, z = 14}, 2886) and item:getFluidType() == FLUID_BLOOD then
|
||||
Game.sendMagicEffect({x = 32242, y = 31891, z = 14}, 1)
|
||||
Game.sendMagicEffect({x = 32243, y = 31891, z = 14}, 1)
|
||||
Game.sendMagicEffect({x = 32242, y = 31892, z = 14}, 1)
|
||||
Game.sendMagicEffect({x = 32242, y = 31893, z = 14}, 1)
|
||||
Game.sendMagicEffect({x = 32243, y = 31893, z = 14}, 1)
|
||||
else
|
||||
doRelocate({x = 32243, y = 31892, z = 14},{x = 32244, y = 31892, z = 14})
|
||||
Game.sendMagicEffect({x = 32243, y = 31892, z = 14}, 3)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
if Game.isItemThere({x = 32243, y = 31892, z = 14}, 2886) and item:getFluidType() == FLUID_BLOOD then
|
||||
Game.sendMagicEffect({x = 32242, y = 31891, z = 14}, 1)
|
||||
Game.sendMagicEffect({x = 32243, y = 31891, z = 14}, 1)
|
||||
Game.sendMagicEffect({x = 32242, y = 31892, z = 14}, 1)
|
||||
Game.sendMagicEffect({x = 32242, y = 31893, z = 14}, 1)
|
||||
Game.sendMagicEffect({x = 32243, y = 31893, z = 14}, 1)
|
||||
else
|
||||
doRelocate({x = 32243, y = 31892, z = 14},{x = 32244, y = 31892, z = 14})
|
||||
Game.sendMagicEffect({x = 32243, y = 31892, z = 14}, 3)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user