mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
Full Distribution
This commit is contained in:
18
data/movements/scripts/nostalrius/193.lua
Normal file
18
data/movements/scripts/nostalrius/193.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
Reference in New Issue
Block a user