View Single Post
  #735  
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;