Skip to content

Commit

Permalink
Golden Outfits Quest
Browse files Browse the repository at this point in the history
  • Loading branch information
htc16 committed Nov 6, 2024
1 parent fa4943d commit af405dc
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 27 deletions.
4 changes: 1 addition & 3 deletions data-otservbr-global/lib/core/storages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ Storage = {
-- Until all outfit quests are completed
DefaultStart = 50960,
Ref = 50961,
-- Golden Outfit
GoldenOutfit = 51015,
RoyalCostumeOutfit = 51026,
},
TheHuntForTheSeaSerpent = {
Expand Down Expand Up @@ -2799,7 +2797,7 @@ Storage = {
WinterlightSolstice = {},
},
U12_15 = { -- update 12.15.8659 - Reserved Storages 46801 - 46850
GoldenOutfits = {},
GoldenOutfits = 46801,
},
U12_20 = { -- update 12.20 - Reserved Storages 46851 - 47000
GraveDanger = {
Expand Down
16 changes: 8 additions & 8 deletions data-otservbr-global/npc/emperor_kruzak.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ local function creatureSayCallback(npc, creature, type, message)
npcHandler:setTopic(playerId, 0)
-- Inicio do outfit
elseif npcHandler:getTopic(playerId) == 3 then -- ARMOR/OUTFIT
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) < 1 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) < 1 then
if player:getMoney() + player:getBankBalance() >= 500000000 then
local inbox = player:getStoreInbox()
local inboxItems = inbox:getItems()
Expand All @@ -92,7 +92,7 @@ local function creatureSayCallback(npc, creature, type, message)
player:addOutfit(1211)
player:addOutfit(1210)
player:getPosition():sendMagicEffect(171)
player:setStorageValue(Storage.OutfitQuest.GoldenOutfit, 1)
player:setStorageValue(Storage.Quest.U12_15.GoldenOutfits, 1)
else
npcHandler:say("Please make sure you have free slots in your store inbox.", npc, creature)
end
Expand All @@ -106,15 +106,15 @@ local function creatureSayCallback(npc, creature, type, message)
-- Fim do outfit
-- Inicio do helmet
elseif npcHandler:getTopic(playerId) == 4 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) == 1 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) < 2 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) == 1 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) < 2 then
if player:getMoney() + player:getBankBalance() >= 250000000 then
npcHandler:say("Take this helmet as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:removeMoneyBank(250000000)
player:addOutfitAddon(1210, 1)
player:addOutfitAddon(1211, 1)
player:getPosition():sendMagicEffect(171)
player:setStorageValue(Storage.OutfitQuest.GoldenOutfit, 2)
player:setStorageValue(Storage.Quest.U12_15.GoldenOutfits, 2)
npcHandler:setTopic(playerId, 2)
else
npcHandler:say("You do not have enough money to donate that amount.", npc, creature)
Expand All @@ -132,15 +132,15 @@ local function creatureSayCallback(npc, creature, type, message)
-- Fim do helmet
-- Inicio da boots
elseif npcHandler:getTopic(playerId) == 5 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) == 2 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) < 3 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) == 2 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) < 3 then
if player:getMoney() + player:getBankBalance() >= 250000000 then
npcHandler:say("Take this boots as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:removeMoneyBank(250000000)
player:addOutfitAddon(1210, 2)
player:addOutfitAddon(1211, 2)
player:getPosition():sendMagicEffect(171)
player:setStorageValue(Storage.OutfitQuest.GoldenOutfit, 3)
player:setStorageValue(Storage.Quest.U12_15.GoldenOutfits, 3)
npcHandler:setTopic(playerId, 2)
else
npcHandler:say("You do not have enough money to donate that amount.", npc, creature)
Expand Down
16 changes: 8 additions & 8 deletions data-otservbr-global/npc/king_tibianus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ local function creatureSayCallback(npc, creature, type, message)
npcHandler:setTopic(playerId, 0)
-- Inicio do outfit
elseif npcHandler:getTopic(playerId) == 3 then -- ARMOR/OUTFIT
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) < 1 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) < 1 then
if player:getMoney() + player:getBankBalance() >= 500000000 then
local inbox = player:getStoreInbox()
local inboxItems = inbox:getItems()
Expand All @@ -97,7 +97,7 @@ local function creatureSayCallback(npc, creature, type, message)
player:addOutfit(1211)
player:addOutfit(1210)
player:getPosition():sendMagicEffect(171)
player:setStorageValue(Storage.OutfitQuest.GoldenOutfit, 1)
player:setStorageValue(Storage.Quest.U12_15.GoldenOutfits, 1)
else
npcHandler:say("Please make sure you have free slots in your store inbox.", npc, creature)
end
Expand All @@ -111,15 +111,15 @@ local function creatureSayCallback(npc, creature, type, message)
-- Fim do outfit
-- Inicio do helmet
elseif npcHandler:getTopic(playerId) == 4 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) == 1 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) < 2 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) == 1 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) < 2 then
if player:getMoney() + player:getBankBalance() >= 250000000 then
npcHandler:say("Take this helmet as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:removeMoneyBank(250000000)
player:addOutfitAddon(1210, 2)
player:addOutfitAddon(1211, 2)
player:getPosition():sendMagicEffect(171)
player:setStorageValue(Storage.OutfitQuest.GoldenOutfit, 2)
player:setStorageValue(Storage.Quest.U12_15.GoldenOutfits, 2)
npcHandler:setTopic(playerId, 2)
else
npcHandler:say("You do not have enough money to donate that amount.", npc, creature)
Expand All @@ -137,15 +137,15 @@ local function creatureSayCallback(npc, creature, type, message)
-- Fim do helmet
-- Inicio da boots
elseif npcHandler:getTopic(playerId) == 5 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) == 2 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) < 3 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) == 2 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) < 3 then
if player:getMoney() + player:getBankBalance() >= 250000000 then
npcHandler:say("Take this boots as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:removeMoneyBank(250000000)
player:addOutfitAddon(1210, 1)
player:addOutfitAddon(1211, 1)
player:getPosition():sendMagicEffect(171)
player:setStorageValue(Storage.OutfitQuest.GoldenOutfit, 3)
player:setStorageValue(Storage.Quest.U12_15.GoldenOutfits, 3)
npcHandler:setTopic(playerId, 2)
else
npcHandler:say("You do not have enough money to donate that amount.", npc, creature)
Expand Down
16 changes: 8 additions & 8 deletions data-otservbr-global/npc/queen_eloise.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ local function creatureSayCallback(npc, creature, type, message)
npcHandler:setTopic(playerId, 0)
-- Inicio do outfit
elseif npcHandler:getTopic(playerId) == 3 then -- ARMOR/OUTFIT
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) < 1 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) < 1 then
if player:getMoney() + player:getBankBalance() >= 500000000 then
local inbox = player:getStoreInbox()
local inboxItems = inbox:getItems()
Expand All @@ -87,7 +87,7 @@ local function creatureSayCallback(npc, creature, type, message)
player:addOutfit(1211)
player:addOutfit(1210)
player:getPosition():sendMagicEffect(171)
player:setStorageValue(Storage.OutfitQuest.GoldenOutfit, 1)
player:setStorageValue(Storage.Quest.U12_15.GoldenOutfits, 1)
else
npcHandler:say("Please make sure you have free slots in your store inbox.", npc, creature)
end
Expand All @@ -101,15 +101,15 @@ local function creatureSayCallback(npc, creature, type, message)
-- Fim do outfit
-- Inicio do helmet
elseif npcHandler:getTopic(playerId) == 4 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) == 1 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) < 2 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) == 1 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) < 2 then
if player:getMoney() + player:getBankBalance() >= 250000000 then
npcHandler:say("Take this helmet as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:removeMoneyBank(250000000)
player:addOutfitAddon(1210, 1)
player:addOutfitAddon(1211, 1)
player:getPosition():sendMagicEffect(171)
player:setStorageValue(Storage.OutfitQuest.GoldenOutfit, 2)
player:setStorageValue(Storage.Quest.U12_15.GoldenOutfits, 2)
npcHandler:setTopic(playerId, 2)
else
npcHandler:say("You do not have enough money to donate that amount.", npc, creature)
Expand All @@ -127,15 +127,15 @@ local function creatureSayCallback(npc, creature, type, message)
-- Fim do helmet
-- Inicio da boots
elseif npcHandler:getTopic(playerId) == 5 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) == 2 then
if player:getStorageValue(Storage.OutfitQuest.GoldenOutfit) < 3 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) == 2 then
if player:getStorageValue(Storage.Quest.U12_15.GoldenOutfits) < 3 then
if player:getMoney() + player:getBankBalance() >= 250000000 then
npcHandler:say("Take this boots as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:removeMoneyBank(250000000)
player:addOutfitAddon(1210, 2)
player:addOutfitAddon(1211, 2)
player:getPosition():sendMagicEffect(171)
player:setStorageValue(Storage.OutfitQuest.GoldenOutfit, 3)
player:setStorageValue(Storage.Quest.U12_15.GoldenOutfits, 3)
npcHandler:setTopic(playerId, 2)
else
npcHandler:say("You do not have enough money to donate that amount.", npc, creature)
Expand Down

0 comments on commit af405dc

Please sign in to comment.