Part 2 - This code is to help patch the lack of a CH rotation during raids. This code is incomplete in that it is only for a level 70 character for the time being. I wrote it to test the code. I run a 3 group level 70 raid set up.
Group 1:
Myself - Barbarian Warrior
Cleric
Enchanter
Bard
Monk
Rogue
Group 2:
Shadowknight
Shaman
Druid
Cleric
Ranger
Beastlord
Group 3:
Paladin
Enchanter
Magician
Necromancer
Wizard
Wizard
I am not to keen on running with more than 3 groups and that is why I upped the level cap to 70 (which also allows for the GoD AAs).
Anyway, this is the code. Adds the #bot healme <healer name> command
Code:
// Heal Command - patch for heal rotation
if(!strcasecmp(sep->arg[1], "healme")) {
if(sep->arg[2][0] == '\0') {
c->Message(0, "Usage: #bot healme <healer name>");
return;
}
int argCount = 0;
argCount = sep->argnum;
std::string botGroupMemberName;
if(argCount >= 2)
botGroupMemberName = std::string(sep->arg[2]);
Bot* botGroupMember = entity_list.GetBotByBotName(botGroupMemberName);
if(!botGroupMember) {
if(botGroupMemberName.empty())
c->Message(0, "You have must call the healer by name.");
else
c->Message(13, "%s is not a bot in this zone. Please try again.", botGroupMemberName.c_str());
return;
}
/*else if(!botGroupMember->CastToBot()->GetBotOwner() == c){
c->Message(0, "You have must call a healer that you own.");
}*/
else if(botGroupMember->GetClass() == CLERIC)
{
if(botGroupMember->IsCasting()){
botGroupMember->InterruptSpell();
}
botGroupMember->CastSpell(6140, c->GetID(), 1, -1, -1);
}
else if(botGroupMember->GetClass() == DRUID)
{
if(botGroupMember->IsCasting()){
botGroupMember->InterruptSpell();
}botGroupMember->CastSpell(6141, c->GetID(), 1, -1, -1);
}
else if(botGroupMember->GetClass() == SHAMAN)
{
if(botGroupMember->IsCasting()){
botGroupMember->InterruptSpell();
}
botGroupMember->CastSpell(6142, c->GetID(), 1, -1, -1);
}
return;
}
If you have any suggestions on streamlining or improving let me know.
I will be adding other spells for lower levels soonish
Criimson
EDIT: To test I just used these two codes...the aoemez and healme to run the Bertox event and did it successfully.
