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