Skip to content

Commit

Permalink
Druid Outfits Quest on Rook
Browse files Browse the repository at this point in the history
  • Loading branch information
htc16 committed Jul 6, 2024
1 parent 0f7bd4e commit 476f0b5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
17 changes: 10 additions & 7 deletions data-otservbr-global/lib/core/storages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -747,11 +747,6 @@ Storage = {
-- Until all outfit quests are completed
DefaultStart = 50960,
Ref = 50961,
-- Druid-outfit Quest
DruidHatAddon = 50977,
DruidBodyAddon = 50978,
DruidAmuletDoor = 50979,

-- Hunter-outfit Quest
HunterMusicSheet01 = 50984,
HunterMusicSheet02 = 50985,
Expand Down Expand Up @@ -2027,8 +2022,16 @@ Storage = {
AddonBackpack = 40779,
AddonBackpackTimer = 40780,
},
DruidOutfits = {},
DruidOutfitsRook = {},
DruidOutfitsRook = {
DruidHatAddonRook = 40781,
DruidBodyAddonRook = 40782,
DruidAmuletDoorRook = 40783,
},
DruidOutfits = {
DruidHatAddon = 40784,
DruidBodyAddon = 40785,
DruidAmuletDoor = 40786,
},
HunterOutfits = {},
KnightOutfits = {},
MageOutfits = {},
Expand Down
1 change: 0 additions & 1 deletion data-otservbr-global/npc/lubo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ local function creatureSayCallback(npc, creature, type, message)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
player:setStorageValue(Storage.Quest.U7_8.CitizenOutfits.MissionBackpack, 0)
player:setStorageValue(Storage.Quest.U7_8.CitizenOutfits.AddonBackpack, 3)

player:addOutfitAddon(136, 1)
player:addOutfitAddon(128, 1)
else
Expand Down
9 changes: 5 additions & 4 deletions data-otservbr-global/npc/tom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ local function creatureSayCallback(npc, creature, type, message)
if MsgContains(message, "cough syrup") then
npcHandler:say("I had some cough syrup a while ago. It was stolen in an ape raid. I fear if you want more cough syrup you will have to buy it in the druids guild in carlin.", npc, creature)
elseif MsgContains(message, "addon") then
if player:getStorageValue(Storage.OutfitQuest.DruidBodyAddon) < 1 then
if player:getStorageValue(Storage.Quest.U7_8.DruidOutfitsRook.DruidBodyAddonRook) < 1 then
npcHandler:say("Would you like to wear bear paws like I do? No problem, just bring me 50 bear paws and 50 wolf paws and I'll fit them on.", npc, creature)
player:setStorageValue(Storage.OutfitQuest.DruidBodyAddon, 1)
player:setStorageValue(Storage.Quest.U7_8.DruidOutfitsRook.DruidBodyAddonRook, 1)
npcHandler:setTopic(playerId, 0)
end
elseif MsgContains(message, "paws") or MsgContains(message, "bear paws") then
if player:getStorageValue(Storage.OutfitQuest.DruidBodyAddon) == 1 then
if player:getStorageValue(Storage.Quest.U7_8.DruidOutfitsRook.DruidBodyAddonRook) == 1 then
npcHandler:say("Have you brought 50 bear paws and 50 wolf paws?", npc, creature)
npcHandler:setTopic(playerId, 1)
end
Expand All @@ -244,7 +244,8 @@ local function creatureSayCallback(npc, creature, type, message)
npcHandler:say("Excellent! Like promised, here are your bear paws. ", npc, creature)
player:removeItem(5896, 50)
player:removeItem(5897, 50)
player:setStorageValue(Storage.OutfitQuest.DruidBodyAddon, 2)
player:setStorageValue(Storage.Quest.U7_8.DruidOutfitsRook.DruidBodyAddonRook, 2)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
player:addOutfitAddon(148, 1)
player:addOutfitAddon(144, 1)
npcHandler:setTopic(playerId, 0)
Expand Down

0 comments on commit 476f0b5

Please sign in to comment.