View Single Post
  #1  
Old 01-05-2019, 04:33 AM
Garudan
Sarnak
 
Join Date: Jun 2005
Posts: 38
Default Increasing Melee dmg with Str

so i modified the attack.cpp in line 5087 as follows

Code:
	if (IsClient()) {
		int extra = 0;
		switch (hit.skill) {
		case EQEmu::skills::SkillThrowing:
		case EQEmu::skills::SkillArchery:
			extra = CastToClient()->GetHeroicDEX() / 10;
			break;
		default:
			extra = CastToClient()->GetHeroicSTR() / 10;
			break;
		}
		hit.damage_done += extra;
		hit.damage_done = hit.damage_done*((GetSTR()-50)/40);
	}
The idea is to effect the very last dmg a melee is doing by factor (Str-50)/40

so if a char with 130 str would inflict 10 dmg, he now inflicts 20.

it is somehow not working. any ideas why this is not working?
Reply With Quote