- 262
- 2014
- 33
- Location
- netherlands
How to make a cap on the haste percentage ( spell haste ofc ) :
1. Open up Object.h
2. go to line 28.
3. You'll see :
4. then go to line 212.
5. You'll see :
Edit it like I did :
So, that little if makes the difference, let me explain how it works:
Change the numbers in red to your desired haste cap, in percentages.
6. Recompile ( skip this if you want to add more caps).
How to make a cap on the parry percentage :
1. Open up Statsystem.cpp
2. Go to line 702.
3. You'll see :
Replace it with :
Again, change the red numbers to your desired parry cap.
4. Recompile ( skip this if you want to add more caps).
How to make a cap on the dodge percentage :
1. Open up Statsytem.cpp
2. Go to line : 738
3. You'll see:
Replace with :
}
Again, change the red numbers to your desired dodge cap.
4. Recompile ( skip this if you want to add more caps).
How to make a cap on the block percentage :
1. Open up Statsystem.cpp
2. go to line : 577
3. You'll see:
Replace it with :
Again, change the red numbers to your desired block ( percentage ) cap.
4. Recompile ( Now you will NEED to since this is the last cap).
i didnt had time to test the haste
The parry/dodge/block caps work as intended.
1. Open up Object.h
2. go to line 28.
3. You'll see :
Code:
#include "Map.h"
replace it with:
#include "Map.h"
#include "Unit.h"
4. then go to line 212.
5. You'll see :
Code:
void ApplyPercentModFloatValue(uint16 index, float val, bool apply)
{
float value = GetFloatValue(index);
ApplyPercentModFloatVar(value, val, apply);
SetFloatValue(index, value);
}
Code:
void ApplyPercentModFloatValue(uint16 index, float val, bool apply)
{
float value = GetFloatValue(index);
ApplyPercentModFloatVar(value, val, apply);
if(apply && index == CR_HASTE_SPELL && value > /*the haste cap, 50 for example*/ 50)
value = 50;
SetFloatValue(index, value);
}
So, that little if makes the difference, let me explain how it works:
Code:
if(apply && index == CR_HASTE_SPELL && value > /*the haste cap, [COLOR="#FF0000"]50 [/COLOR]for example*/ [COLOR="#FF0000"]50[/COLOR])
value = 50;
Change the numbers in red to your desired haste cap, in percentages.
6. Recompile ( skip this if you want to add more caps).
How to make a cap on the parry percentage :
1. Open up Statsystem.cpp
2. Go to line 702.
3. You'll see :
Code:
SetStatFloatValue(PLAYER_PARRY_PERCENTAGE, value);
}
Code:
if(value > 50)
value = 50;
SetStatFloatValue(PLAYER_PARRY_PERCENTAGE, value);
}
4. Recompile ( skip this if you want to add more caps).
How to make a cap on the dodge percentage :
1. Open up Statsytem.cpp
2. Go to line : 738
3. You'll see:
Code:
SetStatFloatValue(PLAYER_DODGE_PERCENTAGE, value);
}
Code:
if(value > 50)
value = 50;
SetStatFloatValue(PLAYER_DODGE_PERCENTAGE, value);
Again, change the red numbers to your desired dodge cap.
4. Recompile ( skip this if you want to add more caps).
How to make a cap on the block percentage :
1. Open up Statsystem.cpp
2. go to line : 577
3. You'll see:
Code:
SetStatFloatValue(PLAYER_BLOCK_PERCENTAGE, value);
}
Code:
if(value > 50)
value = 50;
SetStatFloatValue(PLAYER_BLOCK_PERCENTAGE, value);
}
Again, change the red numbers to your desired block ( percentage ) cap.
4. Recompile ( Now you will NEED to since this is the last cap).
i didnt had time to test the haste
The parry/dodge/block caps work as intended.

Last edited: