In spells.cpp line 3959 you'll see:
Code:
npc_type->level = in_level;
npc_type->race = in_race;
npc_type->class_ = in_class;
npc_type->texture = in_texture;
npc_type->helmtexture = in_texture;
npc_type->runspeed = 1.25f;
npc_type->walkspeed = 0.7f;
npc_type->size = in_size;
Change to:
Code:
npc_type->level = in_level;
npc_type->race = in_race;
npc_type->class_ = in_class;
npc_type->texture = in_texture;
npc_type->helmtexture = in_texture;
npc_type->runspeed = 1.25f;
npc_type->walkspeed = 0.7f;
npc_type->size = in_size;
npc_type->npc_spells_id = this->GetNPCSpellsID();
This allows spell entries to be added to pets through the database using the new npc_spells format.