mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 22:54:53 +02:00
Full Distribution
This commit is contained in:
16
data/actions/scripts/misc/scythe.lua
Normal file
16
data/actions/scripts/misc/scythe.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if not target:isItem() then
|
||||
return false
|
||||
end
|
||||
|
||||
if target:getId() == 3652 then
|
||||
player:sendCancelMessage(target:getType():getDescription() .. ".")
|
||||
return true
|
||||
elseif target:getId() == 3653 then
|
||||
target:transform(3651, 1)
|
||||
target:decay()
|
||||
Game.createItem(3605, 1, target:getPosition())
|
||||
return true
|
||||
end
|
||||
return doDestroyItem(target)
|
||||
end
|
Reference in New Issue
Block a user