Log in

View Full Version : Getting pet type for beastlord


Wiqd
07-18-2014, 02:49 PM
Hey guys,

Quick question: I've been trying to enable the race / class combo of Dark Elf / Beastlord on my server. I've edited the database to include the char_create_combo and the allocation stuff, but I'm a bit stuck on the pets.cpp edit. I've added a case for them as such:

case DARK_ELF:
npc_type->race = SPIDER;
npc_type->texture = 0;
npc_type->size *= 2.0f;
break;

But when I try to compile it, it tells me there's no identifier for "SPIDER." So, my question is, where are these identifers stored / interpreted AND / OR what is the correct identifier for a spider? I'd like to understand what I'm missing :D

Thanks in advance!

- Scrubbs

Wiqd
07-18-2014, 03:05 PM
Nevermind, figured it out. Man, I really need to learn that once I reach the point I feel I've exhausted what I can try and it's time to ask for help on the forums, the very next thing I try usually works. 2nd time I've done that. Sorry for cluttering up the forums, so for anyone interested:

You have to edit the races.h file to #define whatever npc_type you want to use in the pets.cpp CASE switch for the race you're specifying.

Kingly_Krab
07-18-2014, 03:21 PM
As you said, you can define it in the header file or you can just directly use the NPC race ID.

Wiqd
07-18-2014, 04:19 PM
Hmm well that didn't work. I edited the .cpp, rebuilt zone, replaced the zone.exe and edited the DB to allow the race / class combo but A: Dark Elves still don't have the option to be BSTs and when I make the change via #permaclass and summon a pet, it comes out as a human!

Do I have to use the ALL_BUILD after making any changes? Figured I could get away with just building common and zone.

Scrubbs