Jump to content
  • 0

skill_damage_db.txt not working?


Question

Posted

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.

14 answers to this question

Recommended Posts

Posted

// 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.

  • 0
Posted
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 

 

  • 0
Posted
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 ?

Posted

 

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.

Posted
// 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.

Posted

 

 

 

 

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.

Posted
// 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
Posted
// 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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...