[Feature Request]: A guide for file ItemLimitCategory.dbc
Lerduzz opened this issue · 8 comments
Is your feature request related to a problem? Please describe.
I am trying to fix this AC issue and need more documentation:
azerothcore/azerothcore-wotlk#10986
Describe the solution you'd like
I need to know what binary flags can be used in the field "Flags".
Describe alternatives you've considered
To fix that issue I am trying to create an Item Group with all Ashen Verdict rings and limit to only 1 ring of that in your inventory (There are 20 rings).
Additional context
No response
This is related to AC DB table itemlimitcategory_dbc
I am contributor in AC project.
Working on Keira3 and AoWoW I saw that ItemCategory defines if:
- the item is
unique
oruniqueEquipped
depends on the fieldisGem
- the item is "unique" in terms of count, for example the mana gem of the mage https://wowgaming.altervista.org/aowow/?item=36799 it is unique with count (1)
The item category should define this, I think that you can understand it also analyzing some gems of the warlock and checking it's limit category
Hope this can help, if you want to view these items and item category you can always use Keira3 and/or AoWoW
Thanks @Helias, I found the correct flag for LimitCategory but when I go to complete the quest the game client crashes.
Luckily, I found another solution for the quest that has problems.
I am forcing the CombatStop() to temporarly fix that. Because the BUG happens when you have the ring equipped, you are in combat and then the quest script can not remove the quest item.
That is the file PlayerQuest.cpp
To improve this solution, you must first check if the item required by the quest is equipped and in a slot that cannot be unequipped in combat. But I still don't know how to do that. That's why I haven't uploaded a pull request.
May you can start to open the PR as draft and add the label "Needs Help", someone could check it and give you some hints
any defines used for the dbc can be found in the core.