Forum > Tutorials

[Arcemu] enabling New Races

(1/1)

Nupper:
This is my First Tut so i will improve it over time.

Once you have your Patch with your new Races inplanted.

Open Player.h
Search: Enum Races

You should get something like

--- Code: ---enum Races
{
    RACE_HUMAN = 1,
    RACE_ORC = 2,
    RACE_DWARF = 3,
    RACE_NIGHTELF = 4,
    RACE_UNDEAD = 5,
    RACE_TAUREN = 6,
    RACE_GNOME = 7,
    RACE_TROLL = 8,
    RACE_BLOODELF = 10,
    RACE_DRAENEI = 11,
};
--- End code ---
Change to What ever race you have under the same ID
so High Elf under ID 20 = RACE_HIGHELF = 20
you should get something like this

--- Code: ---enum Races
{
    RACE_HUMAN = 1,
    RACE_ORC = 2,
    RACE_DWARF = 3,
    RACE_NIGHTELF = 4,
    RACE_UNDEAD = 5,
    RACE_TAUREN = 6,
    RACE_GNOME = 7,
    RACE_TROLL = 8,
    RACE_BLOODELF = 10,
    RACE_DRAENEI = 11,
    RACE_OGRO = 12,
    RACE_NAGA_ = 13,
    RACE_BROKEN = 14,
    RACE_SKELETON = 9,
    RACE_VRYKUL = 16,
    RACE_TUSKARR = 17,
    RACE_FORESTTROLL = 18,
    RACE_HIGHELF = 20,
};
--- End code ---

Once that is Done
Open Ojectmgr.cpp
and Search: // Search for a playercreateinfo.
You should see something like

--- Code: --- // Search for a playercreateinfo.
for(uint32 Race = RACE_HUMAN; Race <= RACE_DRAENEI; ++Race)
--- End code ---
Change The code to the last Race you added in the Previews file so it would be high elf for me.

--- Code: --- // Search for a playercreateinfo.
for(uint32 Race = RACE_HUMAN; Race <= RACE_HIGHELF; ++Race)
--- End code ---

I hope this helps.
I hope to making a Patching TUT soon

Navigation

[0] Message Index

Go to full version