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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2011, 05:28 AM
Timothy_nonax
Fire Beetle
 
Join Date: May 2011
Posts: 1
Smile COMMITTED: Add Bot Command ( #bot pull )

bot.cpp
Code:
10078,10079d10077
< 		c->Message(0, "#bot pull [<bot name>] [target] - Bot Pulling Target NPC's");
< 
10085,10122d10082
< 	// pull 
< 	if(!strcasecmp(sep->arg[1], "pull")) {
< 
< 		Mob *target = c->GetTarget();
< 		if(target == NULL || target == c || target->IsBot() || (target->IsPet() && target->GetOwner()->IsBot()))
< 		{
< 			c->Message(15, "You must select a monster");
< 			return;
< 		}
< 		
< 		if(c->IsGrouped())
< 		{
< 			bool haspuller = false;
< 			Group *g = c->GetGroup();
< 			for(int i=0; i<MAX_GROUP_MEMBERS; i++)
< 			{
< 				if(g && g->members[i] && g->members[i]->IsBot() && !strcasecmp(g->members[i]->GetName() , sep->arg[2]))
< 				{
< 
< 					haspuller = true;
< 					Mob *puller = g->members[i];
< 					if (puller->CastToBot()->IsArcheryRange(target))
< 					{
< 						puller->Say("Trying to Pull %s \n", target->GetCleanName());
< 						puller->CastToBot()->BotRangedAttack(target);
< 					} else {
< 						puller->Say("Out of Range %s \n", target->GetCleanName());
< 					}
< 				}
< 			}
< 			if(!haspuller) {
< 				c->Message(15, "You must have an Puller in your group.");
< 			}
< 		}
< 		return;
< 
< 	}
<
Function for Caster.
bot tank pulling any mobs =)
Reply With Quote
  #2  
Old 05-08-2011, 08:24 PM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

committed to r1891
__________________
The Realm
Reply With Quote
Reply


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 06:30 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3