-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 3cc2fcc.
- Loading branch information
Showing
8 changed files
with
57 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...br-global/scripts/quests/the_dream_courts_quest/globalevents_dream_courts_worldchange.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
local config = { | ||
["Monday"] = "Alptramun", | ||
["Tuesday"] = "Izcandar_the_Banished", | ||
["Friday"] = "Malofur_Mangrinder", | ||
["Thursday"] = "Maxxenius", | ||
["Wednesday"] = "Malofur_Mangrinder", | ||
["Saturday"] = "Plagueroot", | ||
["Sunday"] = "Maxxenius", | ||
} | ||
|
||
local spawnByDay = true | ||
|
||
local globalevents_dream_courts_worldchange = GlobalEvent("startupCourts") | ||
|
||
function globalevents_dream_courts_worldchange.onStartup(interval) | ||
if spawnByDay then | ||
logger.info("[The Dream Courts Quest] loaded: " .. config[os.date("%A")]) | ||
Game.loadMap("data/world/worldchanges/dream_courts_bosses/" .. config[os.date("%A")] .. ".otbm") | ||
else | ||
logger.warn("[The Dream Courts Quest] bosses: not boss today") | ||
end | ||
return true | ||
end | ||
|
||
globalevents_dream_courts_worldchange:register() | ||
|
||
local globalevents_dream_courts_worldchange = GlobalEvent("fixCourts") | ||
|
||
function globalevents_dream_courts_worldchange.onTime(interval) | ||
if spawnByDay then | ||
logger.info("[The Dream Courts Quest] loaded: " .. config[os.date("%A")]) | ||
Game.loadMap("data/world/worldchanges/dream_courts_bosses/" .. config[os.date("%A")] .. ".otbm") | ||
else | ||
logger.warn("[The Dream Courts Quest] bosses: not boss today") | ||
end | ||
|
||
return true | ||
end | ||
|
||
globalevents_dream_courts_worldchange:time("00:00") | ||
globalevents_dream_courts_worldchange:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters