mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-04 11:19:21 +02:00
16 lines
316 B
Lua
16 lines
316 B
Lua
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
|
if item.itemid == 2773 then
|
|
return false
|
|
end
|
|
|
|
toPosition.x = toPosition.x - 1
|
|
toPosition.y = toPosition.y + 1
|
|
|
|
local stone = Tile(toPosition):getItemById(1791)
|
|
if stone then
|
|
stone:remove()
|
|
end
|
|
|
|
item:transform(2773)
|
|
return true
|
|
end |