PDA

View Full Version : changing base damage data for classes?


caravellex
01-18-2018, 01:09 AM
Hello!
Ive been fiddling with changes base hand to hand melee damage for classes. The first thing I tried was adjusting hand to hand skill, but the damage remained the same.
I then found this code in attack.ccp, and I updated the values significantly for beastlord.
int Mob::GetHandToHandDamage(void)
{
if (RuleB(Combat, UseRevampHandToHand)) {
// everyone uses this in the revamp!
int skill = GetSkill(EQEmu::skills::SkillHandtoHand);
int epic = 0;
if (IsClient() && CastToClient()->GetItemIDAt(12) == 10652 && GetLevel() > 46)
epic = 280;
if (epic > skill)
skill = epic;
return skill / 15 + 3;
}

static uint8 mnk_dmg[] = { 99,
4, 4, 4, 4, 5, 5, 5, 5, 5, 6, // 1-10
6, 6, 6, 6, 7, 7, 7, 7, 7, 8, // 11-20
8, 8, 8, 8, 9, 9, 9, 9, 9, 10, // 21-30
10, 10, 10, 10, 11, 11, 11, 11, 11, 12, // 31-40
12, 12, 12, 12, 13, 13, 13, 13, 13, 14, // 41-50
14, 14, 14, 14, 14, 14, 14, 14, 14, 14, // 51-60
14, 14 }; // 61-62
static uint8 bst_dmg[] = { 99,
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, // 1-10
, 12, 13, 14, 15, 16, 17, 18, 19, 20, // 11-20
22, 24, 26, 28, 30, 32, 34, 36, 38, 40, // 21-30
43, 46, 49, 52, 55, 58, 61, 64, 67, 70, // 31-40
10, 11, 11, 11, 11, 11, 11, 12, 12 }; // 41-49

after a server restart and playing around with different level beastlord, it seems to be returning the old values for fist damage and not the updated ones. Anyone know how to edit base punching damage?

Uleat
01-18-2018, 01:23 AM
Not knowing what you changed, I would start with checking the RuleB(Combat, UseRevampHandToHand) setting in your database.

Make sure that reflects the section of code that you modified.


Not to patronize you..but, you did recompile and move the new binaries into your server folder?

caravellex
01-18-2018, 03:38 AM
I did not compile!
Im still new, Ill get on that, ty

demonstar55
01-18-2018, 01:38 PM
By default the rules use classic formulas, if you want to use the new formulas that scale with skill level, you need to turn the rule on.

Since there are multiple rule sets, this isn't exactly simple to tell you what to do :P

caravellex
01-18-2018, 03:31 PM
ty for reply!
Total noob and didn't realize I needed to compile.
After compiling the original changes to the BST damage table the damages worked! so editing those for monk and beastmaster will change punch damage.

You could copy everything and change the class values to create a table for other classes as well perhaps?

Pretty proud of my first ever code manipulation and change :D