mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 17:49:20 +02:00
19 lines
715 B
Lua
19 lines
715 B
Lua
function onStepIn(creature, item, position, fromPosition)
|
|
if creature:getPlayer():getStorageValue(260) == 1 then
|
|
doRelocate(item:getPosition(),{x = 33095, y = 32590, z = 15})
|
|
item:getPosition():sendMagicEffect(11)
|
|
Game.sendMagicEffect({x = 33095, y = 32590, z = 15}, 11)
|
|
creature:getPlayer():setStorageValue(260, 0)
|
|
else
|
|
doRelocate(item:getPosition(),{x = 33073, y = 32604, z = 15})
|
|
item:getPosition():sendMagicEffect(11)
|
|
Game.sendMagicEffect({x = 33073, y = 32604, z = 15}, 11)
|
|
end
|
|
end
|
|
|
|
function onAddItem(item, tileitem, position)
|
|
doRelocate(item:getPosition(),{x = 33073, y = 32604, z = 15})
|
|
item:getPosition():sendMagicEffect(11)
|
|
Game.sendMagicEffect({x = 33073, y = 32604, z = 15}, 11)
|
|
end
|