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 12-14-2013, 04:42 AM
Nydosa's Avatar
Nydosa
Sarnak
 
Join Date: Jan 2013
Posts: 61
Default Custom Haste Caps for Level-Limited servers

I couldn't find anything on the forums pointing me directly to this line of code, so I'd like to share it and jointly request a possibility to nullify the haste cap by levels through the variables table... Anyways, in mob.cpp go to the follow area of code, and edit your level caps at will.

Quote:
int Mob::GetHaste() {
int h = spellbonuses.haste + spellbonuses.hastetype2 + itembonuses.haste;
int cap = 0;
int level = GetLevel();

if(level < 30) { // Rogean: Are these caps correct? Will use for now.
cap = 50;
} else if(level < 50) {
cap = 74;
} else {
cap = RuleI(Character, HasteCap);
}

if(h > cap) h = cap;

h += spellbonuses.hastetype3;
h += ExtraHaste; //GM granted haste.

if (spellbonuses.inhibitmelee){
if (h >= 0)
h -= spellbonuses.inhibitmelee;

else
h -=((100+h)*spellbonuses.inhibitmelee/100);
}

return(h);
}
Reply With Quote
  #2  
Old 12-15-2013, 03:44 PM
Nydosa's Avatar
Nydosa
Sarnak
 
Join Date: Jan 2013
Posts: 61
Default

I spoke too soon. I'm assuming that will only remove the haste cap for pets and other NPCs. There's identical code in client_mods.cpp that you can fiddle with.
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 08:38 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