2025-02-26 13:42:34 +01:00

9 lines
458 B
Lua

function onStepIn(creature, item, position, fromPosition)
if creature:isPlayer() and Game.isItemThere({x = 32592, y = 31787, z = 04},3695) and creature:getPlayer():getStorageValue(45) < 1 then
Game.removeItemOnMap({x = 32592, y = 31787, z = 04}, 3695)
Game.sendMagicEffect({x = 32592, y = 31787, z = 04}, 15)
doRelocate({x = 32592, y = 31787, z = 04},{x = 32593, y = 31787, z = 04})
Game.createItem(3696, 1, {x = 32592, y = 31787, z = 04})
end
end