Skip to content

Commit

Permalink
Only give Messmer's Kindling if the player does not already have it
Browse files Browse the repository at this point in the history
  • Loading branch information
Umgak committed Jan 13, 2025
1 parent fe7af2a commit 333755c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ local flagsBase = {
}

local messmerFlag = 9146 --Defeat the boss Messmer, the Impaler (this is the flag for his loot, not his death)
local kindlingId = 0x401EA3D5
local flags = {flagsBase}
ef.batchSetFlags(flags, 0, "SealingTreeThread")
if ef.getFlag(messmerFlag):getValue() then --Messmer's given his loot
ItemGive(0x401EA3D5, 1, 0, 0, -1) --Give Messmer's Kindling to prevent a softlock
if ef.getFlag(messmerFlag):getValue() and not getItemIdx(kindlingId, 2) then --Messmer's given his loot before, but we don't have Messmer's Kindling
ItemGive(kindlingId, 1, 0, 0, -1) --Give Messmer's Kindling to prevent a softlock
end
local t = createTimer(nil)
t.interval = 100
Expand Down

0 comments on commit 333755c

Please sign in to comment.