mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-19 08:43:27 +02:00
Full Distribution
This commit is contained in:
12
data/actions/scripts/nostalrius/49.lua
Normal file
12
data/actions/scripts/nostalrius/49.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if item:getId() == 2772 then
|
||||
item:transform(2773, 1)
|
||||
item:decay()
|
||||
Game.createItem(2471, 1, {x = 32479, y = 31901, z = 05})
|
||||
Game.createItem(2122, 1, {x = 32479, y = 31892, z = 03})
|
||||
elseif item:getId() == 2773 and not Game.isItemThere({x = 32479, y = 31892, z = 03}, 2122) then
|
||||
item:transform(2772, 1)
|
||||
item:decay()
|
||||
end
|
||||
return true
|
||||
end
|
Reference in New Issue
Block a user