Player adventure class compare to item adventure
Posted: Mon Mar 27, 2017 6:10 pm
so i am looking at the items table adventure_classes field from what i can tell it is some type of bitmap to represent what classes can use the item
i am looking to change the quests.cpp and of course test it but would like to know how to compare that field to the current players class and get either a boolean response
i see where to get the items adventure class (item->generic_info.adventure_classes) but i do not know where to get the players class
so something like this
if item->generic_info.adventure_classes incluses ??the playerclass(lets say the player picking up a quest)
do something here;
still learning how everthing works together in eq2emu
i am looking to change the quests.cpp and of course test it but would like to know how to compare that field to the current players class and get either a boolean response
i see where to get the items adventure class (item->generic_info.adventure_classes) but i do not know where to get the players class
so something like this
if item->generic_info.adventure_classes incluses ??the playerclass(lets say the player picking up a quest)
do something here;
still learning how everthing works together in eq2emu