[SOLVED]How does itemcount work in character_queststatus table?

Quest templates can have up to 6 required items. Quests are working well with 6 requested items. I checked it with a custom quest.

But in the table character_queststatus are only 4 fields (itemcount1 - itemcount4) that have counters for the requested items.

How does this work? Is the character_queststatus only an informal table for the first 4 items ?

It doesn’t work.

https://github.com/TrinityCore/TrinityCore/commit/8411ec7ed6366e3f9c0dc722671492ed091b8fbd

Locking to the code I came to the same conclusion. xD Thanks for the fast fix.

But I also got the impression that this table is only to save the quest status as a kind of summary. Internal the requirements seems to be checked on the fly whenever needed.

What is the purpose of this table exactly?

Its used to speedup quest status checks so you dont need to iterate entire inventory all the time (this is super important because its part of SMSG_UPDATE_OBJECT (sparkling of gameobjects with quest items))

I see. For caching purpose.

— Canned message start —
It appears the issue in the original post was solved, so this thread shall be closed.
Should you encounter any other difficulties, please open a new thread.
— Canned message end —