Quote:
Originally Posted by cavedude
Though for bots I would agree with creating new sets cleric_bot or the like and changing the code to automatically use them would be the best way to go. Starting at 600 would be fine by me and I'd have no problem adding it to PEQ.
|
So basically, all that needs to be done is to change the following code to have the newly created spells lists? I used the 600's, but started at 601 so that the lists lined up so to speak with the originals. 1 and 601 for Clerics (1 = NPC - 601 - Bot) etc... on down the line.
Code:
#ifdef EQBOTS
//franck-adds: EQoffline. I had to change that so the bot cast their pets if they re pets class..
if(IsBot() && GetClass() == MAGICIAN) {
AI_AddNPCSpells(516);
NPCSpecialAttacks(NPCTypedata->npc_attacks,0);
}
/*else if( IsBot() && GetClass() == WIZARD )
{
AI_AddNPCSpells(514);
NPCSpecialAttacks(NPCTypedata->npc_attacks,0);
}*/
else if(IsBot() && GetClass() == NECROMANCER) {
AI_AddNPCSpells(515);
NPCSpecialAttacks(NPCTypedata->npc_attacks,0);
}
else if(IsBot() && GetClass() == ENCHANTER) {
AI_AddNPCSpells(517);
NPCSpecialAttacks(NPCTypedata->npc_attacks,0);
}
else if(IsBot() && GetClass() == SHAMAN) {
AI_AddNPCSpells(518);
NPCSpecialAttacks(NPCTypedata->npc_attacks,0);
}
else if(IsBot() && GetClass() == DRUID) {
AI_AddNPCSpells(519);
NPCSpecialAttacks(NPCTypedata->npc_attacks,0);
}
else if(IsBot() && GetClass() == SHADOWKNIGHT) {
AI_AddNPCSpells(521);
NPCSpecialAttacks(NPCTypedata->npc_attacks,0);
}
else if(IsBot() && GetClass() == BEASTLORD) {
AI_AddNPCSpells(524);
NPCSpecialAttacks(NPCTypedata->npc_attacks,0);
}
else {
AI_AddNPCSpells(NPCTypedata->npc_spells_id);
NPCSpecialAttacks(NPCTypedata->npc_attacks,0);
}
#else
AI_AddNPCSpells(NPCTypedata->npc_spells_id);
NPCSpecialAttacks(NPCTypedata->npc_attacks,0);
#endif //EQBOTS