mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-01 10:09:20 +02:00
19 lines
788 B
Lua
19 lines
788 B
Lua
function onStepIn(creature, item, position, fromPosition)
|
|
if Game.isItemThere({x = 32816, y = 31601, z = 09},3206) and creature:isPlayer() then
|
|
doRelocate(item:getPosition(),{x = 32701, y = 31639, z = 06})
|
|
Game.removeItemOnMap({x = 32816, y = 31601, z = 09}, 3206)
|
|
Game.sendMagicEffect({x = 32701, y = 31639, z = 06}, 11)
|
|
Game.sendMagicEffect({x = 32816, y = 31601, z = 09}, 14)
|
|
creature:getPlayer():setStorageValue(65,0)
|
|
creature:getPlayer():setStorageValue(66,0)
|
|
else
|
|
doRelocate(item:getPosition(),{x = 32818, y = 31599, z = 09})
|
|
Game.sendMagicEffect({x = 32818, y = 31599, z = 09}, 11)
|
|
end
|
|
end
|
|
|
|
function onAddItem(item, tileitem, position)
|
|
doRelocate(item:getPosition(),{x = 32818, y = 31599, z = 09})
|
|
Game.sendMagicEffect({x = 32818, y = 31599, z = 09}, 11)
|
|
end
|