mirror of
https://github.com/otland/forgottenserver
synced 2026-08-15 16:32:07 -04:00
13 lines
245 B
Lua
13 lines
245 B
Lua
local saw = Action()
|
|
|
|
function saw.onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
|
if target.itemid ~= 5901 then -- wood
|
|
return false
|
|
end
|
|
|
|
target:transform(10033) -- wooden ties
|
|
return true
|
|
end
|
|
|
|
saw:id(2558)
|
|
saw:register()
|