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/75.lua
Normal file
18
data/movements/scripts/nostalrius/75.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getItemCount(3238) >= 1 and creature:getPlayer():getStorageValue(262) == 0 then
|
||||
doRelocate(item:getPosition(),{x = 33349, y = 32830, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33349, y = 32830, z = 14}, 11)
|
||||
player:removeItem(3238, 1)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33280, y = 32740, z = 10})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33280, y = 32740, z = 10}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(tileitem:getPosition(),{x = 33280, y = 32740, z = 10})
|
||||
tileitem:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33280, y = 32740, z = 10}, 11)
|
||||
end
|
Reference in New Issue
Block a user