• 0
johnbond

skill_damage_db.txt not working?

Question

I tried to add these values on db/skill_damage_db.txt but it seems it does not work.

 

AS_SONICBLOW,1,15,-20,-20,-20,-20

// Skill Damage Adjustment Database
//
// Structure of Database:
// SkillName,Caster,Map,Damage against Players{,Damage against Mobs{,Damage against Bosses{,Damage against Other}}}
//
// Caster: The groups for which the adjustment takes effect. (bitmask)
//		 1 = Player
//		 2 = Monster
//		 4 = Pet
//		 8 = Homunculus
//		16 = Mercenary
//		32 = Elemental
//
// Map:
// 		1    - Normal (the maps that aren't classified as these maps below)
// 		2    - PVP
// 		4    - GVG
// 		8    - Battlegrounds
// 		16   - 'skill_damage' mapflag
// Restricted zones - they're configured by 'restricted <number>' mapflag
// 		32   - Zone 1
// 		64   - Zone 2
// 		128  - Zone 3
// 		256  - Zone 4
// 		512  - Zone 5
// 		1024 - Zone 6
// 		2048 - Zone 7
//
// Notes:
//  	Damage is a percentage between -100 and 100000.
//  	Negative values decrease damage and positive values increase it (0 = no change).
//
// Examples:
// MC_MAMMONITE,1,1,50 // In normal maps, players deal +50% damage to other players with Mammonite.
// MO_EXTREMITYFIST,1,6,-50 // In PVP and GVG, players deal -50% (half) damage to other players with Asura Strike.
// AB_ADORAMUS,1,6,50,0,10,15 // In PVP and GVG, players deal +50% damage to other players, +0% to mobs, +10% to bosses, and +15% to other with Adoramus.

AS_SONICBLOW,1,15,-20,-20,-20,-20

Damage from sonic blow remaions the same after the setting. I am pretty sure the structure I di was correct but damage is still the same and was not increased.

 

Is there something wrong with skill_damage_db.txt? or am I doing this wrong?

I use the rathena r14640 in pre-re.

 

Any input guys? Thanks.

Share this post


Link to post
Share on other sites

13 answers to this question

Recommended Posts

// Skill Damage Adjustment Database
//
// Structure of Database:
// SkillName,Caster,Map,Damage against Players{,Damage against Mobs{,Damage against Bosses{,Damage against Other}}}
//
// Caster: The groups for which the adjustment takes effect. (bitmask)
//		 1 = Player
//		 2 = Monster
//		 4 = Pet
//		 8 = Homunculus
//		16 = Mercenary
//		32 = Elemental
//
// Map:
// 		1    - Normal (the maps that aren't classified as these maps below)
// 		2    - PVP
// 		4    - GVG
// 		8    - Battlegrounds
// 		16   - 'skill_damage' mapflag
// Restricted zones - they're configured by 'restricted <number>' mapflag
// 		32   - Zone 1
// 		64   - Zone 2
// 		128  - Zone 3
// 		256  - Zone 4
// 		512  - Zone 5
// 		1024 - Zone 6
// 		2048 - Zone 7
//
// Notes:
//  	Damage is a percentage between -100 and 100000.
//  	Negative values decrease damage and positive values increase it (0 = no change).
//
// Examples:
// MC_MAMMONITE,1,1,50 // In normal maps, players deal +50% damage to other players with Mammonite.
// MO_EXTREMITYFIST,1,6,-50 // In PVP and GVG, players deal -50% (half) damage to other players with Asura Strike.
// AB_ADORAMUS,1,6,50,0,10,15 // In PVP and GVG, players deal +50% damage to other players, +0% to mobs, +10% to bosses, and +15% to other with Adoramus.

Don't use the Skill name in the skill_damage_db.txt because it won't work instead use Skill ID

Example:

use this

136,1,15,-20,-20,-20,-20

instead of this one

AS_SONICBLOW,1,15,-20,-20,-20,-20

save the changes and type @reloadskilldb ingame.

Share this post


Link to post
Share on other sites
  • 0

The lastest rA in the git doesn't seem to have that option in core.h anymore. What do we do now to get this to work? Thanks.

Peopleperosn49

Edited by Peopleperson49
Better clarification of my question.

Share this post


Link to post
Share on other sites
  • 0
10 minutes ago, Peopleperson49 said:

The lastest rA in the git doesn't seem to have that option in core.h anymore. What do we do now to get this to work? Thanks.

Peopleperosn49

i think you just add

inside trunk/src/custom/defines_pre.h

// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder

#ifndef _CONFIG_CUSTOM_DEFINES_PRE_HPP_
#define _CONFIG_CUSTOM_DEFINES_PRE_HPP_

/**
 * rAthena configuration file (http://rathena.org)
 * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
 **/


#define ADJUST_SKILL_DAMAGE
#ifdef ADJUST_SKILL_DAMAGE
#define MAX_SKILL_DAMAGE_RATE 100000
#endif


#endif // _CONFIG_CUSTOM_DEFINES_PRE_HPP_

OR 

inside core .h

trunk/src/config/core.h

works fine for me 

 

Share this post


Link to post
Share on other sites
  • 0
On 9/18/2018 at 8:22 AM, Peopleperson49 said:

The lastest rA in the git doesn't seem to have that option in core.h anymore. What do we do now to get this to work? Thanks.

Peopleperosn49

yes its not in core.h anymore. How can we get it work ya ?

Share this post


Link to post
Share on other sites
  • 0
48 minutes ago, Chaos92 said:

yes its not in core.h anymore. How can we get it work ya ?

It's on by default now.

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, n0tttt said:

It's on by default now.

but not work with the documentation. BL_PC isnt work anymore. I tried using 1 and it works.

Share this post


Link to post
Share on other sites

 

https://github.com/rathena/rathena/blob/master/src/config/core.h

/// Uncomment to enable skills damage adjustments
/// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the
/// damage rate of specified skills.
//#define ADJUST_SKILL_DAMAGE

 

 

I think it is already uncommented in mine but still it seems to not work.

/// Uncomment to enable skills damage adjustments
/// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the
/// damage rate of specified skills.
#define ADJUST_SKILL_DAMAGE

Already recompiled as well.

Share this post


Link to post
Share on other sites
// Skill Damage Adjustment Database
//
// Structure of Database:
// SkillName,Caster,Map,Damage against Players{,Damage against Mobs{,Damage against Bosses{,Damage against Other}}}
//
// Caster: The groups for which the adjustment takes effect. (bitmask)
//		 1 = Player
//		 2 = Monster
//		 4 = Pet
//		 8 = Homunculus
//		16 = Mercenary
//		32 = Elemental
//
// Map:
// 		1    - Normal (the maps that aren't classified as these maps below)
// 		2    - PVP
// 		4    - GVG
// 		8    - Battlegrounds
// 		16   - 'skill_damage' mapflag
// Restricted zones - they're configured by 'restricted <number>' mapflag
// 		32   - Zone 1
// 		64   - Zone 2
// 		128  - Zone 3
// 		256  - Zone 4
// 		512  - Zone 5
// 		1024 - Zone 6
// 		2048 - Zone 7
//
// Notes:
//  	Damage is a percentage between -100 and 100000.
//  	Negative values decrease damage and positive values increase it (0 = no change).
//
// Examples:
// MC_MAMMONITE,1,1,50 // In normal maps, players deal +50% damage to other players with Mammonite.
// MO_EXTREMITYFIST,1,6,-50 // In PVP and GVG, players deal -50% (half) damage to other players with Asura Strike.
// AB_ADORAMUS,1,6,50,0,10,15 // In PVP and GVG, players deal +50% damage to other players, +0% to mobs, +10% to bosses, and +15% to other with Adoramus.

Don't use the Skill name in the skill_damage_db.txt because it won't work instead use Skill ID

Example:

use this

136,1,15,-20,-20,-20,-20

instead of this one

AS_SONICBLOW,1,15,-20,-20,-20,-20

save the changes and type @reloadskilldb ingame.

 

 

 

Oh nice okay ill check. Its just that the example used skill name so I also used skill name hehe.

Share this post


Link to post
Share on other sites

Ots should be skills name since r17+++ but you can check with skills number.

Share this post


Link to post
Share on other sites

 

 

 

 

Oh nice okay ill check. Its just that the example used skill name so I also used skill name hehe.

 

 

 

I tried it again it seems to work now. Thank you.

 

Though, how can I make it work to ALL MAPS? Because not all maps are in zones.

Share this post


Link to post
Share on other sites
// Map:
// 		1    - Normal (the maps that aren't classified as these maps below)
// 		2    - PVP
// 		4    - GVG
// 		8    - Battlegrounds
// 		16   - 'skill_damage' mapflag

1+2+4+8=?

AS_SONICBLOW,"?",15,-20,-20,-20,-20

Share this post


Link to post
Share on other sites
// Map:
// 		1    - Normal (the maps that aren't classified as these maps below)
// 		2    - PVP
// 		4    - GVG
// 		8    - Battlegrounds
// 		16   - 'skill_damage' mapflag

1+2+4+8=?

AS_SONICBLOW,"?",15,-20,-20,-20,-20

 

yes I used 15 (1+2+4+8) but it seems its not working on towns when I first tried.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now