Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2019, 01:07 PM
Splose's Avatar
Splose
Discordant
 
Join Date: Apr 2014
Posts: 279
Default NPC scaling/maxlevel interaction

If you are using the maxlevel field to scale NPC level dynamically and the NPC is not its base level the maxhit and health get a bit wonky. In this example I am using a level 5 NPC with a maxlevel of 6.

It looks like everything else is scaling properly except for the HP/Maxhit.


Reply With Quote
  #2  
Old 05-05-2020, 05:41 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

Did you ever figure out what was going on with this? I'm seeing the same issue.

It looks like it might have been a bug with NPCs with a 0 scale rate or under level 25.
I submitted a pull request with a fix.
Reply With Quote
  #3  
Old 05-06-2020, 06:09 AM
Splose's Avatar
Splose
Discordant
 
Join Date: Apr 2014
Posts: 279
Default

I haven't updated my source in awhile but as far as I know this is still a bug.

C++ is chinese to me so I just changed my zone_controller.pl to point towards the new table that #scale is using since I was already using it to scale player pets.


Code:
sub LoadScaling{
	$connect = plugin::LoadMysql();
	$query = "SELECT
		npc_scale_global_base.level,
		npc_scale_global_base.type,
		npc_scale_global_base.ac,
		npc_scale_global_base.hp,
		npc_scale_global_base.accuracy,
		npc_scale_global_base.slow_mitigation,
		npc_scale_global_base.attack,
		npc_scale_global_base.min_dmg,
		npc_scale_global_base.max_dmg,
		npc_scale_global_base.hp_regen_rate,
		npc_scale_global_base.attack_delay,
		npc_scale_global_base.special_abilities
		FROM
		npc_scale_global_base
		ORDER BY npc_scale_global_base.level, npc_scale_global_base.type";
	$query_handle = $connect->prepare($query);
	$query_handle->execute();
	while (@row = $query_handle->fetchrow_array()){ $SD[$row[0]][$row[1]] = [@row]; }
	#quest::gmsay("[ZC] - Scaling Definitions have been reloaded..", 18);
}
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 11:18 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3