mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
Full Distribution
This commit is contained in:
13
data/movements/scripts/nostalrius/189.lua
Normal file
13
data/movements/scripts/nostalrius/189.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getStorageValue(4) == 0 and Game.isItemThere({x = 32243, y = 31892, z = 14},2886) then
|
||||
Game.removeItemOnMap({x = 32243, y = 31892, z = 14}, 2886)
|
||||
Game.sendMagicEffect({x = 32243, y = 31892, z = 14}, 14)
|
||||
creature:getPlayer():setStorageValue(4,1)
|
||||
doRelocate(item:getPosition(),{x = 32261, y = 31849, z = 15})
|
||||
Game.sendMagicEffect({x = 32261, y = 31849, z = 15}, 14)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 32249, y = 31892, z = 14})
|
||||
Game.sendMagicEffect({x = 32249, y = 31892, z = 14}, 1)
|
||||
doTargetCombatHealth(0, creature, COMBAT_FIREDAMAGE, -55, -55)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user