Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
good
  • Loading branch information
htc16 committed Oct 16, 2024
1 parent a8221f5 commit 603f55b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions data/scripts/actions/items/foods.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,13 @@ function food.onUse(player, item, fromPosition, target, toPosition, isHotkey)
return true
end

-- The Secret Library Quest
if player:getStorageValue(Storage.Quest.U11_80.TheSecretLibrary.Darashia.eatenFood) ~= 1 then
if player:getPosition():isInRange(Position(32961, 32280, 10), Position(32964, 32286, 10)) then
player:say("Fames est optimus coquus", TALKTYPE_MONSTER_SAY)
player:setStorageValue(Storage.Quest.U11_80.TheSecretLibrary.Darashia.eatenFood, 1)
if IsRunningGlobalDatapack() then
-- The Secret Library Quest
if player:getStorageValue(Storage.Quest.U11_80.TheSecretLibrary.Darashia.eatenFood) ~= 1 then
if player:getPosition():isInRange(Position(32961, 32280, 10), Position(32964, 32286, 10)) then
player:say("Fames est optimus coquus", TALKTYPE_MONSTER_SAY)
player:setStorageValue(Storage.Quest.U11_80.TheSecretLibrary.Darashia.eatenFood, 1)
end
end
end

Expand Down

0 comments on commit 603f55b

Please sign in to comment.