First commit
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user