EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Pet fix to allow them to cast/proc spells. (https://www.eqemulator.org/forums/showthread.php?t=7007)

killspree 05-03-2003 02:49 AM

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.


All times are GMT -4. The time now is 11:45 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.