Skip to content

Commit e961a18

Browse files
authored
fix: lion's rock quest - small topaz and searing fire field (#3836)
Bug Fixes • Fixed gem recognition and placement so only intended gems interact correctly with shrines. • Removed an unintended transformation that occurred when using a pick on a specific item to prevent unexpected changes. Improvements • Added support for an additional gem to be included in the public gem registry, improving gem availability.
1 parent e3a236f commit e961a18

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

data-otservbr-global/scripts/actions/other/gems.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ local lionsRock = {
5959
storage = Storage.Quest.U10_70.LionsRock.Questline,
6060
value = 8,
6161
item = 3033,
62-
fieldId = 7465,
62+
fieldId = 2137,
6363
message = "You place the amethyst on the small socket. A violet flame begins to burn.",
6464
effect = CONST_ME_PURPLESMOKE,
6565
},
@@ -186,4 +186,6 @@ end
186186
for index, value in pairs(shrine) do
187187
gems:id(index)
188188
end
189+
190+
gems:id(9057)
189191
gems:register()

data-otservbr-global/scripts/lib/register_actions.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,10 +607,6 @@ function onUsePick(player, item, fromPosition, target, toPosition, isHotkey)
607607
target:transform(594)
608608
target:decay()
609609
toPosition:sendMagicEffect(CONST_ME_HITAREA)
610-
elseif target.itemid == 6298 and target.actionid > 0 then
611-
target:transform(615)
612-
target:decay()
613-
toPosition:sendMagicEffect(CONST_ME_HITAREA)
614610
elseif target.itemid == 21341 then
615611
target:transform(21342)
616612
target:decay()

0 commit comments

Comments
 (0)