mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 09:39:20 +02:00
14 lines
311 B
Lua
14 lines
311 B
Lua
function onUse(player, item, fromPosition, target, toPosition)
|
|
if not target:isItem() then
|
|
return false
|
|
end
|
|
|
|
if target:getId() == 2874 and target:getFluidType() == FLUID_OIL then
|
|
target:transform(target:getId(), FLUID_NONE)
|
|
item:transform(2914, 1)
|
|
item:decay()
|
|
return true
|
|
end
|
|
return false
|
|
end
|