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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-31-2015, 02:55 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default Adjusting XP loss

Is there a server rule out there to adjust death xp loss? We have Character:DeathExpLossLevel and Character:DeathExpLossMultiplier

Character:DeathExpLossMultiplier has a default of 3, what is this indicative of? That is 3 of what?
Reply With Quote
  #2  
Old 01-31-2015, 03:09 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Here you go (attack.cpp):
Code:
if(RuleB(Character, UseDeathExpLossMult)){
    float GetNum [] = {0.005f,0.015f,0.025f,0.035f,0.045f,0.055f,0.065f,0.075f,0.085f,0.095f,0.110f };
    int Num = RuleI(Character, DeathExpLossMultiplier);
    if((Num < 0) || (Num > 10))
        Num = 3;
    float loss = GetNum[Num];
    exploss=(int)((float)GetEXP() * (loss)); //loose % of total XP pending rule (choose 0-10)
}
Reply With Quote
  #3  
Old 01-31-2015, 03:22 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Dude you are awesome. So percentage of total.
Reply With Quote
  #4  
Old 01-31-2015, 04:41 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Yeah, that's what the comment says.
Code:
//loose % of total XP pending rule (choose 0-10)
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 02:58 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