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

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 09-10-2008, 02:34 AM
kajika
Fire Beetle
 
Join Date: Sep 2008
Location: japan
Posts: 1
Default

Quote:
Originally Posted by macvaliant7 View Post
I installed the 1129 update pack and the latest EQOffline binaries/dll the problem i have is even though the warrior bot taunts and attacks a mob, it will attack the closest PC regardless if they damaged the mob. Is there a way to stop this default switch to a PC over an NPC? thanks

-Mac
I use this patch.

diff -r -c -N ./1129Bots/zone/hate_list.cpp ./1129Bots-changed/zone/hate_list.cpp
*** ./1129Bots/zone/hate_list.cpp 2008-06-19 05:49:00.000000000 +0900
--- ./1129Bots-changed/zone/hate_list.cpp 2008-09-05 14:33:16.000000000 +0900
***************
*** 240,246 ****

sint32 currentHate = cur->hate;

! if(cur->ent->IsClient()){

if(cur->ent->CastToClient()->IsSitting()){
aggroMod += RuleI(Aggro, SittingAggroMod);
--- 240,246 ----

sint32 currentHate = cur->hate;

! if(cur->ent->IsClient() || cur->ent->IsBot()){

if(cur->ent->CastToClient()->IsSitting()){
aggroMod += RuleI(Aggro, SittingAggroMod);
***************
*** 292,298 ****
iterator.Advance();
}

! if(topClientInRange != NULL && top != NULL && !top->IsClient())
return topClientInRange;
else
return top;
--- 292,298 ----
iterator.Advance();
}

! if(topClientInRange != NULL && top != NULL && !top->IsClient() && !top->IsBot())
return topClientInRange;
else
return top;
 


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 09:31 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