Thread: Mage Pet fixes
View Single Post
  #2  
Old 06-09-2003, 02:37 PM
gej302
Sarnak
 
Join Date: May 2003
Location: Silverfist
Posts: 42
Default Fix part 2

Roughly Lines 3811-3822 of spells.cpp replace with:
Code:
        case 1: { //Bentareth: Mage pets, as close live as I can find, need spell procs added
                  //2 types of procs, last 3 in each category does a new type of proc
                  //Air and earth do damage ~50 hp, water does double previous, and fire needs several wizard spells added
                        npc_type->hp_regen = 6; //default case (true until lvl 39 pet)
                        switch(pettype) {
                          case 60: //Air pets begin
                                npc_type->max_hp   = 75;
                                npc_type->cur_hp   = 75;
                                npc_type->min_dmg  = 6;
                                npc_type->max_dmg  = 12;
                                break;
                          case 61:
                                npc_type->max_hp   = 175;
                                npc_type->cur_hp   = 175;
                                npc_type->min_dmg  = 9;
                                npc_type->max_dmg  = 16;
                                break;
                          case 62:
                                npc_type->max_hp   = 230;
                                npc_type->cur_hp   = 230;
                                npc_type->min_dmg  = 11;
                                npc_type->max_dmg  = 18;
                                break;
                          case 63:
                                npc_type->max_hp  = 360;
                                npc_type->cur_hp  = 360;
                                npc_type->min_dmg = 13;
                                npc_type->max_dmg = 20;
                                break;
                          case 64:
                                npc_type->max_hp  = 460;
                                npc_type->cur_hp  = 460;
                                npc_type->min_dmg = 15;
                                npc_type->max_dmg = 22;
                                break;
                          case 65:
                                npc_type->max_hp  = 580;
                                npc_type->cur_hp  = 580;
                                npc_type->min_dmg = 17;
                                npc_type->max_dmg = 26;
                                break;
                          case 66:
                                npc_type->max_hp  = 700;
                                npc_type->cur_hp  = 700;
                                npc_type->min_dmg = 20;
                                npc_type->max_dmg = 28;
                                break;
                          case 67:
                                npc_type->max_hp  = 800;
                                npc_type->cur_hp  = 800;
                                npc_type->min_dmg = 24;
                                npc_type->max_dmg = 34;
                                break;
                          case 68:
                                npc_type->max_hp   = 1015;
                                npc_type->cur_hp   = 1015;
                                npc_type->min_dmg  = 28;
                                npc_type->max_dmg  = 40;
                                npc_type->hp_regen = 30;
                                break;
                          case 69:
                                npc_type->max_hp  = 1225;
                                npc_type->cur_hp  = 1225;
                                npc_type->min_dmg = 34;
                                npc_type->max_dmg = 48;
                                npc_type->hp_regen = 30;
                                break;
                          case 70:
                                npc_type->max_hp  = 2205;
                                npc_type->cur_hp  = 2205;
                                npc_type->min_dmg = 38;
                                npc_type->max_dmg = 56;
                                npc_type->hp_regen = 30;
                                break;
                          case 71:  //from here in need to do damage proc
                                npc_type->max_hp  = 2410;
                                npc_type->cur_hp  = 2410;
                                npc_type->min_dmg = 40;
                                npc_type->max_dmg = 56;
                                npc_type->hp_regen = 30;
                                break;
                          case 72:
                                npc_type->max_hp  = 2700;
                                npc_type->cur_hp  = 2700;
                                npc_type->min_dmg = 50;
                                npc_type->max_dmg = 68;
                                npc_type->hp_regen = 30;
                                break;
                          case 73:
                                sprintf(npc_type->npc_attacks, "E");
                                npc_type->max_hp  = 3800;
                                npc_type->cur_hp  = 3800;
                                npc_type->min_dmg = 70;
                                npc_type->max_dmg = 83;
                                npc_type->hp_regen = 100;
                                break;
                        //End of Air Pets, Begin Earth
                          case 74:
                                npc_type->max_hp   = 95;
                                npc_type->cur_hp   = 95;
                                npc_type->min_dmg  = 6;
                                npc_type->max_dmg  = 12;
                                break;
                          case 75:
                                npc_type->max_hp   = 250;
                                npc_type->cur_hp   = 250;
                                npc_type->min_dmg  = 9;
                                npc_type->max_dmg  = 16;
                                break;
                          case 76:
                                npc_type->max_hp   = 350;
                                npc_type->cur_hp   = 350;
                                npc_type->min_dmg  = 11;
                                npc_type->max_dmg  = 18;
                                break;
                          case 77:
                                npc_type->max_hp  = 520;
                                npc_type->cur_hp  = 520;
                                npc_type->min_dmg = 13;
                                npc_type->max_dmg = 20;
                                break;
                          case 78:
                                npc_type->max_hp  = 675;
                                npc_type->cur_hp  = 675;
                                npc_type->min_dmg = 15;
                                npc_type->max_dmg = 22;
                                break;
                          case 79:
                                npc_type->max_hp  = 830;
                                npc_type->cur_hp  = 830;
                                npc_type->min_dmg = 17;
                                npc_type->max_dmg = 26;
                                break;
                          case 80:
                                npc_type->max_hp  = 1000;
                                npc_type->cur_hp  = 1000;
                                npc_type->min_dmg = 20;
                                npc_type->max_dmg = 28;
                                break;
                          case 81:
                                npc_type->max_hp  = 1150;
                                npc_type->cur_hp  = 1150;
                                npc_type->min_dmg = 24;
                                npc_type->max_dmg = 34;
                                break;
                          case 82:
                                npc_type->max_hp   = 1450;
                                npc_type->cur_hp   = 1450;
                                npc_type->min_dmg  = 28;
                                npc_type->max_dmg  = 40;
                                npc_type->hp_regen = 30;
                                break;
                          case 83:
                                npc_type->max_hp  = 1750;
                                npc_type->cur_hp  = 1750;
                                npc_type->min_dmg = 34;
                                npc_type->max_dmg = 48;
                                npc_type->hp_regen = 30;
                                break;
                          case 84:
                                npc_type->max_hp  = 3150;
                                npc_type->cur_hp  = 3150;
                                npc_type->min_dmg = 38;
                                npc_type->max_dmg = 56;
                                npc_type->hp_regen = 30;
                                break;
                          case 85: //Damage proc from here on in
                                npc_type->max_hp  = 3200;
                                npc_type->cur_hp  = 3200;
                                npc_type->min_dmg = 42;
                                npc_type->max_dmg = 58;
                                npc_type->hp_regen = 30;
                                break;
                          case 86:
                                npc_type->max_hp  = 3300;
                                npc_type->cur_hp  = 3300;
                                npc_type->min_dmg = 52;
                                npc_type->max_dmg = 70;
                                npc_type->hp_regen = 30;
                                break;
                          case 87:
                                sprintf(npc_type->npc_attacks, "E");
                                npc_type->max_hp  = 4800;
                                npc_type->cur_hp  = 4800;
                                npc_type->min_dmg = 72;
                                npc_type->max_dmg = 85;
                                npc_type->hp_regen = 100;
                                break;
                        // End of Earth Pets, Begin Fire, add flameshield effect
                          case 88:
                                npc_type->max_hp   = 50;
                                npc_type->cur_hp   = 50;
                                npc_type->min_dmg  = 6;
                                npc_type->max_dmg  = 12;
                                break;
                          case 89:
                                npc_type->max_hp   = 125;
                                npc_type->cur_hp   = 125;
                                npc_type->min_dmg  = 9;
                                npc_type->max_dmg  = 16;
                                break;
                          case 90:
                                npc_type->max_hp   = 180;
                                npc_type->cur_hp   = 180;
                                npc_type->min_dmg  = 11;
                                npc_type->max_dmg  = 18;
                                break;
                          case 91:
                                npc_type->max_hp  = 260;
                                npc_type->cur_hp  = 260;
                                npc_type->min_dmg = 13;
                                npc_type->max_dmg = 20;
                                break;
                          case 92:
                                npc_type->max_hp  = 340;
                                npc_type->cur_hp  = 340;
                                npc_type->min_dmg = 15;
                                npc_type->max_dmg = 22;
                                break;
                          case 93:
                                npc_type->max_hp  = 415;
                                npc_type->cur_hp  = 415;
                                npc_type->min_dmg = 17;
                                npc_type->max_dmg = 26;
                                break;
                          case 94:
                                npc_type->max_hp  = 500;
                                npc_type->cur_hp  = 500;
                                npc_type->min_dmg = 20;
                                npc_type->max_dmg = 28;
                                break;
                          case 95:
                                npc_type->max_hp  = 575;
                                npc_type->cur_hp  = 575;
                                npc_type->min_dmg = 24;
                                npc_type->max_dmg = 34;
                                break;
                          case 96:
                                npc_type->max_hp   = 725;
                                npc_type->cur_hp   = 725;
                                npc_type->min_dmg  = 28;
                                npc_type->max_dmg  = 40;
                                npc_type->hp_regen = 30;
                                break;
                          case 97:
                                npc_type->max_hp  = 875;
                                npc_type->cur_hp  = 875;
                                npc_type->min_dmg = 34;
                                npc_type->max_dmg = 48;
                                npc_type->hp_regen = 30;
                                break;
                          case 98:
                                npc_type->max_hp  = 1575;
                                npc_type->cur_hp  = 1575;
                                npc_type->min_dmg = 38;
                                npc_type->max_dmg = 56;
                                npc_type->hp_regen = 30;
                                break;
                          case 99: // Fire is a wizard from here on in, needs spells,
                                npc_type->max_hp  = 1900;
                                npc_type->cur_hp  = 1900;
                                npc_type->min_dmg = 20;
                                npc_type->max_dmg = 29;
                                npc_type->hp_regen = 30;
                                break;

                          case 100:
                                npc_type->max_hp  = 2080;
                                npc_type->cur_hp  = 2080;
                                npc_type->min_dmg = 24;
                                npc_type->max_dmg = 36;
                                npc_type->hp_regen = 30;
                                break;
                          case 101:
                                sprintf(npc_type->npc_attacks, "E");
                                npc_type->max_hp  = 2400;
                                npc_type->cur_hp  = 2400;
                                npc_type->min_dmg = 30;
                                npc_type->max_dmg = 45;
                                npc_type->hp_regen = 100;
                                break;
                        // End of Fire Pets, Begin Water
                          case 102:
                                npc_type->max_hp   = 80;
                                npc_type->cur_hp   = 80;
                                npc_type->min_dmg  = 6;
                                npc_type->max_dmg  = 12;
                                break;
                          case 103:
                                npc_type->max_hp   = 200;
                                npc_type->cur_hp   = 200;
                                npc_type->min_dmg  = 9;
                                npc_type->max_dmg  = 16;
                                break;
                          case 104:
                                npc_type->max_hp   = 280;
                                npc_type->cur_hp   = 280;
                                npc_type->min_dmg  = 11;
                                npc_type->max_dmg  = 18;
                                break;
                          case 105:
                                npc_type->max_hp  = 420;
                                npc_type->cur_hp  = 420;
                                npc_type->min_dmg = 13;
                                npc_type->max_dmg = 20;
                                break;
                          case 106:
                                npc_type->max_hp  = 540;
                                npc_type->cur_hp  = 540;
                                npc_type->min_dmg = 15;
                                npc_type->max_dmg = 22;
                                break;
                          case 107:
                                npc_type->max_hp  = 660;
                                npc_type->cur_hp  = 660;
                                npc_type->min_dmg = 17;
                                npc_type->max_dmg = 26;
                                break;
                          case 108:
                                npc_type->max_hp  = 800;
                                npc_type->cur_hp  = 800;
                                npc_type->min_dmg = 20;
                                npc_type->max_dmg = 28;
                                break;
                          case 109:
                                npc_type->max_hp  = 920;
                                npc_type->cur_hp  = 920;
                                npc_type->min_dmg = 24;
                                npc_type->max_dmg = 34;
                          case 110:
                                npc_type->max_hp   = 1160;
                                npc_type->cur_hp   = 1160;
                                npc_type->min_dmg  = 28;
                                npc_type->max_dmg  = 40;
                                npc_type->hp_regen = 30;
                                break;
                          case 111:
                                npc_type->max_hp  = 1400;
                                npc_type->cur_hp  = 1400;
                                npc_type->min_dmg = 34;
                                npc_type->max_dmg = 48;
                                npc_type->hp_regen = 30;
                                break;
                          case 112:
                                npc_type->max_hp  = 2520;
                                npc_type->cur_hp  = 2520;
                                npc_type->min_dmg = 38;
                                npc_type->max_dmg = 56;
                                npc_type->hp_regen = 30;
                                break;
                          case 113: //Rogue type now, should backstab, needs higher dmg proc
                                npc_type->max_hp  = 2350;
                                npc_type->cur_hp  = 2350;
                                npc_type->min_dmg = 40;
                                npc_type->max_dmg = 56;
                                npc_type->hp_regen = 30;
                                break;
                          case 114:
                                npc_type->max_hp  = 2450;
                                npc_type->cur_hp  = 2450;
                                npc_type->min_dmg = 50;
                                npc_type->max_dmg = 58;
                                npc_type->hp_regen = 30;
                                break;
                          case 115:
                                sprintf(npc_type->npc_attacks, "E");
                                npc_type->max_hp  = 3300;
                                npc_type->cur_hp  = 3300;
                                npc_type->min_dmg = 70;
                                npc_type->max_dmg = 81;
                                npc_type->hp_regen = 100;
                                break;
                        } //End of Normal Mage pets
                        break;
        }
        case 15: { // Mage Epic Pet fixed
                        npc_type->max_hp  = 4300;
                        npc_type->cur_hp  = 4300;
                        npc_type->min_dmg = 50;
                        npc_type->max_dmg = 80;
                        npc_type->hp_regen=50;
Reply With Quote