With the Playerbase and offsets,i can get lots of info like crit haste etc.
And the Profession Skill ID,but why i can't get the skill rank?
With the Playerbase and offsets,i can get lots of info like crit haste etc.
And the Profession Skill ID,but why i can't get the skill rank?
reverse API GetProfessionInfo - WoWWiki - Your guide to the World of Warcraft . As you can see the third return value is the skill level. Needless to say, this only works for the local player.
If you track down the skill level initialization, you will eventually come to int CGPlayer_C::GetSkillValue(CGPlayer_C* this, int skillIndex). The rest is a piece of cake:
For getting the skillIndex you need to reverse int CGPlayer_C::GetSkillIndexById(void *this, int id) though, which does essentiallyCode:skillRelated= *((_DWORD *)this + 1178); result = *(_WORD *)(skillRelated+ 2 * skillIndex + 0x998); if ( result > 0 ) result += *(_WORD *)(skillRelated+ 2 * skillIndex + 3224);
so you can leverage the connectivity between both.Code:DWORD offset = 0x798; DWORD skillRelated = *((DWORD*)this + 1178); for (int i = 0; i < 128; i++) { if (id == *(WORD*)(skillRelated + offset + i * 2)) return i; } return -1;
Last edited by Bananenbrot; 05-15-2012 at 04:14 PM.
And when I use CE to findout the skill point i found that the offset isn't the same each time,humm,it happen when the Race change ,why?
Last edited by zhai789lfh; 05-16-2012 at 12:07 AM.
Hey, it compiles! Ship it!