This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Arcemu] enabling New Races  (Read 1971 times)

Nupper

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 339
    • View Profile
[Arcemu] enabling New Races
« on: March 24, 2013, 12:07:44 pm »
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: [Select]
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,
};
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: [Select]
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,
};

Once that is Done
Open Ojectmgr.cpp
and Search: // Search for a playercreateinfo.
You should see something like
Code: [Select]
// Search for a playercreateinfo.
for(uint32 Race = RACE_HUMAN; Race <= RACE_DRAENEI; ++Race)
Change The code to the last Race you added in the Previews file so it would be high elf for me.
Code: [Select]
// Search for a playercreateinfo.
for(uint32 Race = RACE_HUMAN; Race <= RACE_HIGHELF; ++Race)

I hope this helps.
I hope to making a Patching TUT soon
« Last Edit: January 01, 1970, 01:00:00 am by Admin »