First commit

This commit is contained in:
2025-02-26 13:42:34 +01:00
commit f465c9072c
2467 changed files with 426214 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32627, y = 31699, z = 10}, 1771) then
item:transform(2773, 1)
item:decay()
doRelocate({x = 32627, y = 31699, z = 10},{x = 32626, y = 31699, z = 10})
doRelocate({x = 32628, y = 31699, z = 10},{x = 32626, y = 31699, z = 10})
doRelocate({x = 32629, y = 31699, z = 10},{x = 32626, y = 31699, z = 10})
Game.transformItemOnMap({x = 32627, y = 31699, z = 10}, 1771, 622)
Game.createItem(4788, 1, {x = 32627, y = 31699, z = 10})
Game.transformItemOnMap({x = 32628, y = 31699, z = 10}, 1771, 622)
Game.transformItemOnMap({x = 32629, y = 31699, z = 10}, 1771, 622)
Game.createItem(4786, 1, {x = 32629, y = 31699, z = 10})
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32628, y = 31699, z = 10}, 622) then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32627, y = 31699, z = 10}, 622, 1771)
Game.transformItemOnMap({x = 32628, y = 31699, z = 10}, 622, 1771)
Game.transformItemOnMap({x = 32629, y = 31699, z = 10}, 622, 1771)
Game.removeItemOnMap({x = 32627, y = 31699, z = 10}, 4788)
Game.removeItemOnMap({x = 32629, y = 31699, z = 10}, 4786)
end
return true
end