mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
Full Distribution
This commit is contained in:
9
data/actions/scripts/misc/water_pipe.lua
Normal file
9
data/actions/scripts/misc/water_pipe.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if math.random(1, 100) <= 90 then
|
||||
item:getPosition():sendMagicEffect(3)
|
||||
return true
|
||||
else
|
||||
player:getPosition():sendMagicEffect(3)
|
||||
end
|
||||
return true
|
||||
end
|
Reference in New Issue
Block a user