Skip to content

Commit

Permalink
The Dream Courts Quest - End
Browse files Browse the repository at this point in the history
  • Loading branch information
htc16 committed Nov 2, 2024
1 parent c85cc68 commit 276c406
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ monster.manaCost = 0

monster.events = {
"dreamCourtsDeath",
"facelessHealth",
}

monster.changeTarget = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ monster.manaCost = 0

monster.events = {
"dreamCourtsDeath",
"facelessHealth",
}

monster.changeTarget = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ monster.manaCost = 0

monster.events = {
"dreamCourtsDeath",
"facelessHealth",
}

monster.changeTarget = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local transform = {
[9110] = 9111,
[9111] = 9110,
[8911] = 8912,
[8912] = 8911,
}

local bossNames = {
Expand Down Expand Up @@ -247,7 +247,7 @@ function actions_dreamscarLevers.onUse(player, item, fromPosition, target, toPos
local pPos = player:getPosition()
local nightmareLever = Position(32212, 32069, 15)

if item.itemid == 9110 then
if item.itemid == 8911 then
if iPos == nightmareLever then
if player:doCheckBossRoom(lastBoss.bossName, lastBoss.roomFromPosition, lastBoss.roomToPosition) then
if pPos:isInRange(lastBoss.fromPositionPush, lastBoss.toPositionPush) then
Expand Down Expand Up @@ -332,14 +332,11 @@ function actions_dreamscarLevers.onUse(player, item, fromPosition, target, toPos
monster:registerEvent("facelessHealth")
elseif leverTable.bossName:lower() == "izcandar the banished" then
monster:registerEvent("izcandarThink")

spawnSummons(1, "the heat of summer", false, 15, heatOfSummer, leverTable.bossPosition)
spawnSummons(1, "the cold of winter", false, 15, coldOfWinter, leverTable.bossPosition)

Game.setStorageValue(Storage.Quest.U12_00.TheDreamCourts.DreamScarGlobal.IzcandarOutfit, 0)
elseif leverTable.bossName:lower() == "plagueroot" then
spawnSummons(1, "plant attendant", false, 15, plantAttendants, leverTable.bossPosition)

monster:registerEvent("facelessHealth")
elseif leverTable.bossName:lower() == "malofur mangrinder" then
for i = 1, #whirlingBlades do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ local questlog = {
[7] = {
bossName = "Plagueroot",
storageQuestline = Storage.Quest.U12_00.TheDreamCourts.DreamScar.BossCount,
storageTimer = Storage.Quest.U12_00.TheDreamCourts.DreamScarGlobal.PlaguerootTimer,
storageTimer = Storage.Quest.U12_00.TheDreamCourts.DreamScarGlobal.PlagueRootTimer,
middlePosition = Position(32208, 32048, 14),
maxValue = 5,
},
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local dreamCourtsConfig = {
["Monday"] = { map = "plagueroot", bossName = "Plagueroot" },
["Tuesday"] = { map = "malofur_mangrinder", bossName = "Malofur Mangrinder" },
["Wednesday"] = { map = "maxxenius", bossName = "Maxxenius" },
["Thursday"] = { map = "alptramun", bossName = "Alptramun" },
["Monday"] = { map = "alptramun", bossName = "Alptramun" },
["Tuesday"] = { map = "izcandar_the_banished", bossName = "Izcandar the Banished" },
["Wednesday"] = { map = "malofur_mangrinder", bossName = "Malofur Mangrinder" },
["Thursday"] = { map = "maxxenius", bossName = "Maxxenius" },
["Friday"] = { map = "izcandar_the_banished", bossName = "Izcandar the Banished" },
["Saturday"] = { map = "maxxenius", bossName = "Maxxenius" },
["Sunday"] = { map = "alptramun", bossName = "Alptramun" },
["Saturday"] = { map = "plagueroot", bossName = "Plagueroot" },
["Sunday"] = { map = "maxxenius", bossName = "Maxxenius" },
}

local dreamCourtsEvent = GlobalEvent("DreamCourts")
Expand All @@ -20,6 +20,7 @@ function dreamCourtsEvent.onStartup()

Game.loadMap(DATA_DIRECTORY .. "/world/quest/the_dream_courts/" .. dayConfig.map .. ".otbm")
logger.info("[World Change] The Dream Courts today's boss is: {}!", dayConfig.bossName)

return true
end

Expand Down
1 change: 1 addition & 0 deletions data-otservbr-global/startup/tables/item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,7 @@ ItemAction = {
{ x = 32211, y = 32081, z = 15 },
{ x = 32720, y = 32270, z = 8 },
{ x = 33618, y = 32546, z = 13 },
{ x = 32208, y = 32033, z = 13 },
},
},
[23104] = {
Expand Down

0 comments on commit 276c406

Please sign in to comment.