Skip to content

Commit

Permalink
The Lost Brother Quest
Browse files Browse the repository at this point in the history
  • Loading branch information
htc16 committed Sep 16, 2024
1 parent 5e1e6a5 commit 0b1eb65
Show file tree
Hide file tree
Showing 30 changed files with 85 additions and 86 deletions.
4 changes: 2 additions & 2 deletions data-otservbr-global/lib/core/quests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5599,7 +5599,7 @@ if not Quests then
},
[40] = {
name = "Adventurers Guild",
startStorageId = Storage.AdventurersGuild.QuestLine,
startStorageId = Storage.Quest.U9_80.AdventurersGuild.QuestLine,
startStorageValue = 1,
missions = {
[1] = {
Expand All @@ -5615,7 +5615,7 @@ if not Quests then
},
[2] = {
name = "The Lost Brother",
storageId = Storage.AdventurersGuild.TheLostBrother,
storageId = Storage.Quest.U10_80.TheLostBrotherQuest,
missionId = 11000,
startValue = 1,
endValue = 3,
Expand Down
45 changes: 22 additions & 23 deletions data-otservbr-global/lib/core/storages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -531,29 +531,6 @@ Storage = {
Edala = 52122,
EdalaTimer = 52123,
},
AdventurersGuild = {
-- Reserved storage from 52130 - 52159
Stone = 52130,
MagicDoor = 52131,
CharosTrav = 52132,
FreeStone = {
Alia = 52133,
Amanda = 52134,
Brewster = 52135,
Isimov = 52136,
Kasmir = 52137,
Kjesse = 52138,
Lorietta = 52139,
Maealil = 52140,
Quentin = 52141,
RockWithASoftSpot = 52142,
Tyrias = 52143,
Yberius = 52144,
Rahkem = 52145,
},
QuestLine = 52148,
TheLostBrother = 52149,
},
HallsOfHope = {
-- Reserved storage from 52200 - 52219
Questline = 52200,
Expand Down Expand Up @@ -2178,6 +2155,27 @@ Storage = {
WarpathMiniWorldChange = {},
},
U9_80 = { -- update 9.80 - Reserved Storages 44001 - 44100
AdventurersGuild = {
Stone = 52130,
MagicDoor = 52131,
CharosTrav = 52132,
FreeStone = {
Alia = 52133,
Amanda = 52134,
Brewster = 52135,
Isimov = 52136,
Kasmir = 52137,
Kjesse = 52138,
Lorietta = 52139,
Maealil = 52140,
Quentin = 52141,
RockWithASoftSpot = 52142,
Tyrias = 52143,
Yberius = 52144,
Rahkem = 52145,
},
QuestLine = 52148,
},
ChildOfDestiny = {},
GoblinMerchant = {},
VenoreDailyTasks = {},
Expand Down Expand Up @@ -2469,6 +2467,7 @@ Storage = {
DragonCounter = 45181,
Achievement = 45182,
},
TheLostBrotherQuest = 52149,
TheTaintedSouls = {},
},
U10_90 = { -- update 10.90 - Reserved Storages 45201 - 45350
Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/alia.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Alia) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Alia) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Alia, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Alia, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/amanda.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Amanda) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Amanda) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Amanda, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Amanda, 1)
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for 30 gold?" })
Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/azalea.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Alia) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Alia) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Alia, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Alia, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/brewster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Brewster) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Brewster) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Brewster, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Brewster, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/cedrik.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Alia) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Alia) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Alia, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Alia, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
8 changes: 4 additions & 4 deletions data-otservbr-global/npc/charos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ local function greetCallback(npc, creature)
local player = Player(creature)
local playerId = player:getId()

if player:getStorageValue(Storage.AdventurersGuild.CharosTrav) > 6 then
if player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.CharosTrav) > 6 then
npcHandler:say("Sorry, you have traveled a lot.", npc, creature)
npcHandler:resetNpc(creature)
return false
Expand All @@ -94,16 +94,16 @@ local function creatureSayCallback(npc, creature, type, message)

if npcHandler:getTopic(playerId) == 0 then
if MsgContains(message, "yes") then
npcHandler:say("Fine. You have " .. -player:getStorageValue(Storage.AdventurersGuild.CharosTrav) + 7 .. " \z
npcHandler:say("Fine. You have " .. -player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.CharosTrav) + 7 .. " \z
attunements left. What is the new city of your choice? Thais, Carlin, Ab'Dendriel, Kazordoon, Venore, \z
Ankrahmun, Edron, Darashia, Liberty Bay or Port Hope?", npc, creature)
npcHandler:setTopic(playerId, 1)
end
elseif npcHandler:getTopic(playerId) == 1 then
local cityTable = config.towns[message:lower()]
if cityTable then
player:setStorageValue(Storage.AdventurersGuild.CharosTrav, player:getStorageValue(Storage.AdventurersGuild.CharosTrav) + 1)
player:setStorageValue(Storage.AdventurersGuild.Stone, cityTable)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.CharosTrav, player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.CharosTrav) + 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.Stone, cityTable)
npcHandler:say("Goodbye traveler!", npc, creature)
else
npcHandler:say("Sorry, I don't know about this place.", npc, creature)
Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/ferus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Alia) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Alia) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Alia, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Alia, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/iptar-sin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Quentin) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Quentin) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Quentin, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Quentin, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/isimov.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Isimov) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Isimov) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Isimov, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Isimov, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/kasmir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Kasmir) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Kasmir) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Kasmir, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Kasmir, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/kjesse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Kjesse) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Kjesse) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Kjesse, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Kjesse, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/lorietta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Lorietta) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Lorietta) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Lorietta, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Lorietta, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/maealil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Maealil) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Maealil) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Maealil, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Maealil, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/ninev.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Quentin) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Quentin) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Quentin, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Quentin, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/prezil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Alia) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Alia) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Alia, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Alia, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/quentin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Quentin) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Quentin) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Quentin, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Quentin, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/rahkem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.Rahkem) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Rahkem) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.Rahkem, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.Rahkem, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/rock_with_a_soft_spot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler =
end)

local stoneKeyword = keywordHandler:addKeyword({ "adventurer stone" }, StdModule.say, { npcHandler = npcHandler, text = "Ah, you want to replace your adventurer's stone for free?" }, function(player)
return player:getStorageValue(Storage.AdventurersGuild.FreeStone.RockWithASoftSpot) ~= 1
return player:getStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.RockWithASoftSpot) ~= 1
end)
stoneKeyword:addChildKeyword({ "yes" }, StdModule.say, { npcHandler = npcHandler, text = "Here you are. Take care.", reset = true }, nil, function(player)
player:addItem(16277, 1)
player:setStorageValue(Storage.AdventurersGuild.FreeStone.RockWithASoftSpot, 1)
player:setStorageValue(Storage.Quest.U9_80.AdventurersGuild.FreeStone.RockWithASoftSpot, 1)
end)
stoneKeyword:addChildKeyword({ "" }, StdModule.say, { npcHandler = npcHandler, text = "No problem.", reset = true })

Expand Down
Loading

0 comments on commit 0b1eb65

Please sign in to comment.