Skip to content

Commit

Permalink
fix: quests from version 12 revised (#3042)
Browse files Browse the repository at this point in the history
  • Loading branch information
htc16 authored Jan 9, 2025
1 parent 13dbc4f commit ffd47ca
Show file tree
Hide file tree
Showing 203 changed files with 8,125 additions and 1,656 deletions.
72 changes: 70 additions & 2 deletions data-otservbr-global/lib/core/quests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6343,12 +6343,12 @@ if not Quests then
},
[47] = {
name = "Grave Danger",
startStorageId = Storage.Quest.U12_20.GraveDanger.QuestLine,
startStorageId = Storage.Quest.U12_20.GraveDanger.Questline,
startStorageValue = 1,
missions = {
[1] = {
name = "* Grave Danger - The Lich Knights",
storageId = Storage.Quest.U12_20.GraveDanger.QuestLine,
storageId = Storage.Quest.U12_20.GraveDanger.Questline,
missionId = 10437,
startValue = 1,
endValue = 2,
Expand Down Expand Up @@ -6633,5 +6633,73 @@ if not Quests then
},
},
},
[50] = {
name = "The Dream Courts",
startStorageId = Storage.Quest.U12_00.TheDreamCourts.Main.Questline,
startStorageValue = 1,
missions = {
[1] = {
name = "The Dream Courts",
storageId = Storage.Quest.U12_00.TheDreamCourts.WardStones.Questline,
missionId = 10457,
startValue = 1,
endValue = 3,
states = {
[1] = function(player)
return string.format("You already got %d/8 energized ward stones.", math.max(player:getStorageValue(Storage.Quest.U12_00.TheDreamCourts.WardStones.Count), 0))
end,
[2] = "You must kill the Nightmare Beast.",
[3] = "By defeating the dreadful Nightmare Beast you did the Winter Court and the Summer Court alike a great favor. From now on, the dream elves will regard you as a friend.",
},
},
[2] = {
name = "Unsafe Release",
storageId = Storage.Quest.U12_00.TheDreamCourts.UnsafeRelease.Questline,
missionId = 10458,
startValue = 1,
endValue = 3,
states = {
[1] = "Part I",
[2] = "Part II",
[3] = "Andre was happy to hear that the compass works as intendend. From now on it is possible that he will charge your compass again. It can be used to give acess to mystical chests once a day.",
},
},
[3] = {
name = "Haunted House",
storageId = Storage.Quest.U12_00.TheDreamCourts.HauntedHouse.Questline,
missionId = 10459,
startValue = 1,
endValue = 6,
states = {
[1] = function(player)
return string.format(
"A tormented soul trusted you with the secret of this house: join the passages to the three dungeons it connects to reveal a hidden portal within!\n\nCellar %d/1\nTemple %d/1\nTomb %d/1",
math.max(player:getStorageValue(Storage.Quest.U12_00.TheDreamCourts.HauntedHouse.Cellar), 0),
math.max(player:getStorageValue(Storage.Quest.U12_00.TheDreamCourts.HauntedHouse.Temple), 0),
math.max(player:getStorageValue(Storage.Quest.U12_00.TheDreamCourts.HauntedHouse.Tomb), 0)
)
end,
[2] = "Part I - burried catedral",
[3] = "Part II - puzzle dos livros",
[4] = "Part III - bosses",
[5] = "Part IV - last stone",
[6] = "Activating the ward stone after defeating the Faceless Bane has gained you acess to the deepest mysteries of the dream courts.",
},
},
[4] = {
name = "The Seven Keys",
storageId = Storage.Quest.U12_00.TheDreamCourts.TheSevenKeys.Questline,
missionId = 10460,
startValue = 1,
endValue = 2,
states = {
[1] = function(player)
return string.format("You already got %d/7 secret keys.", math.max(player:getStorageValue(Storage.Quest.U12_00.TheDreamCourts.TheSevenKeys.Count), 0))
end,
[2] = "You found the seven keys to unlock the Seven Dream Doors in the Labyrinth of Summer's and Winter's Dreams.",
},
},
},
},
}
end
Loading

0 comments on commit ffd47ca

Please sign in to comment.