mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-13 22:34:53 +02:00
Full Distribution
This commit is contained in:
7
data/movements/scripts/misc/candelabrum.lua
Normal file
7
data/movements/scripts/misc/candelabrum.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function onRemoveItem(item, tileitem, position)
|
||||
if item:getPosition():getDistance(position) > 0 then
|
||||
item:transform(2912, 1)
|
||||
item:decay()
|
||||
end
|
||||
return true
|
||||
end
|
26
data/movements/scripts/misc/damage.lua
Normal file
26
data/movements/scripts/misc/damage.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local tile = Tile(position)
|
||||
if tile:hasFlag(TILESTATE_PROTECTIONZONE) then
|
||||
return
|
||||
end
|
||||
|
||||
if item:getId() == 2145 then
|
||||
item:transform(2146, 1)
|
||||
item:decay()
|
||||
doTargetCombatHealth(0, creature, COMBAT_PHYSICALDAMAGE, -60, -60)
|
||||
elseif item:getId() == 2146 or item:getId() == 2148 then
|
||||
doTargetCombatHealth(0, creature, COMBAT_PHYSICALDAMAGE, -60, -60)
|
||||
elseif item:getId() == 3482 then
|
||||
if not creature:isPlayer() then
|
||||
doTargetCombatHealth(0, creature, COMBAT_PHYSICALDAMAGE, -30, -30)
|
||||
else
|
||||
position:sendMagicEffect(CONST_ME_POFF)
|
||||
end
|
||||
item:transform(3481, 1)
|
||||
item:decay()
|
||||
elseif item:getId() == 3944 then
|
||||
doTargetCombatHealth(0, creature, COMBAT_PHYSICALDAMAGE, -30, -30)
|
||||
item:transform(3945, 1)
|
||||
item:decay()
|
||||
end
|
||||
end
|
36
data/movements/scripts/misc/depot_switch.lua
Normal file
36
data/movements/scripts/misc/depot_switch.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if not creature:isPlayer() then
|
||||
return true
|
||||
end
|
||||
|
||||
local player = Player(creature)
|
||||
local lookPosition = player:getPosition()
|
||||
lookPosition:getNextPosition(player:getDirection())
|
||||
local depotItem = Tile(lookPosition):getItemByType(ITEM_TYPE_DEPOT)
|
||||
if depotItem ~= nil then
|
||||
local depotItems = player:getDepotChest(getDepotId(depotItem:getUniqueId()), true):getItemHoldingCount()
|
||||
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, "Your depot contains " .. depotItems .. " item" .. (depotItems > 1 and "s." or "."))
|
||||
end
|
||||
|
||||
if item:getId() == 431 then
|
||||
item:transform(430)
|
||||
elseif item:getId() == 419 then
|
||||
item:transform(420)
|
||||
elseif item:getId() == 452 then
|
||||
item:transform(453)
|
||||
elseif item:getId() == 563 then
|
||||
item:transform(564)
|
||||
end
|
||||
end
|
||||
|
||||
function onStepOut(creature, item, position, fromPosition)
|
||||
if item:getId() == 430 then
|
||||
item:transform(431)
|
||||
elseif item:getId() == 420 then
|
||||
item:transform(419)
|
||||
elseif item:getId() == 453 then
|
||||
item:transform(452)
|
||||
elseif item:getId() == 564 then
|
||||
item:transform(563)
|
||||
end
|
||||
end
|
39
data/movements/scripts/misc/doors.lua
Normal file
39
data/movements/scripts/misc/doors.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
local verticalDoors = {
|
||||
[1643] = 1642,
|
||||
[1647] = 1646,
|
||||
[1661] = 1660,
|
||||
[1665] = 1664,
|
||||
[1675] = 1674,
|
||||
[1679] = 1678,
|
||||
[1697] = 1696,
|
||||
[1699] = 1698,
|
||||
}
|
||||
|
||||
local horizontalDoors = {
|
||||
[1645] = 1644,
|
||||
[1649] = 1648,
|
||||
[1663] = 1662,
|
||||
[1667] = 1666,
|
||||
[1677] = 1676,
|
||||
[1681] = 1680,
|
||||
[1688] = 1687,
|
||||
[1690] = 1689,
|
||||
}
|
||||
|
||||
function onStepOut(creature, item, fromPosition, toPosition)
|
||||
local door = verticalDoors[item:getId()]
|
||||
if door then
|
||||
doRelocate(item:getPosition(), item:getPosition():moveRel(1, 0, 0))
|
||||
item:transform(door)
|
||||
item:decay()
|
||||
return true
|
||||
end
|
||||
|
||||
door = horizontalDoors[item:getId()]
|
||||
if door then
|
||||
doRelocate(item:getPosition(), item:getPosition():moveRel(0, 1, 0))
|
||||
item:transform(door)
|
||||
item:decay()
|
||||
return true
|
||||
end
|
||||
end
|
4
data/movements/scripts/misc/dustbin.lua
Normal file
4
data/movements/scripts/misc/dustbin.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
function onAddItem(item, tileitem, position)
|
||||
item:remove()
|
||||
return true
|
||||
end
|
105
data/movements/scripts/misc/floorchange.lua
Normal file
105
data/movements/scripts/misc/floorchange.lua
Normal file
@@ -0,0 +1,105 @@
|
||||
local list = {
|
||||
[293] = {x = 0, y = 0, z = 1},
|
||||
[294] = {x = 0, y = 0, z = 1},
|
||||
[369] = {x = 0, y = 0, z = 1},
|
||||
[370] = {x = 0, y = 0, z = 1},
|
||||
[385] = {x = 0, y = 0, z = 1},
|
||||
[394] = {x = 0, y = 0, z = 1},
|
||||
[411] = {x = 0, y = 0, z = 1},
|
||||
[412] = {x = 0, y = 0, z = 1},
|
||||
[413] = {x = 0, y = 1, z = 1},
|
||||
[414] = {x = 0, y = 1, z = 1},
|
||||
[428] = {x = 0, y = 1, z = 1},
|
||||
[4823] = {x = 0, y = 1, z = 1},
|
||||
[4824] = {x = 0, y = 1, z = 1},
|
||||
[4825] = {x = 0, y = 1, z = 1},
|
||||
[4826] = {x = 0, y = 1, z = 1},
|
||||
[432] = {x = 0, y = 0, z = 1},
|
||||
[433] = {x = 0, y = 0, z = 1},
|
||||
[434] = {x = 0, y = 1, z = 1},
|
||||
[437] = {x = 0, y = 1, z = 1},
|
||||
[438] = {x = 0, y = 1, z = 1},
|
||||
[451] = {x = 0, y = 1, z = 1},
|
||||
[465] = {x = 0, y = -1, z = 1},
|
||||
[466] = {x = -1, y = 0, z = 1},
|
||||
[467] = {x = 1, y = 0, z = 1},
|
||||
[471] = {x = -1, y = -1, z = 1},
|
||||
[472] = {x = 1, y = -1, z = 1},
|
||||
[473] = {x = -1, y = 1, z = 1},
|
||||
[474] = {x = 1, y = 1, z = 1},
|
||||
[475] = {x = 0, y = 0, z = 1},
|
||||
[476] = {x = 0, y = 0, z = 1},
|
||||
[482] = {x = 0, y = 0, z = 1},
|
||||
[5081] = {x = 0, y = 0, z = 1},
|
||||
[483] = {x = 0, y = 0, z = 1},
|
||||
[484] = {x = 0, y = 1, z = 1},
|
||||
[485] = {x = 0, y = 1, z = 1},
|
||||
[566] = {x = 0, y = 1, z = 1},
|
||||
[567] = {x = 1, y = 0, z = 1},
|
||||
[594] = {x = 0, y = 0, z = 1},
|
||||
[595] = {x = 0, y = 0, z = 1},
|
||||
[600] = {x = -1, y = 0, z = 1},
|
||||
[601] = {x = 1, y = 0, z = 1},
|
||||
[604] = {x = -1, y = 0, z = 1},
|
||||
[605] = {x = 1, y = 0, z = 1},
|
||||
[607] = {x = 0, y = 0, z = 1},
|
||||
[609] = {x = 0, y = 0, z = 1},
|
||||
[610] = {x = 0, y = 0, z = 1},
|
||||
[615] = {x = 0, y = 0, z = 1},
|
||||
[1066] = {x = 0, y = 0, z = 1},
|
||||
[1067] = {x = 0, y = 0, z = 1},
|
||||
[1080] = {x = 0, y = 0, z = 1},
|
||||
[1156] = {x = 0, y = 1, z = 1},
|
||||
[1947] = {x = 0, y = -1, z = -1},
|
||||
[1950] = {x = 1, y = 0, z = -1},
|
||||
[1952] = {x = -1, y = 0, z = -1},
|
||||
[1954] = {x = 0, y = 1, z = -1},
|
||||
[1956] = {x = 0, y = -1, z = -1},
|
||||
[1958] = {x = 0, y = -1, z = -1},
|
||||
[1960] = {x = 1, y = 0, z = -1},
|
||||
[1962] = {x = -1, y = 0, z = -1},
|
||||
[1964] = {x = 0, y = 1, z = -1},
|
||||
[1966] = {x = 0, y = -1, z = -1},
|
||||
[1969] = {x = 1, y = 0, z = -1},
|
||||
[1971] = {x = -1, y = 0, z = -1},
|
||||
[1973] = {x = 0, y = 1, z = -1},
|
||||
[1975] = {x = 0, y = -1, z = -1},
|
||||
[1977] = {x = 0, y = -1, z = -1},
|
||||
[1978] = {x = -1, y = 0, z = -1},
|
||||
[2192] = {x = -1, y = -1, z = -1},
|
||||
[2194] = {x = 1, y = -1, z = -1},
|
||||
[2196] = {x = 1, y = 1, z = -1},
|
||||
[2198] = {x = -1, y = 1, z = -1},
|
||||
}
|
||||
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local entry = list[item:getId()]
|
||||
local relPos = item:getPosition():moveRel(entry.x, entry.y, entry.z)
|
||||
|
||||
local tile = Tile(relPos)
|
||||
if tile == nil or tile:getGround() == nil then
|
||||
return false
|
||||
end
|
||||
|
||||
creature:teleportTo(relPos)
|
||||
if item:getId() == 293 then
|
||||
item:transform(294)
|
||||
item:decay()
|
||||
elseif item:getId() == 475 then
|
||||
item:transform(476)
|
||||
item:decay()
|
||||
elseif item:getId() == 1066 then
|
||||
item:transform(1067)
|
||||
item:decay()
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
if tileitem:getId() ~= 293 and tileitem:getId() ~= 475 and tileitem:getId() ~= 476 and tileitem:getId() ~= 1066 then
|
||||
local entry = list[tileitem:getId()]
|
||||
local relPos = tileitem:getPosition():moveRel(entry.x, entry.y, entry.z)
|
||||
item:moveTo(relPos)
|
||||
end
|
||||
return true
|
||||
end
|
7
data/movements/scripts/misc/lava.lua
Normal file
7
data/movements/scripts/misc/lava.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function onAddItem(item, tileitem, position)
|
||||
if item:getType():isMovable() and Tile(position):getThingCount() == 2 then
|
||||
item:getPosition():sendMagicEffect(16)
|
||||
item:remove()
|
||||
end
|
||||
return true
|
||||
end
|
8
data/movements/scripts/misc/open_trap.lua
Normal file
8
data/movements/scripts/misc/open_trap.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
function onRemoveItem(item, tileitem, position)
|
||||
if item:getPosition():getDistance(position) > 0 then
|
||||
item:transform(3481, 1)
|
||||
item:decay()
|
||||
item:getPosition():sendMagicEffect(3)
|
||||
end
|
||||
return true
|
||||
end
|
39
data/movements/scripts/misc/sandstone_wall.lua
Normal file
39
data/movements/scripts/misc/sandstone_wall.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
function onStepIn(creature, item, fromPosition, toPosition)
|
||||
if item:getId() == 478 then
|
||||
item:transform(479, 1)
|
||||
item:decay()
|
||||
elseif item:getId() == 480 then
|
||||
item:transform(481, 1)
|
||||
item:decay()
|
||||
end
|
||||
end
|
||||
|
||||
function onStepOut(creature, item, fromPosition, toPosition)
|
||||
if item:getId() == 479 then
|
||||
item:transform(478, 1)
|
||||
item:decay()
|
||||
elseif item:getId() == 481 then
|
||||
item:transform(480, 1)
|
||||
item:decay()
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
if tileitem:getId() == 478 then
|
||||
tileitem:transform(479, 1)
|
||||
tileitem:decay()
|
||||
elseif tileitem:getId() == 480 then
|
||||
tileitem:transform(481, 1)
|
||||
tileitem:decay()
|
||||
end
|
||||
end
|
||||
|
||||
function onRemoveItem(item, tileitem, position)
|
||||
if tileitem:getId() == 479 then
|
||||
tileitem:transform(478, 1)
|
||||
tileitem:decay()
|
||||
elseif tileitem:getId() == 481 then
|
||||
tileitem:transform(480, 1)
|
||||
tileitem:decay()
|
||||
end
|
||||
end
|
8
data/movements/scripts/misc/swamp.lua
Normal file
8
data/movements/scripts/misc/swamp.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
function onAddItem(item, tileitem, position)
|
||||
if (item:getType():isMovable() and Tile(position):getThingCount() == 2) or
|
||||
(tileitem:getId() >= 4874 and tileitem:getId() <= 4880) then
|
||||
item:getPosition():sendMagicEffect(9)
|
||||
item:remove()
|
||||
end
|
||||
return true
|
||||
end
|
7
data/movements/scripts/misc/tar.lua
Normal file
7
data/movements/scripts/misc/tar.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function onAddItem(item, tileitem, position)
|
||||
if item:getType():isMovable() and Tile(position):getThingCount() == 2 then
|
||||
item:getPosition():sendMagicEffect(3)
|
||||
item:remove()
|
||||
end
|
||||
return true
|
||||
end
|
7
data/movements/scripts/misc/water.lua
Normal file
7
data/movements/scripts/misc/water.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function onAddItem(item, tileitem, position)
|
||||
if item:getType():isMovable() and Tile(position):getThingCount() == 2 then
|
||||
item:getPosition():sendMagicEffect(2)
|
||||
item:remove()
|
||||
end
|
||||
return true
|
||||
end
|
36
data/movements/scripts/nostalrius/1.lua
Normal file
36
data/movements/scripts/nostalrius/1.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if not creature:isPlayer() then
|
||||
return true
|
||||
end
|
||||
|
||||
local player = Player(creature)
|
||||
local lookPosition = player:getPosition()
|
||||
lookPosition:getNextPosition(player:getDirection())
|
||||
local depotItem = Tile(lookPosition):getItemByType(ITEM_TYPE_DEPOT)
|
||||
if depotItem ~= nil then
|
||||
local depotItems = player:getDepotChest(getDepotId(depotItem:getUniqueId()), true):getItemHoldingCount()
|
||||
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, "Your depot contains " .. depotItems .. " item" .. (depotItems > 1 and "s." or "."))
|
||||
end
|
||||
|
||||
if item:getId() == 431 then
|
||||
item:transform(430)
|
||||
elseif item:getId() == 419 then
|
||||
item:transform(420)
|
||||
elseif item:getId() == 452 then
|
||||
item:transform(453)
|
||||
elseif item:getId() == 563 then
|
||||
item:transform(564)
|
||||
end
|
||||
end
|
||||
|
||||
function onStepOut(creature, item, position, fromPosition)
|
||||
if item:getId() == 430 then
|
||||
item:transform(431)
|
||||
elseif item:getId() == 420 then
|
||||
item:transform(419)
|
||||
elseif item:getId() == 453 then
|
||||
item:transform(452)
|
||||
elseif item:getId() == 564 then
|
||||
item:transform(563)
|
||||
end
|
||||
end
|
5
data/movements/scripts/nostalrius/10.lua
Normal file
5
data/movements/scripts/nostalrius/10.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and Game.isItemThere({x = 32266, y = 31916, z = 12}, 394) then
|
||||
Game.transformItemOnMap({x = 32266, y = 31916, z = 12}, 394, 372)
|
||||
end
|
||||
end
|
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
|
11
data/movements/scripts/nostalrius/101.lua
Normal file
11
data/movements/scripts/nostalrius/101.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33206, y = 32592, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33206, y = 32592, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33206, y = 32592, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33206, y = 32592, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/102.lua
Normal file
11
data/movements/scripts/nostalrius/102.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33179, y = 32880, z = 11})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33179, y = 32880, z = 11}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33179, y = 32880, z = 11})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33179, y = 32880, z = 11}, 11)
|
||||
end
|
18
data/movements/scripts/nostalrius/103.lua
Normal file
18
data/movements/scripts/nostalrius/103.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getItemCount(3240) >= 1 and creature:getPlayer():getStorageValue(261) == 0 then
|
||||
doRelocate(item:getPosition(),{x = 33174, y = 32937, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33174, y = 32937, z = 15}, 11)
|
||||
creature:getPlayer():removeItem(3240, 1)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33255, y = 32836, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33255, y = 32836, z = 08}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33255, y = 32836, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33255, y = 32836, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/104.lua
Normal file
11
data/movements/scripts/nostalrius/104.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33158, y = 32771, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33158, y = 32771, z = 15}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33158, y = 32771, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33158, y = 32771, z = 15}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/105.lua
Normal file
11
data/movements/scripts/nostalrius/105.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33190, y = 32947, z = 15})
|
||||
Game.sendMagicEffect({x = 33183, y = 32757, z = 15}, 11)
|
||||
Game.sendMagicEffect({x = 33191, y = 32947, z = 15}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33190, y = 32947, z = 15})
|
||||
Game.sendMagicEffect({x = 33183, y = 32757, z = 15}, 11)
|
||||
Game.sendMagicEffect({x = 33191, y = 32947, z = 15}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/106.lua
Normal file
11
data/movements/scripts/nostalrius/106.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33231, y = 32705, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33231, y = 32705, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33231, y = 32705, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33231, y = 32705, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/107.lua
Normal file
11
data/movements/scripts/nostalrius/107.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33025, y = 32872, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33025, y = 32872, z = 08}, 11)
|
||||
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
|
23
data/movements/scripts/nostalrius/108.lua
Normal file
23
data/movements/scripts/nostalrius/108.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if Game.isItemThere({x = 33176, y = 32880, z = 11},2570) and Game.isItemThere ({x = 33175, y = 32884, z = 11},2570) and Game.isItemThere ({x = 33176, y = 32889, z = 11},2570) and Game.isItemThere ({x = 33182, y = 32880, z = 11},2570) and Game.isItemThere ({x = 33183, y = 32884, z = 11},2570) and Game.isItemThere ({x = 33181, y = 32889, z = 11}, 2570) then
|
||||
doRelocate(item:getPosition(),{x = 33198, y = 32885, z = 11})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33198, y = 32885, z = 11}, 11)
|
||||
Game.transformItemOnMap({x = 33176, y = 32880, z = 11}, 2570, 2569)
|
||||
Game.transformItemOnMap({x = 33175, y = 32884, z = 11}, 2570, 2569)
|
||||
Game.transformItemOnMap({x = 33176, y = 32889, z = 11}, 2570, 2569)
|
||||
Game.transformItemOnMap({x = 33182, y = 32880, z = 11}, 2570, 2569)
|
||||
Game.transformItemOnMap({x = 33183, y = 32884, z = 11}, 2570, 2569)
|
||||
Game.transformItemOnMap({x = 33181, y = 32889, z = 11}, 2570, 2569)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33179, y = 32889, z = 11})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33179, y = 32889, z = 11}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33179, y = 32889, z = 11})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33179, y = 32889, z = 11}, 11)
|
||||
end
|
14
data/movements/scripts/nostalrius/109.lua
Normal file
14
data/movements/scripts/nostalrius/109.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
doRelocate(item:getPosition(),{x = 33128, y = 32656, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33128, y = 32656, z = 15}, 11)
|
||||
creature:getPlayer():setStorageValue(259,0)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33128, y = 32656, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33128, y = 32656, z = 15}, 11)
|
||||
end
|
5
data/movements/scripts/nostalrius/11.lua
Normal file
5
data/movements/scripts/nostalrius/11.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and Game.isItemThere({x = 32266, y = 31892, z = 12}, 394) then
|
||||
Game.transformItemOnMap({x = 32266, y = 31892, z = 12}, 394, 372)
|
||||
end
|
||||
end
|
11
data/movements/scripts/nostalrius/110.lua
Normal file
11
data/movements/scripts/nostalrius/110.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33255, y = 32836, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33255, y = 32836, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33255, y = 32836, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33255, y = 32836, z = 08}, 11)
|
||||
end
|
18
data/movements/scripts/nostalrius/111.lua
Normal file
18
data/movements/scripts/nostalrius/111.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getItemCount(3237) >= 1 and creature:getPlayer():getStorageValue(263) == 0 then
|
||||
doRelocate(item:getPosition(),{x = 33182, y = 32715, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33182, y = 32715, z = 14}, 11)
|
||||
creature:getPlayer():removeItem(3237, 1)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33231, y = 32705, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33231, y = 32705, z = 08}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33231, y = 32705, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33231, y = 32705, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/112.lua
Normal file
11
data/movements/scripts/nostalrius/112.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33149, y = 32870, z = 11})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33149, y = 32870, z = 11}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33149, y = 32870, z = 11})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33149, y = 32870, z = 11}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/113.lua
Normal file
11
data/movements/scripts/nostalrius/113.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33255, y = 32839, z = 09})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33255, y = 32839, z = 09}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33255, y = 32839, z = 09})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33255, y = 32839, z = 09}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/114.lua
Normal file
11
data/movements/scripts/nostalrius/114.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33147, y = 32864, z = 07})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33147, y = 32864, z = 07}, 15)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33147, y = 32864, z = 07})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33147, y = 32864, z = 07}, 15)
|
||||
end
|
11
data/movements/scripts/nostalrius/115.lua
Normal file
11
data/movements/scripts/nostalrius/115.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33159, y = 32838, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33159, y = 32838, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33159, y = 32838, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33159, y = 32838, z = 08}, 11)
|
||||
end
|
17
data/movements/scripts/nostalrius/116.lua
Normal file
17
data/movements/scripts/nostalrius/116.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if Game.isItemThere({x = 33145, y = 32862, z = 07}, 3465) and creature:isPlayer() then
|
||||
doRelocate(item:getPosition(),{x = 33151, y = 32864, z = 07})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33151, y = 32864, z = 07}, 15)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33145, y = 32863, z = 07})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33145, y = 32863, z = 07}, 15)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33145, y = 32863, z = 07})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33145, y = 32863, z = 07}, 15)
|
||||
end
|
11
data/movements/scripts/nostalrius/117.lua
Normal file
11
data/movements/scripts/nostalrius/117.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33206, y = 32592, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33206, y = 32592, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33206, y = 32592, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33206, y = 32592, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/118.lua
Normal file
11
data/movements/scripts/nostalrius/118.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33125, y = 32760, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33125, y = 32760, z = 14}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33125, y = 32760, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33125, y = 32760, z = 14}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/119.lua
Normal file
11
data/movements/scripts/nostalrius/119.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33131, y = 32566, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33131, y = 32566, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33131, y = 32566, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33131, y = 32566, z = 08}, 11)
|
||||
end
|
5
data/movements/scripts/nostalrius/12.lua
Normal file
5
data/movements/scripts/nostalrius/12.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
doRelocate({x = 32266, y = 31898, z = 12},{x = 32266, y = 31886, z = 12})
|
||||
end
|
||||
end
|
11
data/movements/scripts/nostalrius/120.lua
Normal file
11
data/movements/scripts/nostalrius/120.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33133, y = 32642, z = 08})
|
||||
Game.sendMagicEffect({x = 33124, y = 32759, z = 14}, 11)
|
||||
Game.sendMagicEffect({x = 33133, y = 32642, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33133, y = 32642, z = 08})
|
||||
Game.sendMagicEffect({x = 33124, y = 32759, z = 14}, 11)
|
||||
Game.sendMagicEffect({x = 33133, y = 32642, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/121.lua
Normal file
11
data/movements/scripts/nostalrius/121.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33085, y = 32781, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33085, y = 32781, z = 14}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33085, y = 32781, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33085, y = 32781, z = 14}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/122.lua
Normal file
11
data/movements/scripts/nostalrius/122.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33193, y = 32664, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33193, y = 32664, z = 15}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33193, y = 32664, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33193, y = 32664, z = 15}, 11)
|
||||
end
|
18
data/movements/scripts/nostalrius/123.lua
Normal file
18
data/movements/scripts/nostalrius/123.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getItemCount(3236) >= 1 and creature:getPlayer():getStorageValue(264) == 0 then
|
||||
doRelocate(item:getPosition(),{x = 33146, y = 32666, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33146, y = 32666, z = 15}, 11)
|
||||
creature:getPlayer():removeItem(3236, 1)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33206, y = 32592, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33206, y = 32592, z = 08}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33206, y = 32592, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33206, y = 32592, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/124.lua
Normal file
11
data/movements/scripts/nostalrius/124.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33204, y = 32956, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33204, y = 32956, z = 14}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33204, y = 32956, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33204, y = 32956, z = 14}, 11)
|
||||
end
|
18
data/movements/scripts/nostalrius/125.lua
Normal file
18
data/movements/scripts/nostalrius/125.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getItemCount(3241) >= 1 and creature:getPlayer():getStorageValue(265) == 0 then
|
||||
doRelocate(item:getPosition(),{x = 33126, y = 32592, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33126, y = 32591, z = 15}, 11)
|
||||
creature:getPlayer():removeItem(3241, 1)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33131, y = 32566, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33131, y = 32566, z = 08}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33131, y = 32566, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33131, y = 32566, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/126.lua
Normal file
11
data/movements/scripts/nostalrius/126.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33131, y = 32566, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33131, y = 32566, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33131, y = 32566, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33131, y = 32566, z = 08}, 11)
|
||||
end
|
17
data/movements/scripts/nostalrius/127.lua
Normal file
17
data/movements/scripts/nostalrius/127.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if Game.isItemThere({x = 33028, y = 32588, z = 13},2570) and Game.isItemThere ({x = 33006, y = 32563, z = 13},2570) and Game.isItemThere ({x = 33027, y = 32530, z = 13},2570) and Game.isItemThere ({x = 33036, y = 32507, z = 13},2570) and Game.isItemThere ({x = 33055, y = 32487, z = 13},2570) and Game.isItemThere ({x = 33077, y = 32507, z = 13},2570) and Game.isItemThere ({x = 33089, y = 32514, z = 13},2570) and Game.isItemThere ({x = 33104, y = 32514, z = 13},2570) and Game.isItemThere ({x = 33130, y = 32489, z = 13},2570) and Game.isItemThere ({x = 33147, y = 32524, z = 13},2570) and Game.isItemThere ({x = 33123, y = 32599, z = 13}, 2570) then
|
||||
doRelocate(item:getPosition(),{x = 33083, y = 32571, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33083, y = 32571, z = 14}, 11)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33083, y = 32568, z = 13})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33083, y = 32568, z = 13}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33083, y = 32568, z = 13})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33083, y = 32568, z = 13}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/128.lua
Normal file
11
data/movements/scripts/nostalrius/128.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33080, y = 32569, z = 13})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33080, y = 32569, z = 13}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33080, y = 32569, z = 13})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33080, y = 32569, z = 13}, 11)
|
||||
end
|
18
data/movements/scripts/nostalrius/129.lua
Normal file
18
data/movements/scripts/nostalrius/129.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getItemCount(3235) >= 1 and creature:getPlayer():getStorageValue(266) == 0 then
|
||||
doRelocate(item:getPosition(),{x = 33051, y = 32777, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33051, y = 32777, z = 14}, 11)
|
||||
creature:getPlayer():removeItem(3235, 1)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33133, y = 32642, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33133, y = 32642, z = 08}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33133, y = 32642, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33133, y = 32642, z = 08}, 11)
|
||||
end
|
5
data/movements/scripts/nostalrius/13.lua
Normal file
5
data/movements/scripts/nostalrius/13.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
doRelocate({x = 32266, y = 31899, z = 12},{x = 32266, y = 31911, z = 12})
|
||||
end
|
||||
end
|
18
data/movements/scripts/nostalrius/130.lua
Normal file
18
data/movements/scripts/nostalrius/130.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:getPlayer():getStorageValue(260) == 1 then
|
||||
doRelocate(item:getPosition(),{x = 33095, y = 32590, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33095, y = 32590, z = 15}, 11)
|
||||
creature:getPlayer():setStorageValue(260, 0)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 33073, y = 32604, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33073, y = 32604, z = 15}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33073, y = 32604, z = 15})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33073, y = 32604, z = 15}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/131.lua
Normal file
11
data/movements/scripts/nostalrius/131.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33083, y = 32610, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33083, y = 32610, z = 14}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33083, y = 32610, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33083, y = 32610, z = 14}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/132.lua
Normal file
11
data/movements/scripts/nostalrius/132.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33133, y = 32642, z = 08})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33133, y = 32642, z = 08}, 15)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33133, y = 32642, z = 08})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33133, y = 32642, z = 08}, 15)
|
||||
end
|
11
data/movements/scripts/nostalrius/133.lua
Normal file
11
data/movements/scripts/nostalrius/133.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33280, y = 32744, z = 10})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33280, y = 32744, z = 10}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33280, y = 32744, z = 10})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33280, y = 32744, z = 10}, 11)
|
||||
end
|
6
data/movements/scripts/nostalrius/134.lua
Normal file
6
data/movements/scripts/nostalrius/134.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
creature:getPlayer():setStorageValue(276,1)
|
||||
item:getPosition():sendMagicEffect(13)
|
||||
end
|
||||
end
|
6
data/movements/scripts/nostalrius/135.lua
Normal file
6
data/movements/scripts/nostalrius/135.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
creature:getPlayer():setStorageValue(275,1)
|
||||
item:getPosition():sendMagicEffect(13)
|
||||
end
|
||||
end
|
11
data/movements/scripts/nostalrius/136.lua
Normal file
11
data/movements/scripts/nostalrius/136.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33206, y = 32577, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33206, y = 32577, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33206, y = 32577, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33206, y = 32577, z = 08}, 11)
|
||||
end
|
6
data/movements/scripts/nostalrius/137.lua
Normal file
6
data/movements/scripts/nostalrius/137.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
creature:getPlayer():setStorageValue(272,1)
|
||||
item:getPosition():sendMagicEffect(13)
|
||||
end
|
||||
end
|
6
data/movements/scripts/nostalrius/138.lua
Normal file
6
data/movements/scripts/nostalrius/138.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
creature:getPlayer():setStorageValue(277,1)
|
||||
item:getPosition():sendMagicEffect(13)
|
||||
end
|
||||
end
|
6
data/movements/scripts/nostalrius/139.lua
Normal file
6
data/movements/scripts/nostalrius/139.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
creature:getPlayer():setStorageValue(274,1)
|
||||
item:getPosition():sendMagicEffect(13)
|
||||
end
|
||||
end
|
5
data/movements/scripts/nostalrius/14.lua
Normal file
5
data/movements/scripts/nostalrius/14.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
doRelocate({x = 32265, y = 31899, z = 12},{x = 32265, y = 31911, z = 12})
|
||||
end
|
||||
end
|
6
data/movements/scripts/nostalrius/140.lua
Normal file
6
data/movements/scripts/nostalrius/140.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
creature:getPlayer():setStorageValue(271,1)
|
||||
item:getPosition():sendMagicEffect(13)
|
||||
end
|
||||
end
|
11
data/movements/scripts/nostalrius/141.lua
Normal file
11
data/movements/scripts/nostalrius/141.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33255, y = 32836, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33255, y = 32836, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33255, y = 32836, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33255, y = 32836, z = 08}, 11)
|
||||
end
|
6
data/movements/scripts/nostalrius/142.lua
Normal file
6
data/movements/scripts/nostalrius/142.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
creature:getPlayer():setStorageValue(273,1)
|
||||
item:getPosition():sendMagicEffect(13)
|
||||
end
|
||||
end
|
11
data/movements/scripts/nostalrius/143.lua
Normal file
11
data/movements/scripts/nostalrius/143.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33235, y = 32705, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33235, y = 32705, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33235, y = 32705, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33235, y = 32705, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/144.lua
Normal file
11
data/movements/scripts/nostalrius/144.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33192, y = 32846, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33192, y = 32846, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33192, y = 32846, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33192, y = 32846, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/145.lua
Normal file
11
data/movements/scripts/nostalrius/145.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33195, y = 32852, z = 04})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33195, y = 32852, z = 04}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33195, y = 32852, z = 04})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33195, y = 32852, z = 04}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/146.lua
Normal file
11
data/movements/scripts/nostalrius/146.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33157, y = 32834, z = 07})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33157, y = 32834, z = 07}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33157, y = 32834, z = 07})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33157, y = 32834, z = 07}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/147.lua
Normal file
11
data/movements/scripts/nostalrius/147.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33133, y = 32642, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33133, y = 32642, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33133, y = 32642, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33133, y = 32642, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/148.lua
Normal file
11
data/movements/scripts/nostalrius/148.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33029, y = 32868, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33029, y = 32868, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33029, y = 32868, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33029, y = 32868, z = 08}, 11)
|
||||
end
|
11
data/movements/scripts/nostalrius/149.lua
Normal file
11
data/movements/scripts/nostalrius/149.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33131, y = 32566, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33131, y = 32566, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33131, y = 32566, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33131, y = 32566, z = 08}, 11)
|
||||
end
|
5
data/movements/scripts/nostalrius/15.lua
Normal file
5
data/movements/scripts/nostalrius/15.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
doRelocate({x = 32265, y = 31898, z = 12},{x = 32265, y = 31886, z = 12})
|
||||
end
|
||||
end
|
8
data/movements/scripts/nostalrius/150.lua
Normal file
8
data/movements/scripts/nostalrius/150.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
doRelocate(item:getPosition(),{x = 33212, y = 31671, z = 13})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33212, y = 31671, z = 13}, 11)
|
||||
creature:getPlayer():setStorageValue(203,1)
|
||||
end
|
||||
end
|
11
data/movements/scripts/nostalrius/151.lua
Normal file
11
data/movements/scripts/nostalrius/151.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33021, y = 32605, z = 07})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33021, y = 32605, z = 07}, 15)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33021, y = 32605, z = 07})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33021, y = 32605, z = 07}, 15)
|
||||
end
|
11
data/movements/scripts/nostalrius/152.lua
Normal file
11
data/movements/scripts/nostalrius/152.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 32840, y = 32533, z = 09})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 32840, y = 32533, z = 09}, 15)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32840, y = 32533, z = 09})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 32840, y = 32533, z = 09}, 15)
|
||||
end
|
11
data/movements/scripts/nostalrius/153.lua
Normal file
11
data/movements/scripts/nostalrius/153.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getStorageValue(293) >= 17 then
|
||||
doRelocate(item:getPosition(),{x = 32748, y = 32537, z = 10})
|
||||
item:getPosition():sendMagicEffect(21)
|
||||
Game.sendMagicEffect({x = 32748, y = 32537, z = 10}, 21)
|
||||
elseif creature:isPlayer() and creature:getPlayer():getStorageValue(293) < 17 then
|
||||
doRelocate(item:getPosition(),{x = 32839, y = 32532, z = 09})
|
||||
item:getPosition():sendMagicEffect(21)
|
||||
Game.sendMagicEffect({x = 32839, y = 32532, z = 09}, 21)
|
||||
end
|
||||
end
|
7
data/movements/scripts/nostalrius/154.lua
Normal file
7
data/movements/scripts/nostalrius/154.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
doRelocate(item:getPosition(),{x = 32839, y = 32532, z = 09})
|
||||
item:getPosition():sendMagicEffect(21)
|
||||
Game.sendMagicEffect({x = 32839, y = 32532, z = 09}, 21)
|
||||
end
|
||||
end
|
19
data/movements/scripts/nostalrius/155.lua
Normal file
19
data/movements/scripts/nostalrius/155.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if Game.isItemThere({x = 32876, y = 32584, z = 10},4996) and Game.isItemThere ({x = 32823, y = 32525, z = 10},4996) and Game.isItemThere ({x = 32792, y = 32527, z = 10},4996) and Game.isItemThere ({x = 32744, y = 32586, z = 10}, 4996) then
|
||||
doRelocate(item:getPosition(),{x = 32884, y = 32632, z = 11})
|
||||
item:getPosition():sendMagicEffect(21)
|
||||
Game.sendMagicEffect({x = 32884, y = 32632, z = 11}, 21)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 32853, y = 32543, z = 10})
|
||||
item:getPosition():sendMagicEffect(21)
|
||||
Game.sendMagicEffect({x = 32853, y = 32543, z = 10}, 21)
|
||||
item:getPosition():sendMonsterSay("Spectral guardians ward you off.")
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32853, y = 32543, z = 10})
|
||||
item:getPosition():sendMagicEffect(21)
|
||||
Game.sendMagicEffect({x = 32853, y = 32543, z = 10}, 21)
|
||||
item:getPosition():sendMonsterSay("Spectral guardians ward you off.")
|
||||
end
|
7
data/movements/scripts/nostalrius/156.lua
Normal file
7
data/movements/scripts/nostalrius/156.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 32874, y = 31942, z = 11})
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32874, y = 31942, z = 11})
|
||||
end
|
7
data/movements/scripts/nostalrius/157.lua
Normal file
7
data/movements/scripts/nostalrius/157.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 32874, y = 31953, z = 12})
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32874, y = 31953, z = 12})
|
||||
end
|
14
data/movements/scripts/nostalrius/158.lua
Normal file
14
data/movements/scripts/nostalrius/158.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and Game.isItemThere({x = 32584, y = 32465, z = 09},2567) and Game.isItemThere ({x = 32583, y = 32482, z = 09},2567) and Game.isItemThere ({x = 32610, y = 32523, z = 09},2567) and Game.isItemThere ({x = 32619, y = 32523, z = 09},2567) and Game.isItemThere ({x = 32647, y = 32483, z = 09},2567) and Game.isItemThere ({x = 32645, y = 32465, z = 09}, 2567) then
|
||||
doRelocate({x = 32615, y = 32484, z = 09},{x = 32615, y = 32485, z = 10})
|
||||
Game.sendMagicEffect({x = 32615, y = 32485, z = 10}, 11)
|
||||
else
|
||||
doRelocate({x = 32615, y = 32484, z = 09},{x = 32615, y = 32483, z = 09})
|
||||
Game.sendMagicEffect({x = 32615, y = 32483, z = 09}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate({x = 32615, y = 32484, z = 09},{x = 32615, y = 32483, z = 09})
|
||||
Game.sendMagicEffect({x = 32615, y = 32483, z = 09}, 11)
|
||||
end
|
6
data/movements/scripts/nostalrius/159.lua
Normal file
6
data/movements/scripts/nostalrius/159.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
doRelocate(item:getPosition(),{x = 32615, y = 32483, z = 09})
|
||||
Game.sendMagicEffect({x = 32615, y = 32483, z = 09}, 13)
|
||||
end
|
||||
end
|
6
data/movements/scripts/nostalrius/16.lua
Normal file
6
data/movements/scripts/nostalrius/16.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and not Game.isItemThere({x = 32259, y = 31891, z = 10}, 2129) then
|
||||
doRelocate({x = 32259, y = 31891, z = 10},{x = 32259, y = 31892, z = 10})
|
||||
Game.createItem(2129, 1, {x = 32259, y = 31891, z = 10})
|
||||
end
|
||||
end
|
7
data/movements/scripts/nostalrius/160.lua
Normal file
7
data/movements/scripts/nostalrius/160.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 32660, y = 32113, z = 08})
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32660, y = 32113, z = 08})
|
||||
end
|
11
data/movements/scripts/nostalrius/161.lua
Normal file
11
data/movements/scripts/nostalrius/161.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():isDruid() then
|
||||
doRelocate(item:getPosition(),{x = 32644, y = 32104, z = 09})
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 32641, y = 32141, z = 11})
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32641, y = 32141, z = 11})
|
||||
end
|
11
data/movements/scripts/nostalrius/162.lua
Normal file
11
data/movements/scripts/nostalrius/162.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():isSorcerer() then
|
||||
doRelocate(item:getPosition(),{x = 32659, y = 32105, z = 09})
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 32641, y = 32141, z = 11})
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32641, y = 32141, z = 11})
|
||||
end
|
11
data/movements/scripts/nostalrius/163.lua
Normal file
11
data/movements/scripts/nostalrius/163.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():isPaladin() then
|
||||
doRelocate(item:getPosition(),{x = 32676, y = 32088, z = 09})
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 32641, y = 32141, z = 11})
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32641, y = 32141, z = 11})
|
||||
end
|
11
data/movements/scripts/nostalrius/164.lua
Normal file
11
data/movements/scripts/nostalrius/164.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():isKnight() then
|
||||
doRelocate(item:getPosition(),{x = 32641, y = 32115, z = 09})
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 32641, y = 32141, z = 11})
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32641, y = 32141, z = 11})
|
||||
end
|
7
data/movements/scripts/nostalrius/165.lua
Normal file
7
data/movements/scripts/nostalrius/165.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33324, y = 31592, z = 15})
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33324, y = 31592, z = 15})
|
||||
end
|
11
data/movements/scripts/nostalrius/166.lua
Normal file
11
data/movements/scripts/nostalrius/166.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if Game.isItemThere({x = 33316, y = 31591, z = 15}, 1949) then
|
||||
doRelocate(item:getPosition(),{x = 33328, y = 31592, z = 14})
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
if Game.isItemThere({x = 33316, y = 31591, z = 15}, 1949) then
|
||||
doRelocate(item:getPosition(),{x = 33328, y = 31592, z = 14})
|
||||
end
|
||||
end
|
11
data/movements/scripts/nostalrius/167.lua
Normal file
11
data/movements/scripts/nostalrius/167.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33277, y = 31592, z = 11})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33277, y = 31592, z = 11}, 15)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33277, y = 31592, z = 11})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33277, y = 31592, z = 11}, 15)
|
||||
end
|
11
data/movements/scripts/nostalrius/168.lua
Normal file
11
data/movements/scripts/nostalrius/168.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33279, y = 31592, z = 12})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33279, y = 31592, z = 12}, 15)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33279, y = 31592, z = 12})
|
||||
item:getPosition():sendMagicEffect(15)
|
||||
Game.sendMagicEffect({x = 33279, y = 31592, z = 12}, 15)
|
||||
end
|
11
data/movements/scripts/nostalrius/169.lua
Normal file
11
data/movements/scripts/nostalrius/169.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33234, y = 31642, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33234, y = 31642, z = 14}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33234, y = 31642, z = 14})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33234, y = 31642, z = 14}, 11)
|
||||
end
|
6
data/movements/scripts/nostalrius/17.lua
Normal file
6
data/movements/scripts/nostalrius/17.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and not Game.isItemThere({x = 32259, y = 31890, z = 10}, 2129) then
|
||||
doRelocate({x = 32259, y = 31890, z = 10},{x = 32259, y = 31889, z = 10})
|
||||
Game.createItem(2129, 1, {x = 32259, y = 31890, z = 10})
|
||||
end
|
||||
end
|
7
data/movements/scripts/nostalrius/170.lua
Normal file
7
data/movements/scripts/nostalrius/170.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33070, y = 31620, z = 15})
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 33070, y = 31620, z = 15})
|
||||
end
|
8
data/movements/scripts/nostalrius/171.lua
Normal file
8
data/movements/scripts/nostalrius/171.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getStorageValue(323) == 1 and creature:getPlayer():isPremium() and creature:getPlayer():getItemCount(5021) >= 1 then
|
||||
doRelocate(item:getPosition(),{x = 32498, y = 31621, z = 06})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32498, y = 31621, z = 06}, 11)
|
||||
creature:getPlayer():removeItem(5021, 1)
|
||||
end
|
||||
end
|
8
data/movements/scripts/nostalrius/172.lua
Normal file
8
data/movements/scripts/nostalrius/172.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() and creature:getPlayer():getStorageValue(323) == 1 and creature:getPlayer():isPremium() and creature:getPlayer():getItemCount(5021) >= 1 then
|
||||
doRelocate(item:getPosition(),{x = 32664, y = 32735, z = 06})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32664, y = 32735, z = 06}, 11)
|
||||
creature:getPlayer():removeItem(5021, 1)
|
||||
end
|
||||
end
|
4
data/movements/scripts/nostalrius/173.lua
Normal file
4
data/movements/scripts/nostalrius/173.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate({x = 32274, y = 31847, z = 15},{x = 32171, y = 31855, z = 15})
|
||||
Game.sendMagicEffect({x = 32171, y = 31855, z = 15}, 11)
|
||||
end
|
4
data/movements/scripts/nostalrius/174.lua
Normal file
4
data/movements/scripts/nostalrius/174.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate({x = 32274, y = 31858, z = 15},{x = 32216, y = 31846, z = 15})
|
||||
Game.sendMagicEffect({x = 32216, y = 31846, z = 15}, 11)
|
||||
end
|
4
data/movements/scripts/nostalrius/175.lua
Normal file
4
data/movements/scripts/nostalrius/175.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate({x = 32267, y = 31847, z = 15},{x = 32275, y = 31905, z = 13})
|
||||
Game.sendMagicEffect({x = 32275, y = 31905, z = 13}, 11)
|
||||
end
|
4
data/movements/scripts/nostalrius/176.lua
Normal file
4
data/movements/scripts/nostalrius/176.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate({x = 32267, y = 31858, z = 15},{x = 32186, y = 31938, z = 14})
|
||||
Game.sendMagicEffect({x = 32186, y = 31938, z = 14}, 11)
|
||||
end
|
4
data/movements/scripts/nostalrius/177.lua
Normal file
4
data/movements/scripts/nostalrius/177.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate({x = 32266, y = 31857, z = 12},{x = 32266, y = 31864, z = 12})
|
||||
Game.sendMagicEffect({x = 32266, y = 31864, z = 12}, 11)
|
||||
end
|
4
data/movements/scripts/nostalrius/178.lua
Normal file
4
data/movements/scripts/nostalrius/178.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate({x = 32266, y = 31863, z = 12},{x = 32259, y = 31892, z = 10})
|
||||
Game.sendMagicEffect({x = 32259, y = 31892, z = 10}, 11)
|
||||
end
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user