otservbr-global
otservbr-global copied to clipboard
BUG: Inquisition Quest Price
Describe the bug
Inquisition quest price is calculated wrong. It is calculating on top of 7 blesses instead of the correct 5 amount.
How to Reproduce?
Just have inquisition and ask for blessing of the inquisition. He will ask for 154k instead of 110K
Where to fix:
I pinpointed the error to the following file: otserver/data/modules/scripts/blessings/blessings.lua So in line 246 this snippet starts:
Blessings.getInquisitionPrice = function(player)
-- Find how many missing bless we have and give out the price
inquifilter = function(b) return b.inquisition end
donthavefilter = function(p, b) return not p:hasBlessing(b) end
local missing = #player:getBlessings(filter, donthavefilter)
local totalBlessPrice = Blessings.getBlessingsCost(player:getLevel()) * missing * Blessings.Config.InquisitonBlessPriceMultiplier
return missing, totalBlessPrice
end
The missing function is getting all missing blessings except for twist of fate. It's not ignoring the 2 new blessings that are special. So the number is coming out as 7 instead of 5.
confirmed
This issue is stale because it has been open 120 days with no activity.
Your issue will be transferred to the otservbr-global-datapack repository
This issue is stale because it has been open 120 days with no activity.