https://github.com/davoodinator/Serv...ource=cc#L1893
from 1893 to 1933 is the code snippet you are interested in
Code:
bool Item_Struct::IsEquipable(uint16 Race, uint16 Class_) const
{
bool IsRace = false;
bool IsClass = false;
uint32 Classes_ = Classes;
uint32 Races_ = Races;
int32 Race_ = GetArrayRace(Race);
for (int CurrentClass = 1; CurrentClass <= PLAYER_CLASS_COUNT; ++CurrentClass)
{
if (Classes_ % 2 == 1)
{
if (CurrentClass == Class_)
{
IsClass = true;
break;
}
}
Classes_ >>= 1;
}
Race_ = (Race_ == 18 ? 16 : Race_);
for (unsigned int CurrentRace = 1; CurrentRace <= PLAYER_RACE_COUNT; ++CurrentRace)
{
if (Races_ % 2 == 1)
{
if (CurrentRace == Race_)
{
IsRace = true;
break;
}
}
Races_ >>= 1;
}
if (Race_ == 69) {IsRace = true;}
return (IsRace && IsClass);
}
that said.
that is only one small part of it
you will also have to make those races available in other ways too in the source code
there are changes i've made too, to make it happen.. properly.
client.cpp
race.h
races.cpp
bot.cpp
many changes. honestly just download those files and diff them with the main source and you should see the differences pretty clearly (how I added races).. ultimately im going to add all of the races (for no good reason, just beacuse i can)
honestly, if you aren't too picky, you should just download my code from github and compile it, if you pester me enough ill update it to include all races, so that its friendly to whatever you want to do with it.
One thing you may want to do is change pets.cpp to teh original one from eqemu source. as i have heavily modified that file... and i'm not done.. gonna add all the monster races to it too... bixies need their halfling pets mk