mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 17:49:20 +02:00
12 lines
342 B
Lua
12 lines
342 B
Lua
function onStepIn(creature, item, position, fromPosition)
|
|
if creature:isPlayer() and creature:getPlayer():getStorageValue(8) ~= 0 then
|
|
Game.sendMagicEffect(item:getPosition(), 15)
|
|
else
|
|
Game.sendMagicEffect(item:getPosition(), 14)
|
|
end
|
|
end
|
|
|
|
function onAddItem(item, tileitem, position)
|
|
Game.sendMagicEffect(item:getPosition(), 14)
|
|
end
|