• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] All CLass All race

Status
Not open for further replies.

uDev

Illustrious Member
Hello everyone, anyone got tutorial or something how to make all races to be able to use all classes?
 

Zelda

Sexy Member
I think you just have to go and make some database changes. But I am not 100 % sure on that.
It was either that or DB + DBC edits.
 

Lightning Blade

BETA Tester
You have to do playercreateinfo, in the DB.

You have to edit the DBC that tells which class / combos that are allowed + their outfit etc.
 

Zelda

Sexy Member
Well, since I can't link anything I can't link the thread that was exactly about this on these forums. Sorry :/
 

noc

BETA Tester
You must change :
CharBaseInfo.dbc

Race Ids:
1 - Human
2 - Orc
3 - Dwarf
4 - Nightelf
5 - Undead
6 - Tauren
7 - Gnome
8 - Troll
9 - Goblin
10 - Bloodelf
11 - Draenei

Class Ids:
1 - Warrior
2 - Paladin
3 - Hunter
4 - Rogue
5 - Priest
6 - Death knight
7 - Shaman
8 - Mage
9 - Warlock
10- Unused
11 - Druid

CharStartOutfit.dbc
filed 1 - id
field 2- race
field 3 - class
field 4- Gender
field 5- Pad
fields 6-28 Item ID
fields 28-53 Item Inventory Type
Item Inventory Type

0 = ammo
1 = head
2 = neck
3 = shoulder
4 = shirt
5 = chest
6 = waist
7 = legs
8 = feet
9 = wrist
10 = hands
11 = finger 1
12 = finger 2
13 = trinket 1
14 = trinket 2
15 = back
16 = main hand
17 = off hand
18 = ranged
19 = tabard
20 = first bag (the rightmost one)
21 = second bag
22 = third bag
23 = fourth bag (the leftmost one)
So you must edit the DB tables
Playercreateinfo
Playercreateinfo_spell
Playercreateinfo_item
Playercreateinfo_action
Player_levelstats
Player_classlevelstats
 
Last edited:

Zelda

Sexy Member
You linked a totally different forum emulation forum.

Yeah but then I wanted to post that thread and saw the rules:

bccf6e03ab.png
 

Attachments

  • bccf6e03ab.png
    bccf6e03ab.png
    1.3 KB · Views: 57

frost

Banned
http://www.mediafire.com/?kvovutvpf912fo1

thanks to jamieboor for this^^

the txt file is an sql file to do the table edits. enjoy

thankyou to tommy for this sql update to fix the tables


Run this query: https://github.com/TrinityCore/Trin...013_03_11_01_world_playercreateinfo_spell.sql

this is so each class can have spells and to fix the unknown tables error^^


ok so yes this works i had to restart my database. for an odd reason it didnt update with the new tables^^^^^^^

WORKS but i dont know if all the classes can talk or anything yet.


so i tested 1 class

belf druid works. can talk and learn spells etc :D
try it yourself....

if you find any bugs let me know and ill look into fixing it for you.

found an issue. when making a gnome shaman its not giving you the totem bar^^

so i searched and found this:

Edit your Unit.cpp You can find it ...//src/game/entities/unit
Find this line uint32 Unit::GetModelForTotem(PlayerTotemType totemType)
and copy over that whole code block with the one below
THEN
change return value with the display id you want.....

Code:
uint32 Unit::GetModelForTotem(PlayerTotemType totemType)
{
    switch (getRace())
    {
        case RACE_ORC:
        {
            switch (totemType)
            {
                case SUMMON_TYPE_TOTEM_FIRE:    // fire
                    return 30758;
                case SUMMON_TYPE_TOTEM_EARTH:   // earth
                    return 30757;
                case SUMMON_TYPE_TOTEM_WATER:   // water
                    return 30759;
                case SUMMON_TYPE_TOTEM_AIR:     // air
                    return 30756;
            }
            break;
        }
        case RACE_UNDEAD_PLAYER:
        {
            switch (totemType)
            {
                case SUMMON_TYPE_TOTEM_FIRE:    // fire
                    return 30758;
                case SUMMON_TYPE_TOTEM_EARTH:   // earth
                    return 30757;
                case SUMMON_TYPE_TOTEM_WATER:   // water
                    return 30759;
                case SUMMON_TYPE_TOTEM_AIR:     // air
                    return 30756;
            }
            break;
        }
        case RACE_BLOODELF:
        {
            switch (totemType)
            {
                case SUMMON_TYPE_TOTEM_FIRE:    // fire
                    return 30758;
                case SUMMON_TYPE_TOTEM_EARTH:   // earth
                    return 30757;
                case SUMMON_TYPE_TOTEM_WATER:   // water
                    return 30759;
                case SUMMON_TYPE_TOTEM_AIR:     // air
                    return 30756;
            }
            break;
        }
        case RACE_HUMAN:
        {
            switch (totemType)
            {
                case SUMMON_TYPE_TOTEM_FIRE:    // fire
                    return 30758;
                case SUMMON_TYPE_TOTEM_EARTH:   // earth
                    return 30757;
                case SUMMON_TYPE_TOTEM_WATER:   // water
                    return 30759;
                case SUMMON_TYPE_TOTEM_AIR:     // air
                    return 30756;
            }
            break;
        }
        case RACE_DWARF:
        {
            switch (totemType)
            {
                case SUMMON_TYPE_TOTEM_FIRE:    // fire
                    return 30754;
                case SUMMON_TYPE_TOTEM_EARTH:   // earth
                    return 30753;
                case SUMMON_TYPE_TOTEM_WATER:   // water
                    return 30755;
                case SUMMON_TYPE_TOTEM_AIR:     // air
                    return 30736;
            }
            break;
        }
        case RACE_TROLL:
        {
            switch (totemType)
            {
                case SUMMON_TYPE_TOTEM_FIRE:    // fire
                    return 30762;
                case SUMMON_TYPE_TOTEM_EARTH:   // earth
                    return 30761;
                case SUMMON_TYPE_TOTEM_WATER:   // water
                    return 30763;
                case SUMMON_TYPE_TOTEM_AIR:     // air
                    return 30760;
            }
            break;
        }
        case RACE_TAUREN:
        {
            switch (totemType)
            {
                case SUMMON_TYPE_TOTEM_FIRE:    // fire
                    return 4589;
                case SUMMON_TYPE_TOTEM_EARTH:   // earth
                    return 4588;
                case SUMMON_TYPE_TOTEM_WATER:   // water
                    return 4587;
                case SUMMON_TYPE_TOTEM_AIR:     // air
                    return 4590;
            }
            break;
        }
        case RACE_NIGHTELF:
        {
            switch (totemType)
            {
                case SUMMON_TYPE_TOTEM_FIRE:    // fire
                    return 4589;
                case SUMMON_TYPE_TOTEM_EARTH:   // earth
                    return 4588;
                case SUMMON_TYPE_TOTEM_WATER:   // water
                    return 4587;
                case SUMMON_TYPE_TOTEM_AIR:     // air
                    return 4590;
            }
            break;
        }
        case RACE_GNOME:
        {
            switch (totemType)
            {
                case SUMMON_TYPE_TOTEM_FIRE:    // fire
                    return 4589;
                case SUMMON_TYPE_TOTEM_EARTH:   // earth
                    return 4588;
                case SUMMON_TYPE_TOTEM_WATER:   // water
                    return 4587;
                case SUMMON_TYPE_TOTEM_AIR:     // air
                    return 4590;
            }
            break;
        }
        case RACE_DRAENEI:
        {
            switch (totemType)
            {
                case SUMMON_TYPE_TOTEM_FIRE:    // fire
                    return 19074;
                case SUMMON_TYPE_TOTEM_EARTH:   // earth
                    return 19073;
                case SUMMON_TYPE_TOTEM_WATER:   // water
                    return 19075;
                case SUMMON_TYPE_TOTEM_AIR:     // air
                    return 19071;
            }
            break;
        }
    }
    return 0;
}


THANKYOU TO mferrill for this core edit.

and me for finishing it with all classes :D


if you still cant do it then SHAME BE ON YOU!
 
Last edited:
Status
Not open for further replies.
Top