Jump to content
  • 0
Sign in to follow this  
Kei

how to make another race?

Question

3 answers to this question

Recommended Posts

  • 0

If you want it just to be added into your server, it's quite easy.

 

Just open your src/map/map.h and look for all the race declarations. They are on an enum like this on line 257:

enum {        RC_FORMLESS=0,        RC_UNDEAD,        RC_BRUTE,        RC_PLANT,        RC_INSECT,        RC_FISH,        RC_DEMON,        RC_DEMIHUMAN,        RC_ANGEL,        RC_DRAGON,        RC_BOSS,        RC_NONBOSS,        RC_NONDEMIHUMAN,        RC_MAX};

 

Just add your entry there wherever you want, before RC_MAX. It's common practice to add it after the last race that has been declared (RC_NONDEMIHUMAN) but it's up to you. Keep in mind this enum assigns consecutive number identifiers for each item on it. You may also want to add your new race to the scripting constants so that you can use it in scripting in db/const.txt (look again for the race definitions and follow the structure, but they aren't on an enum this time).

 

 

You could also want to edit some atcommands or script commands to adapt them to the new race (especially @mi). Any special feature you want for the race other than existing and being applied to mobs and whatever other non general feature must be added by you.

Share this post


Link to post
Share on other sites
  • 0

Hello Kei,

 

I saw that your recent question is answered already. If you have any other question, please make a new topic about it.

 

 

Thanks,

Mhalicot - Int'l Filipino Moderator

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.