Go Back   EQEmulator Home > EQEmulator Forums > General > General::General Discussion

General::General Discussion General discussion about EverQuest(tm), EQEMu, and related topics.
Do not post support topics here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 10-18-2013, 05:58 PM
Davood
Discordant
 
Join Date: Jan 2005
Posts: 488
Default

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
__________________
----------
Demon Overlord of Alakamin
skype @ davoodinator
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:28 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3