Skip to content

Commit

Permalink
Hand of the Inquisition Outfits Quest
Browse files Browse the repository at this point in the history
You need to review the answers, as I couldn't find them on the internet.
  • Loading branch information
htc16 committed Nov 6, 2024
1 parent b1699dd commit a009372
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
6 changes: 5 additions & 1 deletion data-otservbr-global/lib/core/storages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2863,7 +2863,11 @@ Storage = {
Questline = 52311,
},
},
HandOfTheInquisitionOutfits = {},
HandOfTheInquisitionOutfits = {
Outfits = 52312,
Addon1 = 52313,
Addon2 = 52314,
},
Kilmaresh = {},
Orcsoberfest = {},
},
Expand Down
17 changes: 16 additions & 1 deletion data-otservbr-global/npc/jack_springer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,28 @@ local function creatureSayCallback(npc, creature, type, message)
end
else
if player:getStorageValue(Storage.Quest.U12_20.GraveDanger.Bosses.KingZelos.Killed) >= 1 then
if player:getStorageValue(Storage.Quest.U12_20.GraveDanger.Questline) < 3 then
if player:getStorageValue(Storage.Quest.U12_20.GraveDanger.Questline) >= 3 and player:getStorageValue(Storage.Quest.U12_20.HandOfTheInquisitionOutfits.Addon2) < 1 and player:removeItem(31737, 1) then
npcHandler:say("Here is your second addon for your efforts!", npc, creature)
player:addOutfit(1243, 2)
player:addOutfit(1244, 2)
player:setStorageValue(Storage.Quest.U12_20.GraveDanger.Stage, 2)
player:setStorageValue(Storage.Quest.U12_20.GraveDanger.Questline, 3)
player:setStorageValue(Storage.Quest.U12_20.HandOfTheInquisitionOutfits.Addon2, 1)
elseif player:getStorageValue(Storage.Quest.U12_20.GraveDanger.Questline) >= 3 and player:getStorageValue(Storage.Quest.U12_20.HandOfTheInquisitionOutfits.Addon1) < 1 and player:removeItem(31738, 1) then
npcHandler:say("Here is your first addon for your efforts!", npc, creature)
player:addOutfit(1243, 1)
player:addOutfit(1244, 1)
player:setStorageValue(Storage.Quest.U12_20.GraveDanger.Stage, 2)
player:setStorageValue(Storage.Quest.U12_20.GraveDanger.Questline, 3)
player:setStorageValue(Storage.Quest.U12_20.HandOfTheInquisitionOutfits.Addon1, 1)
elseif player:getStorageValue(Storage.Quest.U12_20.GraveDanger.Questline) < 3 and player:getStorageValue(Storage.Quest.U12_20.HandOfTheInquisitionOutfits.Outfits) < 1 then
npcHandler:say("Incredible! You averted a crisis that would have utterly crippled our defences aganist any other threat that is arising. Let me grant you the honor to be one of the hands of the inquisition alongside with the according outfit as a reward.", npc, creature)
player:addOutfit(1243, 0)
player:addOutfit(1244, 0)
player:addAchievement("Inquisition's Hand")
player:setStorageValue(Storage.Quest.U12_20.GraveDanger.Stage, 2)
player:setStorageValue(Storage.Quest.U12_20.GraveDanger.Questline, 3)
player:setStorageValue(Storage.Quest.U12_20.HandOfTheInquisitionOutfits.Outfits, 1)
else
npcHandler:say("Indeed you averted us a great danger! We will ever be greatful to you hand of the inquisition!", npc, creature)
end
Expand Down

0 comments on commit a009372

Please sign in to comment.