How i can get the Profession Skill rank by playerbase? menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    zhai789lfh's Avatar Private
    Reputation
    1
    Join Date
    Feb 2012
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How i can get the Profession Skill rank by playerbase?

    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?

    How i can get the Profession Skill rank by playerbase?
  2. #2
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by zhai789lfh View Post
    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?
    Look how the game does it.

    My guess, is to check this lua function:

    Code:
    GetProfessionInfo();
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  3. #3
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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:
    Code:
    skillRelated= *((_DWORD *)this + 1178);
    result = *(_WORD *)(skillRelated+ 2 * skillIndex + 0x998);
    if ( result > 0 )
        result += *(_WORD *)(skillRelated+ 2 * skillIndex + 3224);
    For getting the skillIndex you need to reverse int CGPlayer_C::GetSkillIndexById(void *this, int id) though, which does essentially
    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;
    so you can leverage the connectivity between both.
    Last edited by Bananenbrot; 05-15-2012 at 04:14 PM.

  4. #4
    zhai789lfh's Avatar Private
    Reputation
    1
    Join Date
    Feb 2012
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  5. #5
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by zhai789lfh View Post
    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?
    The problem is that you have no clue what you're doing. Of course the address changes each time as the memory is dynamically allocated.
    Bananenbrot showed you how to do it, if you don't understand what he wants you to do, do your homework first.
    Hey, it compiles! Ship it!

Similar Threads

  1. Replies: 3
    Last Post: 09-10-2016, 01:10 AM
  2. Replies: 4
    Last Post: 10-06-2009, 07:25 AM
  3. how do you get the thumbs down icon?
    By orangegold in forum Community Chat
    Replies: 2
    Last Post: 04-29-2007, 03:31 AM
  4. How rogues can get extra chests
    By heh0 in forum World of Warcraft Guides
    Replies: 5
    Last Post: 02-21-2007, 02:01 AM
All times are GMT -5. The time now is 08:23 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search