finish shatted isles quest

This commit is contained in:
ErikasKontenis
2019-12-12 15:47:57 +02:00
parent 2169339d84
commit e415a533a4
25 changed files with 440 additions and 4 deletions

View File

@@ -395,6 +395,34 @@
<movevent event="StepIn" itemid="5764" script="misc/drowning.lua" />
<movevent event="StepOut" itemid="5764" script="misc/drowning.lua"/>
<!-- Goroma -->
<movevent event="StepIn" frommovementid="17506" tomovementid="17508" script="goroma/energy_barrier.lua" />
<movevent event="StepIn" movementid="17510" script="goroma/to_ramoa.lua" />
<movevent event="AddItem" movementid="17510" tileitem="1" script="goroma/to_ramoa.lua" />
<movevent event="StepIn" movementid="17511" script="goroma/back_ramoa.lua" />
<movevent event="AddItem" movementid="17511" tileitem="1" script="goroma/back_ramoa.lua" />
<movevent event="StepIn" movementid="17512" script="goroma/to_talahu.lua" />
<movevent event="AddItem" movementid="17512" tileitem="1" script="goroma/to_talahu.lua" />
<movevent event="StepIn" movementid="17513" script="goroma/sacrifice_mushroom_talahu.lua" />
<movevent event="AddItem" movementid="17513" tileitem="1" script="goroma/sacrifice_mushroom_talahu.lua" />
<movevent event="StepIn" movementid="17514" script="goroma/back_sacrifice_mushroom_talahu.lua" />
<movevent event="AddItem" movementid="17514" tileitem="1" script="goroma/back_sacrifice_mushroom_talahu.lua" />
<movevent event="StepIn" movementid="17515" script="goroma/back_talahu.lua" />
<movevent event="AddItem" movementid="17515" tileitem="1" script="goroma/back_talahu.lua" />
<movevent event="StepIn" movementid="17516" script="goroma/to_malada.lua" />
<movevent event="AddItem" movementid="17516" tileitem="1" script="goroma/to_malada.lua" />
<movevent event="StepIn" movementid="17517" script="goroma/back_malada.lua" />
<movevent event="AddItem" movementid="17517" tileitem="1" script="goroma/back_malada.lua" />
<movevent event="StepIn" movementid="17518" script="goroma/back_kharos.lua" />
<movevent event="AddItem" movementid="17518" tileitem="1" script="goroma/back_kharos.lua" />
<movevent event="StepIn" frommovementid="17519" tomovementid="17522" script="goroma/energy_barrier_kharos.lua" />
<movevent event="StepIn" frommovementid="17523" tomovementid="17524" script="goroma/entrance_kharos.lua" />
<movevent event="StepIn" movementid="17525" script="goroma/second_ferumbras_floor.lua" />
<movevent event="AddItem" movementid="17525" tileitem="1" script="goroma/second_ferumbras_floor.lua" />
<movevent event="StepIn" movementid="17526" script="goroma/final_ferumbras_floor.lua" />
<movevent event="AddItem" movementid="17526" tileitem="1" script="goroma/final_ferumbras_floor.lua" />
<movevent event="StepIn" movementid="17527" script="goroma/back_ferumbras_floor.lua" />
<movevent event="AddItem" movementid="17527" tileitem="1" script="goroma/back_ferumbras_floor.lua" />
<!-- Floorchange -->
<movevent event="StepIn" itemid="293" script="misc/floorchange.lua" />
<movevent event="AddItem" itemid="293" tileitem="1" script="misc/floorchange.lua" />

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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