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

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 02-09-2015, 08:56 PM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

Heres a hack to get around the crashing at dismiss of bot, also this will now dismiss single bots if you are grouped with more than one via the "disband" button, which hasnt been working for a while, although this is a bit hacky and a more permanent fix is still needed. (also introduces a new bug based on group leadership)

in client_packet.cpp in function:
void Client::Handle_OP_GroupDisband(const EQApplicationPacket *app)

at about line 6463 where the #ifdef Bots, replace the #ifdef bots with this section

Code:
#ifdef BOTS
	// this block is necessary to allow more control over controlling how bots are zoned or camped.
	if (Bot::GroupHasBot(group)) {
		if (group->IsLeader(this)) {
				Mob* tempMember = GetTarget();
				if (tempMember->IsBot()) {
					Bot::ProcessBotGroupDisband(this, std::string(tempMember->GetCleanName()));
					return;
				}
		}
	}
#endif
As for the crashing on bot death in a 2 person group, it is crashing on this line:

strcpy(g->membername[j-1], g->members[j]->GetCleanName());

Im still working through breakpoints and narrowing down a temp fix at least.
Reply With Quote
 


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 07:37 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