mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-02 18:49:21 +02:00
10 lines
278 B
Lua
10 lines
278 B
Lua
function onUse(player, item, fromPosition, target, toPosition)
|
|
if player:getStorageValue(259) == 2 then
|
|
item:getPosition():sendMagicEffect(25)
|
|
player:setStorageValue(259,3)
|
|
else
|
|
item:getPosition():sendMagicEffect(25)
|
|
player:setStorageValue(259,0)
|
|
end
|
|
return true
|
|
end |