mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
Full Distribution
This commit is contained in:
15
data/actions/scripts/misc/snake_destroyer.lua
Normal file
15
data/actions/scripts/misc/snake_destroyer.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if not target:isItem() then
|
||||
return false
|
||||
end
|
||||
|
||||
if target:getId() == 4850 and player:getStorageValue(293) == 17 then
|
||||
target:transform(4851, 1)
|
||||
target:decay()
|
||||
player:setStorageValue(299, 1)
|
||||
item:remove()
|
||||
target:getPosition():sendMagicEffect(7)
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
Reference in New Issue
Block a user