Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 08-14-2011, 10:41 AM
Criimson
Hill Giant
 
Join Date: Sep 2006
Posts: 172
Default

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.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:07 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3