First commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 31914, y = 32713, z = 6})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31914, y = 32713, z = 6}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 31914, y = 32713, z = 6})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31914, y = 32713, z = 6}, 11)
|
||||
end
|
@@ -0,0 +1,23 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
local headItem = player:getSlotItem(CONST_SLOT_HEAD)
|
||||
if headItem and isInArray({5460}, headItem.itemid) then
|
||||
player:teleportTo(Position(31915, 32716, 12))
|
||||
player:getPosition():sendMagicEffect(2)
|
||||
player:getPosition():sendMagicEffect(CONST_ME_LOSEENERGY)
|
||||
else
|
||||
position.y = position.y - 3
|
||||
player:teleportTo(position)
|
||||
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 31915, y = 32716, z = 12})
|
||||
Game.sendMagicEffect({x = 31915, y = 32716, z = 12}, 2)
|
||||
end
|
@@ -0,0 +1,21 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 32121, y = 32709, z = 7})
|
||||
Game.sendMagicEffect({x = 32121, y = 32709, z = 7}, 11)
|
||||
|
||||
local isInGhostMode = player:isInGhostMode()
|
||||
local spectators = Game.getSpectators(player:getPosition(), false, true, 3, 3)
|
||||
for i = 1, #spectators do
|
||||
player:say("This entrance has been sealed by the Edron Academy.", TALKTYPE_MONSTER_SAY, isInGhostMode, spectators[i], player:getPosition())
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32121, y = 32709, z = 7})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32121, y = 32709, z = 7}, 11)
|
||||
end
|
@@ -0,0 +1,16 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 32101, y = 32545, z = 07})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32101, y = 32545, z = 07}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32101, y = 32545, z = 07})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32101, y = 32545, z = 07}, 11)
|
||||
end
|
@@ -0,0 +1,21 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getStorageValue(17512) ~= 1 then
|
||||
player:setStorageValue(17512, 1)
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 31919, y = 32659, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31919, y = 32659, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 31919, y = 32659, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31919, y = 32659, z = 08}, 11)
|
||||
end
|
@@ -0,0 +1,21 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getStorageValue(17510) ~= 1 then
|
||||
player:setStorageValue(17510, 1)
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 32036, y = 32558, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32036, y = 32558, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32036, y = 32558, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32036, y = 32558, z = 08}, 11)
|
||||
end
|
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 31919, y = 32594, z = 10})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31919, y = 32594, z = 10}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 31919, y = 32594, z = 10})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31919, y = 32594, z = 10}, 11)
|
||||
end
|
@@ -0,0 +1,21 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getStorageValue(17511) ~= 1 then
|
||||
player:setStorageValue(17511, 1)
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 31948, y = 32554, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31948, y = 32554, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 31948, y = 32554, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31948, y = 32554, z = 08}, 11)
|
||||
end
|
@@ -0,0 +1,16 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getStorageValue(17509) < 5 then
|
||||
position:sendMagicEffect(CONST_ME_ENERGYHIT)
|
||||
|
||||
position.x = position.x + 2
|
||||
player:teleportTo(position)
|
||||
return true
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
@@ -0,0 +1,25 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getStorageValue(17513) ~= 2 then
|
||||
player:setStorageValue(17513, 1)
|
||||
doRelocate(item:getPosition(),{x = 32121, y = 32709, z = 7})
|
||||
Game.sendMagicEffect({x = 32121, y = 32709, z = 7}, 11)
|
||||
|
||||
local isInGhostMode = player:isInGhostMode()
|
||||
local spectators = Game.getSpectators(player:getPosition(), false, true, 3, 3)
|
||||
for i = 1, #spectators do
|
||||
player:say("This entrance has been sealed by the Edron Academy.", TALKTYPE_MONSTER_SAY, isInGhostMode, spectators[i], player:getPosition())
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 32121, y = 32703, z = 7})
|
||||
Game.sendMagicEffect({x = 32121, y = 32703, z = 7}, 11)
|
||||
player:setStorageValue(17513, 1)
|
||||
|
||||
return true
|
||||
end
|
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
position.y = position.y - 1
|
||||
player:teleportTo(position)
|
||||
|
||||
return true
|
||||
end
|
@@ -0,0 +1,16 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 32121, y = 32693, z = 04})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32121, y = 32693, z = 04}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32121, y = 32693, z = 04})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32121, y = 32693, z = 04}, 11)
|
||||
end
|
@@ -0,0 +1,31 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if Game.isItemThere({x = 31918, y = 32598, z = 10},3723) and Game.isItemThere({x = 31918, y = 32599, z = 10},3725) and Game.isItemThere({x = 31920, y = 32598, z = 10},3732) and Game.isItemThere({x = 31920, y = 32599, z = 10},3728) then
|
||||
Game.sendMagicEffect({x = 31918, y = 32598, z = 10}, 15)
|
||||
Game.removeItemOnMap({x = 31918, y = 32598, z = 10}, 3723)
|
||||
Game.sendMagicEffect({x = 31918, y = 32599, z = 10}, 15)
|
||||
Game.removeItemOnMap({x = 31918, y = 32599, z = 10}, 3725)
|
||||
Game.sendMagicEffect({x = 31920, y = 32598, z = 10}, 15)
|
||||
Game.removeItemOnMap({x = 31920, y = 32598, z = 10}, 3732)
|
||||
Game.sendMagicEffect({x = 31920, y = 32599, z = 10}, 15)
|
||||
Game.removeItemOnMap({x = 31920, y = 32599, z = 10}, 3728)
|
||||
|
||||
doRelocate(item:getPosition(),{x = 31914, y = 32605, z = 10})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31914, y = 32605, z = 10}, 11)
|
||||
else
|
||||
doRelocate(item:getPosition(),{x = 31919, y = 32597, z = 10})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31919, y = 32597, z = 10}, 11)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 31915, y = 32606, z = 10})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31915, y = 32606, z = 10}, 11)
|
||||
end
|
@@ -0,0 +1,16 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 32124, y = 32694, z = 05})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32124, y = 32694, z = 05}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32124, y = 32694, z = 05})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32124, y = 32694, z = 05}, 11)
|
||||
end
|
@@ -0,0 +1,22 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getStorageValue(17512) ~= 1 then
|
||||
Game.sendMagicEffect({x = 31926, y = 32656, z = 08}, 11)
|
||||
player:teleportTo({x = 31926, y = 32656, z = 08})
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 32021, y = 32680, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32021, y = 32680, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32021, y = 32680, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32021, y = 32680, z = 08}, 11)
|
||||
end
|
@@ -0,0 +1,22 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getStorageValue(17510) ~= 1 then
|
||||
Game.sendMagicEffect({x = 32043, y = 32559, z = 08}, 11)
|
||||
player:teleportTo({x = 32043, y = 32559, z = 08})
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 31948, y = 32554, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31948, y = 32554, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 31948, y = 32554, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31948, y = 32554, z = 08}, 11)
|
||||
end
|
@@ -0,0 +1,22 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getStorageValue(17511) ~= 1 then
|
||||
Game.sendMagicEffect({x = 31951, y = 32555, z = 08}, 11)
|
||||
player:teleportTo({x = 31951, y = 32555, z = 08})
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 31919, y = 32659, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31919, y = 32659, z = 08}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 31919, y = 32659, z = 08})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 31919, y = 32659, z = 08}, 11)
|
||||
end
|
@@ -0,0 +1,16 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:getCondition(CONDITION_INVISIBLE, CONDITIONID_COMBAT) or creature:getCondition(CONDITION_INVISIBLE, CONDITIONID_RING) then
|
||||
if item:getId() == 485 then
|
||||
doRelocate(item:getPosition(),{x = 32517, y = 32910, z = 8})
|
||||
elseif item:getId() == 1947 then
|
||||
doRelocate(item:getPosition(),{x = 32517, y = 32908, z = 7})
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
doRelocate(item:getPosition(),{x = 32519, y = 32914, z = 7})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32519, y = 32914, z = 7}, 11)
|
||||
creature:say("Why are you sneaking around in my house? Think I don't see you?", TALKTYPE_MONSTER_SAY, false, 0, creature:getPosition())
|
||||
end
|
@@ -0,0 +1,11 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 32410, y = 32794, z = 9})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32410, y = 32794, z = 9}, 11)
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32410, y = 32794, z = 9})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 32410, y = 32794, z = 9}, 11)
|
||||
end
|
@@ -0,0 +1,12 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
if creature:isPlayer() then
|
||||
doRelocate(item:getPosition(),{x = 32317, y = 32826, z = 07})
|
||||
creature:getPlayer():setTown(Town("Liberty Bay"))
|
||||
Game.sendMagicEffect({x = 32317, y = 32826, z = 07}, 13)
|
||||
end
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
doRelocate(item:getPosition(),{x = 32313, y = 32819, z = 07})
|
||||
Game.sendMagicEffect({x = 32313, y = 32819, z = 07}, 14)
|
||||
end
|
@@ -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
app/SabrehavenServer/data/movements/scripts/misc/damage.lua
Normal file
26
app/SabrehavenServer/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
|
@@ -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
|
61
app/SabrehavenServer/data/movements/scripts/misc/doors.lua
Normal file
61
app/SabrehavenServer/data/movements/scripts/misc/doors.lua
Normal file
@@ -0,0 +1,61 @@
|
||||
local verticalDoors = {
|
||||
[1643] = 1642,
|
||||
[1647] = 1646,
|
||||
[1661] = 1660,
|
||||
[1665] = 1664,
|
||||
[1675] = 1674,
|
||||
[1679] = 1678,
|
||||
[1697] = 1696,
|
||||
[1699] = 1698,
|
||||
[5112] = 5111,
|
||||
[5114] = 5113,
|
||||
[5130] = 5129,
|
||||
[5132] = 5131,
|
||||
[5288] = 5287,
|
||||
[5292] = 5291,
|
||||
[5748] = 5749,
|
||||
[6202] = 6201,
|
||||
[6206] = 6205,
|
||||
[6259] = 6258,
|
||||
[6263] = 6262,
|
||||
}
|
||||
|
||||
local horizontalDoors = {
|
||||
[1645] = 1644,
|
||||
[1649] = 1648,
|
||||
[1663] = 1662,
|
||||
[1667] = 1666,
|
||||
[1677] = 1676,
|
||||
[1681] = 1680,
|
||||
[1688] = 1687,
|
||||
[1690] = 1689,
|
||||
[5103] = 5102,
|
||||
[5105] = 5104,
|
||||
[5121] = 5120,
|
||||
[5123] = 5122,
|
||||
[5290] = 5289,
|
||||
[5294] = 5293,
|
||||
[5746] = 5745,
|
||||
[6204] = 6203,
|
||||
[6208] = 6207,
|
||||
[6261] = 6260,
|
||||
[6265] = 6264,
|
||||
}
|
||||
|
||||
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
|
@@ -0,0 +1,31 @@
|
||||
local condition = Condition(CONDITION_DROWN)
|
||||
condition:setTiming(5)
|
||||
|
||||
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if player == nil then
|
||||
return true
|
||||
end
|
||||
|
||||
local helmet = player:getSlotItem(CONST_SLOT_HEAD)
|
||||
if helmet ~= nil and helmet:getId() == 5460 then
|
||||
return true
|
||||
end
|
||||
|
||||
if math.random(1, 10) == 1 then
|
||||
position:sendMagicEffect(CONST_ME_BUBBLES)
|
||||
end
|
||||
player:addCondition(condition)
|
||||
return true
|
||||
end
|
||||
|
||||
function onStepOut(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if player == nil then
|
||||
return true
|
||||
end
|
||||
|
||||
player:removeCondition(CONDITION_DROWN)
|
||||
return true
|
||||
end
|
@@ -0,0 +1,4 @@
|
||||
function onAddItem(item, tileitem, position)
|
||||
item:remove()
|
||||
return true
|
||||
end
|
114
app/SabrehavenServer/data/movements/scripts/misc/floorchange.lua
Normal file
114
app/SabrehavenServer/data/movements/scripts/misc/floorchange.lua
Normal file
@@ -0,0 +1,114 @@
|
||||
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},
|
||||
[5257] = {x = -1, y = 0, z = -1},
|
||||
[5258] = {x = 0, y = -1, z = -1},
|
||||
[5259] = {x = -1, y = 0, z = -1},
|
||||
[5544] = {x = 0, y = 0, z = 1},
|
||||
[5691] = {x = 1, y = 0, z = 1},
|
||||
[5731] = {x = 0, y = 0, z = 1},
|
||||
[5763] = {x = 0, y = 0, z = 1},
|
||||
[6172] = {x = 0, y = 0, z = 1},
|
||||
[6173] = {x = 0, y = 0, 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
|
||||
|
||||
Tile(item:getPosition()):relocateTo(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
|
@@ -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
|
@@ -0,0 +1,8 @@
|
||||
function onAddItem(item, tileitem, position)
|
||||
if item:getId() == 2918 or item:getId() == 2917 then
|
||||
tileitem:transform(6279, 1)
|
||||
item:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
|
||||
item:remove()
|
||||
end
|
||||
return true
|
||||
end
|
@@ -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
|
@@ -0,0 +1,38 @@
|
||||
local config = {
|
||||
[17578] = { name = "edronorshabaal", message = "CHAMEK ATH UTHUL ARAK!", count=100 },
|
||||
[17579] = { name = "ferumbras", message = "Hahahaha! I have never been killed by the Avar Tar!", count=100 },
|
||||
[17580] = { name = "morgaroth", message = "THE TRIANGLE OF TERROR WILL RISE!", count=100 },
|
||||
[17581] = { name = "libertybaypirates", message = "Plundeeeeer!", count=100 }
|
||||
}
|
||||
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
doRelocate(item:getPosition(),{x = 33268, y = 31835, z = 9})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33268, y = 31835, z = 9}, 11)
|
||||
item:getPosition():sendMonsterSay("Mystic flame ward you off.")
|
||||
end
|
||||
|
||||
function onAddItem(item, tileitem, position)
|
||||
local movementId = tileitem:getMovementId()
|
||||
local raid = config[movementId]
|
||||
|
||||
if (item:getId() ~= 5776) then
|
||||
doRelocate(item:getPosition(),{x = 33268, y = 31835, z = 9})
|
||||
item:getPosition():sendMagicEffect(11)
|
||||
Game.sendMagicEffect({x = 33268, y = 31835, z = 9}, 11)
|
||||
tileitem:getPosition():sendMonsterSay("Mystic flame spit out the sacrifice.")
|
||||
return true
|
||||
end
|
||||
|
||||
local currentCount = getGlobalStorageValue(movementId) + item:getCount()
|
||||
setGlobalStorageValue(movementId, currentCount)
|
||||
if (currentCount >= raid.count) then
|
||||
item:getPosition():sendMonsterSay(raid.message)
|
||||
Game.startRaid(raid.name)
|
||||
tileitem:remove()
|
||||
setGlobalStorageValue(movementId, 0)
|
||||
end
|
||||
|
||||
item:getPosition():sendMagicEffect(CONST_ME_FIREAREA)
|
||||
item:remove()
|
||||
end
|
@@ -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
|
@@ -0,0 +1,14 @@
|
||||
function onAddItem(item, tileitem, position)
|
||||
if item:getId() == 5898 then
|
||||
tileitem:getPosition():sendMonsterSay("MORE! MORE!")
|
||||
item:remove(-1)
|
||||
return true
|
||||
elseif item:getId() == 5776 then
|
||||
tileitem:getPosition():sendMonsterSay("OHHH! WILL USE IT LATER!")
|
||||
item:remove(-1)
|
||||
return true
|
||||
end
|
||||
|
||||
tileitem:getPosition():sendMonsterSay("I WANT EYES!")
|
||||
item:remove(-1)
|
||||
end
|
@@ -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
app/SabrehavenServer/data/movements/scripts/misc/tar.lua
Normal file
7
app/SabrehavenServer/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
|
34
app/SabrehavenServer/data/movements/scripts/misc/turtles.lua
Normal file
34
app/SabrehavenServer/data/movements/scripts/misc/turtles.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
local config = {
|
||||
[51191] = Position(32359, 32901, 7),
|
||||
[51192] = Position(32340, 32538, 7),
|
||||
[51193] = Position(32472, 32869, 7),
|
||||
[51194] = Position(32415, 32916, 7),
|
||||
[51195] = Position(32490, 32979, 7),
|
||||
[51196] = Position(32440, 32971, 7),
|
||||
[51197] = Position(32523, 32923, 7),
|
||||
[51198] = Position(32527, 32951, 7)
|
||||
}
|
||||
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
local targetPosition = config[item:getMovementId()]
|
||||
if not targetPosition then
|
||||
return true
|
||||
end
|
||||
|
||||
if item:getMovementId() == 51191 and player:getStorageValue(17502) < 13 then
|
||||
player:teleportTo(Position(32340, 32540, 7))
|
||||
position:sendMagicEffect(CONST_ME_TELEPORT)
|
||||
Position(32340, 32540, 7):sendMagicEffect(CONST_ME_TELEPORT)
|
||||
return true
|
||||
end
|
||||
|
||||
player:teleportTo(targetPosition)
|
||||
position:sendMagicEffect(CONST_ME_TELEPORT)
|
||||
targetPosition:sendMagicEffect(CONST_ME_TELEPORT)
|
||||
return true
|
||||
end
|
@@ -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
app/SabrehavenServer/data/movements/scripts/nostalrius/1.lua
Normal file
36
app/SabrehavenServer/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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user