mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
Full Distribution
This commit is contained in:
19
data/actions/scripts/misc/machete.lua
Normal file
19
data/actions/scripts/misc/machete.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if not target:isItem() then
|
||||
return false
|
||||
end
|
||||
|
||||
if target:getId() == 3696 then
|
||||
target:transform(3695, 1)
|
||||
target:decay()
|
||||
return true
|
||||
elseif target:getId() == 3702 then
|
||||
target:transform(3701, 1)
|
||||
target:decay()
|
||||
return true
|
||||
elseif target:getId() == 2130 then
|
||||
target:remove()
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
Reference in New Issue
Block a user