Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2018, 01:09 AM
caravellex
Sarnak
 
Join Date: Sep 2010
Posts: 63
Default changing base damage data for classes?

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.
Code:
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?
Reply With Quote
  #2  
Old 01-18-2018, 01:23 AM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

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?
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #3  
Old 01-18-2018, 03:38 AM
caravellex
Sarnak
 
Join Date: Sep 2010
Posts: 63
Default

I did not compile!
Im still new, Ill get on that, ty
Reply With Quote
  #4  
Old 01-18-2018, 01:38 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

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
Reply With Quote
  #5  
Old 01-18-2018, 03:31 PM
caravellex
Sarnak
 
Join Date: Sep 2010
Posts: 63
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

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:46 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