Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: quests from version 10 revised #2855

Merged
merged 62 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
8823429
Hunting for Tokens Quest
htc16 Aug 27, 2024
951b6d0
Lua code format - (Stylua)
github-actions[bot] Aug 27, 2024
3e579bc
Merge remote-tracking branch 'upstream/main' into Review-Quests-V10
htc16 Aug 30, 2024
9aba63f
The Gravedigger of Drefia Quest - part 1
htc16 Sep 2, 2024
f1c6472
Lua code format - (Stylua)
github-actions[bot] Sep 2, 2024
6a506f4
The Gravedigger of Drefia Quest - last part
htc16 Sep 2, 2024
9fc12c4
Lua code format - (Stylua)
github-actions[bot] Sep 2, 2024
5114a9f
Update movements_sacrifice_teleport.lua
htc16 Sep 3, 2024
ffe71bb
Lua code format - (Stylua)
github-actions[bot] Sep 3, 2024
c64a549
Spike Task Quest - part 1
htc16 Sep 3, 2024
5003476
Lua code format - (Stylua)
github-actions[bot] Sep 3, 2024
56e1f1a
Spike Task Quests - Tasks 25-49
htc16 Sep 3, 2024
c790f50
Spike Task Quests - Tasks 50-79
htc16 Sep 4, 2024
907b736
Lua code format - (Stylua)
github-actions[bot] Sep 4, 2024
186c8c7
Spike Task Quests - Tasks 80+
htc16 Sep 4, 2024
4989c6a
Lua code format - (Stylua)
github-actions[bot] Sep 4, 2024
6ccd18d
Roshamuul Quest
htc16 Sep 4, 2024
bd7e6f7
Tinder Box Quest - Event Chyllfroest
htc16 Sep 5, 2024
367dac0
Tinder Box Quest - Event Chyllfroest - fix
htc16 Sep 5, 2024
99cd9f9
Dark Trails Quest
htc16 Sep 11, 2024
01bc03b
Lua code format - (Stylua)
github-actions[bot] Sep 11, 2024
8764b2a
Glooth Engineer Outfits Quest
htc16 Sep 11, 2024
94b711f
Oramond Quest
htc16 Sep 12, 2024
ce02ed0
Lua code format - (Stylua)
github-actions[bot] Sep 12, 2024
52c5056
Sanctuary of the Lizard God Quest
htc16 Sep 12, 2024
2a85820
Update storages.lua
htc16 Sep 12, 2024
3a41e58
Oramond Quest - @marco
htc16 Sep 12, 2024
03455dd
Lua code format - (Stylua)
github-actions[bot] Sep 12, 2024
2d76861
Lions Rock Quest
htc16 Sep 12, 2024
eed0054
Update storages.lua
htc16 Sep 12, 2024
e35d65d
Lions Rock Quest - minor tweaks to finish
htc16 Sep 12, 2024
d296a31
Lion Rock Quest - Final Touch
htc16 Sep 12, 2024
4474eae
Lion Rock Quest - Final Touch 2
htc16 Sep 12, 2024
7231dd5
Update gems.lua
htc16 Sep 13, 2024
1eef4a2
Update gems.lua
htc16 Sep 13, 2024
3483986
The Cursed Crystal Quest
htc16 Sep 13, 2024
bb37f6b
Lua code format - (Stylua)
github-actions[bot] Sep 13, 2024
1eb2eac
Update movements_StepIn_CursedCrystal.lua
htc16 Sep 13, 2024
142a877
Merge branch 'Review-Quests-V10' of https://github.com/htc16/canary i…
htc16 Sep 14, 2024
d4936b5
Lua code format - (Stylua)
github-actions[bot] Sep 14, 2024
a6027f4
Storage organization
htc16 Sep 14, 2024
9b2c08e
@omarcopires
htc16 Sep 14, 2024
479e195
Lua code format - (Stylua)
github-actions[bot] Sep 14, 2024
fc47052
Update gnome_trooper.lua
htc16 Sep 14, 2024
e995e62
Merge branch 'Review-Quests-V10' of https://github.com/htc16/canary i…
htc16 Sep 14, 2024
17e24d7
More storage organization
htc16 Sep 14, 2024
bfb5be3
More storage organization
htc16 Sep 15, 2024
3721c3a
Small adjustment to The Cursed Crystal quest
htc16 Sep 15, 2024
96b671d
Lua code format - (Stylua)
github-actions[bot] Sep 15, 2024
3638470
Grimvale Quest
htc16 Sep 15, 2024
d4c7e89
Nightmare Teddy Quest
htc16 Sep 15, 2024
37e2cae
The Great Dragon Hunt Quest
htc16 Sep 16, 2024
5e1e6a5
Lua code format - (Stylua)
github-actions[bot] Sep 16, 2024
0b1eb65
The Lost Brother Quest
htc16 Sep 16, 2024
09c5627
The Tainted Souls Quest
htc16 Sep 18, 2024
15b7e0a
Lua code format - (Stylua)
github-actions[bot] Sep 18, 2024
839d5de
Ferumbras' Ascension Quest
htc16 Sep 19, 2024
3396f68
Lua code format - (Stylua)
github-actions[bot] Sep 19, 2024
a9fde32
Update storages.lua
htc16 Sep 19, 2024
8a20933
Merge remote-tracking branch 'upstream/main' into Review-Quests-V10
htc16 Sep 20, 2024
b47a3d7
Update one_eyed_joe.lua
htc16 Sep 23, 2024
54e17eb
Merge remote-tracking branch 'upstream/main' into Review-Quests-V10
htc16 Sep 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 89 additions & 86 deletions data-otservbr-global/lib/core/storages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -505,91 +505,6 @@ Storage = {
AmuletTimer = 50520,
AmuletStatus = 50521,
},
GravediggerOfDrefia = {
-- Reserved storage from 50760 - 50849
QuestStart = 50760,
Mission01 = 50761,
Mission02 = 50762,
Mission03 = 50763,
Mission04 = 50764,
Mission05 = 50765,
Mission06 = 50766,
Mission07 = 50767,
Mission08 = 50768,
Mission09 = 50769,
Mission10 = 50770,
Mission11 = 50771,
Mission12 = 50772,
Mission13 = 50773,
Mission14 = 50774,
Mission15 = 50775,
Mission16 = 50776,
Mission17 = 50777,
Mission18 = 50778,
Mission19 = 50779,
Mission20 = 50780,
Mission21 = 50781,
Mission22 = 50782,
Mission23 = 50783,
Mission24 = 50784,
Mission25 = 50785,
Mission26 = 50786,
Mission27 = 50787,
Mission28 = 50788,
Mission29 = 50789,
Mission30 = 50790,
Mission31 = 50791,
Mission32 = 50792,
Mission32a = 50793,
Mission32b = 50794,
Mission33 = 50795,
Mission34 = 50796,
Mission35 = 50797,
Mission36 = 50798,
Mission36a = 50799,
Mission37 = 50800,
Mission38 = 50801,
Mission38a = 50802,
Mission38b = 50803,
Mission38c = 50804,
Mission39 = 50805,
Mission40 = 50806,
Mission41 = 50807,
Mission42 = 50808,
Mission43 = 50809,
Mission44 = 50810,
Mission45 = 50811,
Mission46 = 50812,
Mission47 = 50813,
Mission48 = 50814,
Mission49 = 50815,
Mission50 = 50816,
Mission51 = 50817,
Mission52 = 50818,
Mission53 = 50819,
Mission54 = 50820,
Mission55 = 50821,
Mission56 = 50822,
Mission57 = 50823,
Mission58 = 50824,
Mission59 = 50825,
Mission60 = 50826,
Mission61 = 50827,
Mission62 = 50828,
Mission63 = 50829,
Mission64 = 50830,
Mission65 = 50831,
Mission66 = 50832,
Mission67 = 50833,
Mission68 = 50834,
Mission69 = 50835,
Mission70 = 50836,
Mission71 = 50837,
Mission72 = 50838,
Mission73 = 50839,
Mission74 = 50840,
Bookcase = 50841,
},
Oramond = {
-- Reserved storage from 50850 - 50879
QuestLine = 50850,
Expand Down Expand Up @@ -2392,7 +2307,95 @@ Storage = {
HuntingForTokens = {},
OpticordingSphere = {},
SmallSapphire = {},
TheGravediggerOfDrefia = {},
TheGravediggerOfDrefia = {
QuestStart = 44200,
Mission01 = 44201,
Mission02 = 44203,
Mission03 = 44204,
Mission04 = 44205,
Mission05 = 44206,
Mission06 = 44207,
Mission07 = 44208,
Mission08 = 44209,
Mission09 = 44210,
Mission10 = 44211,
Mission11 = 44212,
Mission12 = 44213,
Mission13 = 44214,
Mission14 = 44215,
Mission15 = 44216,
Mission16 = 44217,
Mission17 = 44218,
Mission18 = 44219,
Mission19 = 44220,
Mission20 = 44221,
Mission21 = 44222,
Mission22 = 44223,
Mission23 = 44224,
Mission24 = 44225,
Mission25 = 44226,
Mission26 = 44227,
Mission27 = 44228,
Mission28 = 44229,
Mission29 = 44230,
Mission30 = 44231,
Mission31 = 44232,
Mission32 = 44233,
Mission32a = 44234,
Mission32b = 44235,
Mission33 = 44236,
Mission34 = 44237,
Mission35 = 44238,
Mission36 = 44239,
Mission36a = 44240,
Mission37 = 44241,
Mission38 = 44242,
Mission38a = 44243,
Mission38b = 44244,
Mission38c = 44245,
Mission39 = 44246,
Mission40 = 44247,
Mission41 = 44248,
Mission42 = 44249,
Mission43 = 44250,
Mission44 = 44251,
Mission45 = 44252,
Mission46 = 44253,
Mission47 = 44254,
Mission48 = 44255,
Mission49 = 44256,
Mission50 = 44257,
Mission51 = 44258,
Mission52 = 44259,
Mission53 = 44260,
Mission54 = 44261,
Mission55 = 44262,
Mission56 = 44263,
Mission57 = 44264,
Mission58 = 44265,
Mission59 = 44266,
Mission60 = 44267,
Mission61 = 44268,
Mission62 = 44269,
Mission63 = 44270,
Mission64 = 44271,
Mission65 = 44272,
Mission66 = 44273,
Mission67 = 44274,
Mission68 = 44275,
Mission69 = 44276,
Mission70 = 44277,
Mission71 = 44278,
Mission72 = 44279,
Mission73 = 44280,
Mission74 = 44281,
Mission75 = 44282,
Mission76 = 44283,
Bookcase = 44285,
SmallDragonTears1 = 44286,
SmallDragonTears2 = 44287,
SmallDragonTears3 = 44288,
},
TheRepenters = {},
},
U10_20 = { -- update 10.20 - Reserved Storages 44301 - 44400
Expand Down
13 changes: 12 additions & 1 deletion data-otservbr-global/monster/humans/necromancer_servant.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ monster.corpse = 18174
monster.speed = 105
monster.manaCost = 0

monster.events = {
"NecromancerServantDeath",
}

monster.changeTarget = {
interval = 5000,
chance = 8,
Expand Down Expand Up @@ -59,7 +63,14 @@ monster.voices = {
chance = 10,
}

monster.loot = {}
monster.loot = {
{ name = "gold coin", chance = 74230, maxCount = 70 },
{ name = "poison arrow", chance = 74230, maxCount = 5 },
{ name = "book of necromantic rituals", chance = 74230 },
{ name = "incantation fragment", chance = 100000 },
{ name = "necromantic robe", chance = 54230 },
{ name = "boots of haste", chance = 5000 },
}

monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -45 },
Expand Down
20 changes: 10 additions & 10 deletions data-otservbr-global/npc/elyen_ravenlock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,43 +61,43 @@ local function creatureSayCallback(npc, creature, type, message)
return false
end

if (MsgContains(message, "scroll") or MsgContains(message, "mission")) and player:getStorageValue(Storage.GravediggerOfDrefia.Mission60) == 1 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission61) < 1 then
if (MsgContains(message, "scroll") or MsgContains(message, "mission")) and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission60) == 1 and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission61) < 1 then
npcHandler:say("Hello, brother. You come with a question to me, I believe?", npc, creature)
npcHandler:setTopic(playerId, 1)
elseif MsgContains(message, "yes") and npcHandler:getTopic(playerId) == 1 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission60) == 1 then
elseif MsgContains(message, "yes") and npcHandler:getTopic(playerId) == 1 and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission60) == 1 then
npcHandler:say("And what is it you want? Do you bring news from the undead, or do you seek a dark {artefact}?", npc, creature)
player:setStorageValue(Storage.GravediggerOfDrefia.Mission45, 1)
player:setStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission45, 1)
npcHandler:setTopic(playerId, 2)
elseif (MsgContains(message, "artefact") or MsgContains(message, "yes")) and npcHandler:getTopic(playerId) == 2 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission60) == 1 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission61) < 1 then
elseif (MsgContains(message, "artefact") or MsgContains(message, "yes")) and npcHandler:getTopic(playerId) == 2 and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission60) == 1 and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission61) < 1 then
npcHandler:say({
"The scroll piece there? The symbols look promising, but it is incomplete. ...",
"It is of little use to us. But it seems to be of interest to you ...",
"In exchange for the scroll piece, you must assist me with something. {Agreed}?",
}, npc, creature)
npcHandler:setTopic(playerId, 3)
elseif (MsgContains(message, "agreed") or MsgContains(message, "yes")) and npcHandler:getTopic(playerId) == 3 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission60) == 1 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission61) < 1 then
elseif (MsgContains(message, "agreed") or MsgContains(message, "yes")) and npcHandler:getTopic(playerId) == 3 and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission60) == 1 and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission61) < 1 then
npcHandler:say({
"I would have to sing to the Dark Shrines, but I cannot. ...",
"I... cannot bear Urgith's breed. Everywhere, I hear them - scrabbling, squeaking ...",
"Take this bone flute and play it in front of the five Dark Shrines so that they answer with song in return. You will find them in the Gardens of Night. ...",
"If you have done that, you may have the scroll piece. Now go.",
}, npc, creature)
player:setStorageValue(Storage.GravediggerOfDrefia.Mission61, 1)
player:setStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission61, 1)
player:addItem(18932, 1)
npcHandler:setTopic(playerId, 0)
elseif MsgContains(message, "mission") and player:getStorageValue(Storage.GravediggerOfDrefia.Mission66) == 1 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission67) < 1 then
elseif MsgContains(message, "mission") and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission66) == 1 and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission67) < 1 then
npcHandler:say("Hello, brother. You have finished the dance?", npc, creature)
npcHandler:setTopic(playerId, 4)
elseif (MsgContains(message, "yes")) and npcHandler:getTopic(playerId) == 4 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission66) == 1 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission67) < 1 then
elseif (MsgContains(message, "yes")) and npcHandler:getTopic(playerId) == 4 and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission66) == 1 and player:getStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission67) < 1 then
npcHandler:say({
"You have indeed. The shrines have sung back to you. Well done, brother. Not many men take such an interest in our art. ...",
"I will take the flute back. Our bargain stands. You may take the scroll.",
}, npc, creature)
player:removeItem(18932, 1)
player:setStorageValue(Storage.GravediggerOfDrefia.Mission67, 1)
player:setStorageValue(Storage.Quest.U10_10.TheGravediggerOfDrefia.Mission67, 1)
npcHandler:setTopic(playerId, 0)
else
npcHandler:say({ "Time is money, hurry." }, npc, creature)
npcHandler:say("Time is money, hurry.", npc, creature)
end
return true
end
Expand Down
Loading