Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Fix lion's rock quest "holy water fountain" and "fountain rewards" (#378
Browse files Browse the repository at this point in the history
)

Fix, to get the Holy Water need to collect the flower first. Currently when try to get holy water, it doesn't work properly.
When try to obtain reward from fountain got nothing, and got error in console with "sendMagicEffect".
  • Loading branch information
EeFo17 committed Jan 26, 2022
1 parent c6cc888 commit 762188b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/scripts/actions/quests/lions_rock/lions_rock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ local lionsGetLionsMane = Action()

function lionsGetLionsMane.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.itemid == 23759 then
if player:getStorageValue(Storage.LionsRock.Questline) > 0 then
if player:getStorageValue(Storage.LionsRock.Questline) < 0 then
if player:getStorageValue(Storage.LionsRock.GetLionsMane) < 0 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You picked a beautiful lion's mane flower.")
player:addItem(23760, 1)
Expand All @@ -150,7 +150,7 @@ function lionsGetHolyWater.onUse(player, item, fromPosition, target, toPosition,
return true
end

if player:getStorageValue(Storage.LionsRock.Questline) > 0 then
if player:getStorageValue(Storage.LionsRock.GetLionsMane) > 0 then
if player:getStorageValue(Storage.LionsRock.GetHolyWater) < 0 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You took some holy water from the sacred well.')
player:addItem(23835, 1)
Expand Down Expand Up @@ -219,7 +219,7 @@ function lionsRockFountain.onUse(player, item, fromPosition, target, toPosition,

player:sendTextMessage(MESSAGE_EVENT_ADVANCE,
"Something sparkles in the fountain's water. You draw out a " .. rewards[reward] .. '.')
player:sendMagicEffect(CONST_ME_HOLYAREA)
player:getPosition():sendMagicEffect(CONST_ME_HOLYAREA)
player:addAchievement("Lion's Den Explorer")
item:transform(lionsRockSanctuaryRockId)
player:addItem(rewards[reward], 1)
Expand Down

0 comments on commit 762188b

Please sign in to comment.