Custom races and classes problem with playercreateinfo_skills menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    prologe60's Avatar Member
    Reputation
    1
    Join Date
    Jul 2015
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom races and classes problem with playercreateinfo_skills

    Hello everyone!

    I put on my server patch for all races and classes. When I do the Gnome Hunter , I add spells , items and skills that pj learn at the beginning .

    Spells and objects are added without problem, but skills such as Firearms are not added . It is as if playercreateinfo_skills not work.

    Does anyone know why this happens ?

    Thanks and regards!

    Custom races and classes problem with playercreateinfo_skills
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    What emulator? TrintiyCore does most of it from the DBC's now, and ArcEmu is pretty much redundant considering how bad it is compared to the other modern emulators.

  3. #3
    prologe60's Avatar Member
    Reputation
    1
    Join Date
    Jul 2015
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry for not specifying the emulator. Yes, it is Trinity.

    Could you please tell me DBC? I've seen a tutorial Arcemu think of saying to edit a column of a .dbc and converting to binary value. But it has not worked for me.

    The problem is that I put in playercreateinfo_spell_custom spells work, but the table does not work skill.

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by prologe60 View Post
    Sorry for not specifying the emulator. Yes, it is Trinity.

    Could you please tell me DBC? I've seen a tutorial Arcemu think of saying to edit a column of a .dbc and converting to binary value. But it has not worked for me.

    The problem is that I put in playercreateinfo_spell_custom spells work, but the table does not work skill.
    The DBC's are confusing but the proper route to take. CategoryBC WotLK - WoWDev

    ...Or you can hack fix it like I did. Because I'm super lazy.

    Player.cpp:

    Code:
    void Player::LearnDefaultSkills()
    {
        // learn default race/class skills
        PlayerInfo const* info = sObjectMgr->GetPlayerInfo(getRace(), getClass());
        for (PlayerCreateInfoSkills::const_iterator itr = info->skills.begin(); itr != info->skills.end(); ++itr)
        {
            uint32 skillId = itr->SkillId;
            if (HasSkill(skillId))
                continue;
    
            LearnDefaultSkill(skillId, itr->Rank);
        }
    	// Learn skills here because screw working with the DBCs - Harry
    	SetSkill(44, 0, 1, 5); // axes
    	SetSkill(172, 0, 1, 5); // t-axes
    	SetSkill(43, 0, 1, 5); // swords
    	SetSkill(55, 0, 1, 5); // t-swords
    	SetSkill(54, 0, 1, 5); // maces
    	SetSkill(160, 0, 1, 5); // t-maces
    	SetSkill(162, 0, 1, 5); // ???
    	SetSkill(173, 0, 1, 5); // daggers
    	SetSkill(136, 0, 1, 5); // staves
    	SetSkill(229, 0, 1, 5); // polearms
    	SetSkill(183, 0, 1, 5); // ???
    	SetSkill(118, 0, 1, 5); // ???
    	SetSkill(98, 0, 300, 300); // common
    	SetSkill(415, 0, 1, 1); // cloth
    	SetSkill(414, 0, 1, 1); // leather
    	SetSkill(413, 0, 1, 1); // mail
    	SetSkill(293, 0, 1, 1); // plate
    	SetSkill(95, 0, 1, 5); // ???
    	SetSkill(433, 0, 1, 1); // Shields
    
    	SetSkill(38, 0, 1, 1); // Categories
    	//SetSkill(39, 0, 1, 1);
    	//SetSkill(253, 0, 1, 1); // End Categories
    
    	int spellsToAdd[38] = {
    		668, // Common
    		199, // 2h Mace
    		197, // 2h Axes
    		202, // 2h Swords
    		200, // Polearms
    		107, // Block
    		9116, // Shield
    		3127, // Parry
    		8386, // Attacking
    		264, // Bows
    		5011, // Crossbows
    		6233, // Closing
    		6246, // Closing
    		21652, // Closing
    		9078, // Cloth
    		1180, // Daggers
    		204, // Defense
    		16092, // Defensive State (DND)
    		3050, // Detect
    		674, // Dual Wield
    		7266, // Duel
    		2382, // Generic
    		9125, // Generic
    		7267, // Grovel
    		266, // Guns
    		668, // Language Common
    		203, // Unarmed
    		7355, // Stuck
    		522, // SPELLDEFENSE (DND)
    		22027, // Remove Insignia
    		3365, // Opening
    		68398, // Opening
    		61437, // Opening
    		22810, // Opening - No Text
    		21651, // Opening
    		6478, // Opening
    		6477, // Opening
    		6247 // Opening
    	};
    	for (int i = 0; i < 38; ++i)
    		AddSpell(spellsToAdd[i], true, true, true, false);
    	
    }
    If you choose to hack it like I did then you will need to check race and class conditions.

  5. #5
    prologe60's Avatar Member
    Reputation
    1
    Join Date
    Jul 2015
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the code

    I put it in Player.cpp and has compiled without problems.

    The conditions of class and race are changed from a .dbc? I have tried to do in SkillClassRaceInfo.dbc and SkillLineAbility.

    Sorry for asking too many questions

  6. #6
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by prologe60 View Post
    Thank you for the code

    I put it in Player.cpp and has compiled without problems.

    The conditions of class and race are changed from a .dbc? I have tried to do in SkillClassRaceInfo.dbc and SkillLineAbility.

    Sorry for asking too many questions
    I meant code wise. E.g:

    Code:
    uint32 race = getRace()
    uint32 class = getClass()
    if (class == 1) then
      // set some skills and spells
    else if (class == 2) {
    }
    The DBC route you don't need to add any custom code because:

    Code:
        // learn default race/class skills
        PlayerInfo const* info = sObjectMgr->GetPlayerInfo(getRace(), getClass());
        for (PlayerCreateInfoSkills::const_iterator itr = info->skills.begin(); itr != info->skills.end(); ++itr)
        {
            uint32 skillId = itr->SkillId;
            if (HasSkill(skillId))
                continue;
    
            LearnDefaultSkill(skillId, itr->Rank);
        }
    This code and other parts learn the default spells/skills from the DBC's.

  7. #7
    prologe60's Avatar Member
    Reputation
    1
    Join Date
    Jul 2015
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank You

    I will try!

    Regards!

Similar Threads

  1. Changing Race and Class names?
    By Deafrunner in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 08-31-2009, 06:09 PM
  2. fixing eyes and teeth problem with the raptor to devilsaur
    By CoolG in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 06-28-2009, 03:14 AM
  3. Mix races and Classes
    By EtanTheMidget in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 05-28-2008, 01:29 AM
  4. Custom Spells and Classes
    By TechMonkie in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 04-09-2008, 02:04 PM
  5. Custom Races and Change Starting Zone
    By freeride474 in forum WoW EMU Guides & Tutorials
    Replies: 25
    Last Post: 03-09-2008, 01:55 AM
All times are GMT -5. The time now is 06:17 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