Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Feature Requests

Development::Feature Requests Post suggestions/feature requests here.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2013, 02:45 AM
HnathBST
Sarnak
 
Join Date: Feb 2007
Location: Sunset Home
Posts: 71
Default Merc Runspeed

Hi, I'm not sure if this is in the right place so feel free to move me. I've had a few players on my server mention that their mercs tend to get lost, sometimes taking up to 2 minutes to find them.

I have upped the runspeed of the mercs in the DB but is it possible to just set the runspeed as the same as the client's current speed? I'm not very skilled in C++ but I'm going to poke around and see what I can find.

I do know that the mercs runspeed is set on the fly (@ zone/merc.cpp 1803) but I don't know how abouts to change this to the clients current run speed.

Thanks.
Reply With Quote
  #2  
Old 09-30-2013, 11:51 PM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

I would look at LoadMerc around line 5021 in merc.cpp.

Code:
                        npc_type->gender = gender;
			npc_type->loottable_id = 0; // Loottable has to be 0, otherwise we'll be leavin' some corpses!
			npc_type->npc_id = 0; //NPC ID has to be 0, otherwise db gets all confuzzled.
			npc_type->race = merc_template->RaceID;
			npc_type->class_ = merc_template->ClassID;
			npc_type->maxlevel = 0; //We should hard-set this to override scalerate's functionality in the NPC class when it is constructed.

			Merc* merc = new Merc(npc_type, c->GetX(), c->GetY(), c->GetZ(), 0);
			merc->SetMercData( merc_template->MercTemplateID );
			database.LoadMercEquipment(merc);
			merc->UpdateMercStats(c);
Or, just add it to the constructor.
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 03:29 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