Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 07-27-2018, 07:35 PM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

If you're pulling from source and building your own,
your answer is inside zone/attack.cpp NPC:eath() function, you'll see experience giving is based on the function hate_list.GetDamageTopOnHateList()
At a glance, it appears who gets credit is based on whoever does "top" damage, this is determined by the minimum of >50% of damage. It determines it with raid and grouping in mind. If you want to change this behavior, you'll need to edit either the NPC:eath logic when it sets the killer *mob from damagetop, or change the GetDamageTopOnHateList function to return whatever whimsical determination you want to customize this to.

It's not really a fix or exploit, since this has been the behavior since ages. I recall a similar behavior on live at one point or another, who knows what it does now or what it did back during DoN. So coding it would require someone to determine what's "right" vs what it is now. So there's the areas to edit above, and you can change it to whatever you like.

As an example though, if you want to code in cannon's "have to be last hit + >50 dmg" logic, you can add after the line
Code:
Mob* killer = GetHateDamageTop(this);
Something like this
Code:
Mob* killer = GetHateDamageTop(this);
if (killer && killer_mob && killer->GetID() != killer_mob->GetID() && killer_mob->IsNPC()) killer = killer_mob;
This way, if the last hitter was an npc, and the top damage mob is not them, then the killer is now whoever last hit (aka an npc), meaning you would lose your exp/loot rights in cannon's logic not being matched.
__________________

~Shin Noir
DungeonEQ.com

Last edited by Shin Noir; 07-27-2018 at 07:47 PM..
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 08:49 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3