Going to need this at 1816(will be below npc_type->fixedZ = 1;):
Code:
int pettype = in_pettype;
Will need this at about 1837 in spells.cpp also. You should be able to see where it fits in(with the rest of the pet cases in that switch).
Code:
case 4: //Baron-Sprite: Necromancer pets. Some of the info is from eqnecro.com
{
if(pettype == 39) //Baron-Sprite: This is defined above in the Makepet statement. I use it to single out the individual pet spells.
{
npc_type->max_hp = 3800; //Max Life.
npc_type->cur_hp = 3800; //Current Life.
npc_type->min_dmg = 60; //Minimum Damage.
npc_type->max_dmg = 78; //Maximum Damage.
sprintf(npc_type->npc_spells,"446 359"); //Spells allowed.
} //Baron-Sprite: You can also define things such as weapon and armor graphics/size, ect. See the defines above.
else if(pettype == 38)
{
npc_type->max_hp = 2200;
npc_type->cur_hp = 2200;
npc_type->min_dmg = 64;
npc_type->max_dmg = 73;
sprintf(npc_type->npc_spells,"446");
}
else if(pettype == 37)
{
npc_type->max_hp = 2400;
npc_type->cur_hp = 2400;
npc_type->min_dmg = 60;
npc_type->max_dmg = 73;
sprintf(npc_type->npc_spells,"446");
}
else if(pettype == 36)
{
npc_type->max_hp = 2300;
npc_type->cur_hp = 2300;
npc_type->min_dmg = 59;
npc_type->max_dmg = 69;
sprintf(npc_type->npc_spells,"446 216");
}
else if(pettype == 35)
{
npc_type->max_hp = 1500;
npc_type->cur_hp = 1500;
npc_type->min_dmg = 52;
npc_type->max_dmg = 59;
sprintf(npc_type->npc_spells,"445");
}
else if(pettype == 34)
{
npc_type->max_hp = 1400;
npc_type->cur_hp = 1400;
npc_type->min_dmg = 50;
npc_type->max_dmg = 57;
sprintf(npc_type->npc_spells,"445");
}
else if(pettype == 33)
{
npc_type->max_hp = 2350;
npc_type->cur_hp = 2350;
npc_type->min_dmg = 48;
npc_type->max_dmg = 55;
sprintf(npc_type->npc_spells,"445");
}
else if(pettype == 32)
{
npc_type->max_hp = 1300;
npc_type->cur_hp = 1300;
npc_type->min_dmg = 40;
npc_type->max_dmg = 47;
sprintf(npc_type->npc_spells,"502");
}
else if(pettype == 31)
{
npc_type->max_hp = 1200;
npc_type->cur_hp = 1200;
npc_type->min_dmg = 32;
npc_type->max_dmg = 39;
}
else if(pettype == 30)
{
npc_type->max_hp = 1000;
npc_type->cur_hp = 1000;
npc_type->min_dmg = 25;
npc_type->max_dmg = 33;
}
else if(pettype == 29)
{
npc_type->max_hp = 775;
npc_type->cur_hp = 775;
npc_type->min_dmg = 21;
npc_type->max_dmg = 28;
}
else if(pettype == 28)
{
npc_type->max_hp = 700;
npc_type->cur_hp = 700;
npc_type->min_dmg = 19;
npc_type->max_dmg = 26;
}
else if(pettype == 27)
{
npc_type->max_hp = 375;
npc_type->cur_hp = 375;
npc_type->min_dmg = 15;
npc_type->max_dmg = 22;
}
else if(pettype == 26)
{
npc_type->max_hp = 300;
npc_type->cur_hp = 300;
npc_type->min_dmg = 13;
npc_type->max_dmg = 20;
}
else if(pettype == 25)
{
npc_type->max_hp = 250;
npc_type->cur_hp = 250;
npc_type->min_dmg = 11;
npc_type->max_dmg = 16;
}
else if(pettype == 24)
{
npc_type->max_hp = 200;
npc_type->cur_hp = 200;
npc_type->min_dmg = 9;
npc_type->max_dmg = 14;
}
else if(pettype == 23)
{
npc_type->max_hp = 100;
npc_type->cur_hp = 100;
npc_type->min_dmg = 7;
npc_type->max_dmg = 12;
}
else if(pettype == 22)
{
npc_type->max_hp = 30;
npc_type->cur_hp = 30;
npc_type->min_dmg = 5;
npc_type->max_dmg = 10;
}
else
{
npc_type->max_hp = 25;
npc_type->cur_hp = 25;
npc_type->min_dmg = 1;
npc_type->max_dmg = 3;
}
break;
}