mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 17:49:20 +02:00
19 lines
952 B
Lua
19 lines
952 B
Lua
function onStepIn(creature, item, position, fromPosition)
|
|
if creature:isPlayer() and Game.isPlayerThere({x = 33190, y = 31629, z = 13}) and Game.isItemThere({x = 33210, y = 31630, z = 13},1295) then
|
|
Game.removeItemOnMap({x = 33210, y = 31630, z = 13}, 1295)
|
|
Game.removeItemOnMap({x = 33211, y = 31630, z = 13}, 1295)
|
|
Game.removeItemOnMap({x = 33212, y = 31630, z = 13}, 1295)
|
|
end
|
|
end
|
|
|
|
function onStepOut(creature, item, position, fromPosition)
|
|
if creature:isPlayer() and Game.isPlayerThere({x = 33190, y = 31629, z = 13}) then
|
|
doRelocate({x = 33210, y = 31630, z = 13},{x = 33210, y = 31631, z = 13})
|
|
doRelocate({x = 33211, y = 31630, z = 13},{x = 33211, y = 31631, z = 13})
|
|
doRelocate({x = 33212, y = 31630, z = 13},{x = 33212, y = 31631, z = 13})
|
|
Game.createItem(1295, 1, {x = 33210, y = 31630, z = 13})
|
|
Game.createItem(1295, 1, {x = 33211, y = 31630, z = 13})
|
|
Game.createItem(1295, 1, {x = 33212, y = 31630, z = 13})
|
|
end
|
|
end
|