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/100.lua
Normal file
18
data/movements/scripts/nostalrius/100.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getItemCount(3239) >= 1 and creature:getPlayer():getStorageValue(267) == 0 then
|
||||
doRelocate(item:getPosition(),{x = 33178, y = 33016, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33178, y = 33016, z = 14}, 11)
|
||||
creature:getPlayer():removeItem(3239, 1)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33025, y = 32872, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33025, y = 32872, z = 08}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33025, y = 32872, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33025, y = 32872, z = 08}, 11)
|
||||
end
|
Reference in New Issue
Block a user