mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-18 16:23:27 +02:00
Full Distribution
This commit is contained in:
31
data/actions/scripts/nostalrius/17.lua
Normal file
31
data/actions/scripts/nostalrius/17.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if item:getId() == 2773 and Game.isItemThere({x = 33222, y = 31671, z = 13},430) and Game.isItemThere ({x = 33223, y = 31671, z = 13},430) and Game.isItemThere ({x = 33224, y = 31671, z = 13},430) and Game.isItemThere ({x = 33225, y = 31671, z = 13},430) and Game.isItemThere ({x = 33220, y = 31659, z = 13},1772) then
|
||||
item:transform(2772, 1)
|
||||
item:decay()
|
||||
Game.removeItemOnMap({x = 33220, y = 31659, z = 13}, 1772)
|
||||
Game.removeItemOnMap({x = 33221, y = 31659, z = 13}, 1772)
|
||||
Game.removeItemOnMap({x = 33222, y = 31659, z = 13}, 1772)
|
||||
Game.removeItemOnMap({x = 33223, y = 31659, z = 13}, 1772)
|
||||
Game.removeItemOnMap({x = 33224, y = 31659, z = 13}, 1772)
|
||||
Game.removeItemOnMap({x = 33219, y = 31659, z = 13}, 1772)
|
||||
Game.removeItemOnMap({x = 33219, y = 31657, z = 13}, 1772)
|
||||
Game.removeItemOnMap({x = 33221, y = 31657, z = 13}, 1772)
|
||||
Game.removeItemOnMap({x = 33220, y = 31661, z = 13}, 1772)
|
||||
Game.removeItemOnMap({x = 33222, y = 31661, z = 13}, 1772)
|
||||
Game.createMonster("Demon", {x = 33224, y = 31659, z = 13})
|
||||
Game.createMonster("Demon", {x = 33223, y = 31659, z = 13})
|
||||
Game.createMonster("Demon", {x = 33219, y = 31657, z = 13})
|
||||
Game.createMonster("Demon", {x = 33221, y = 31657, z = 13})
|
||||
Game.createMonster("Demon", {x = 33220, y = 31661, z = 13})
|
||||
Game.createMonster("Demon", {x = 33222, y = 31661, z = 13})
|
||||
doRelocate({x = 33222, y = 31671, z = 13},{x = 33219, y = 31659, z = 13})
|
||||
doRelocate({x = 33223, y = 31671, z = 13},{x = 33220, y = 31659, z = 13})
|
||||
doRelocate({x = 33224, y = 31671, z = 13},{x = 33221, y = 31659, z = 13})
|
||||
doRelocate({x = 33225, y = 31671, z = 13},{x = 33222, y = 31659, z = 13})
|
||||
Game.sendMagicEffect({x = 33219, y = 31659, z = 13}, 11)
|
||||
Game.sendMagicEffect({x = 33220, y = 31659, z = 13}, 11)
|
||||
Game.sendMagicEffect({x = 33221, y = 31659, z = 13}, 11)
|
||||
Game.sendMagicEffect({x = 33222, y = 31659, z = 13}, 11)
|
||||
end
|
||||
return true
|
||||
end
|
Reference in New Issue
Block a user