[DiscordArchive] Is that what u ment?
[DiscordArchive] Is that what u ment?
Archived author: Anchy • Posted: 2023-01-17T22:12:07.314000+00:00
Original source
you will have to share your new entry
Archived author: Revision • Posted: 2023-01-17T22:12:39.852000+00:00
Original source
I guess it makes sense. If you faction change sometimes it'll say the player has a skill that doesn't exist because it wasn't properly transferred.
Archived author: Anchy • Posted: 2023-01-17T22:13:25.129000+00:00
Original source
yeah, the error is not exactly accurate; it says it doesnt exist if it doesnt meet criteria and should probably be re-worded
Archived author: Anchy • Posted: 2023-01-17T22:15:45.759000+00:00
Original source
the issue most likely lies in SkillLineAbility.dbc
Archived author: wqq • Posted: 2023-01-17T22:36:21.717000+00:00
Original source
But what if race and class masks equals zero? I just want a copy of GM spellbook tab, but with my spells. Is it depends on spells in skill line? For example I want orgri port on priest char in custom spellbook tab
Archived author: Anchy • Posted: 2023-01-17T22:45:27.872000+00:00
Original source
it doesn't include all if you use 0, instead you will have to create a sum of all of the class/race masks
Archived author: Anchy • Posted: 2023-01-17T22:46:56.562000+00:00
Original source
```cpp
SkillRaceClassInfoEntry const* GetSkillRaceClassInfo(uint32 skill, uint8 race, uint8 class_)
{
SkillRaceClassInfoBounds bounds = SkillRaceClassInfoBySkill.equal_range(skill);
for (SkillRaceClassInfoMap::iterator itr = bounds.first; itr != bounds.second; ++itr)
{
if (itr->second->RaceMask && !(itr->second->RaceMask & (1 << (race - 1))))
{
continue;
}
if (itr->second->ClassMask && !(itr->second->ClassMask & (1 << (class_ - 1))))
{
continue;
}
return itr->second;
}
return nullptr;
}```
Archived author: Anchy • Posted: 2023-01-17T22:47:05.186000+00:00
Original source
in fact if you use 0 it will instantly be skipped