View Single Post
  #1  
Old 05-03-2003, 02:49 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default Pet fix to allow them to cast/proc spells.

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.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
Reply With Quote