Jump to content
  • 0

Increasing Heal rate of all class that has heal || Not through item scrip


AinsLord

Question


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

is there any way to increase the heal rate for classes that has heal skill??

this is for pre-re without modifying or putting item bonus script

 

#TIA

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   169
  • Joined:  04/05/13
  • Last Seen:  

D:\rathena\db\skill_damage_db.txt
 

Add all heal skill here, and made it more heal power.

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

ok i'll try this one out thnx ^_^

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  90
  • Reputation:   6
  • Joined:  12/11/12
  • Last Seen:  

Either you edit it on skill.c and then recompile your server

or

edit it inside your rathena/db/skill_damage_db.txt

but make sure to enable this first inside your 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

/// The skill damage adjustment rate is capped at 100000.
#ifdef ADJUST_SKILL_DAMAGE
#define MAX_SKILL_DAMAGE_RATE 100000
#endif

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

22 hours ago, xyxzero said:

Either you edit it on skill.c and then recompile your server

or

edit it inside your rathena/db/skill_damage_db.txt

but make sure to enable this first inside your 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

/// The skill damage adjustment rate is capped at 100000.
#ifdef ADJUST_SKILL_DAMAGE
#define MAX_SKILL_DAMAGE_RATE 100000
#endif

 

@xyxzero those setting is not on my core.hpp im using the latest git on rathena

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   169
  • Joined:  04/05/13
  • Last Seen:  

src\custom\defines_pre.hpp

 

put 

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

#endif // _CONFIG_CUSTOM_DEFINES_PRE_HPP_

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  90
  • Reputation:   6
  • Joined:  12/11/12
  • Last Seen:  

On 9/16/2018 at 2:46 AM, AinsLord said:

@xyxzero those setting is not on my core.hpp im using the latest git on rathena

You can just add it inside your core.h or like what @TARTs said. 

It's better to put a limit inside the specific set of codes like this

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

100000 = max value that you can increase the % of damage a skill inside your skill_damage.txt

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

still the same heal rate for players

and i think the skill_damage_db.txt is specifically for the damage of the skills

not increasing the heal amount when you heal your self or other players

ive tried putting this

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

and add this to skill_damage_db.txt

// Examples:
// MC_MAMMONITE,BL_PC,1,50 // In normal maps, players deal +50% damage to other players with Mammonite.
// MO_EXTREMITYFIST,BL_PC,6,-50 // In PVP and GVG, players deal -50% (half) damage to other players with Asura Strike.
// AB_ADORAMUS,BL_PC,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.
AL_HEAL,BL_PC,7,1000

compile the server and still has the same rate

 

i also added this on defines_pre.hpp still same heal rate

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

#endif /* CONFIG_CUSTOM_DEFINES_PRE_HPP */

but yea thnx for the help thou ^_^ i greatly appreciate it

Edited by AinsLord
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  90
  • Reputation:   6
  • Joined:  12/11/12
  • Last Seen:  

Inside skill.c find this, this is pretty self explanatory on your side regarding if you're using Renewal or Pre-Renewal.

			/**
			 * Renewal Heal Formula
			 * Formula: ( [(Base Level + INT) / 5] x 30 ) x (Heal Level / 10) x (Modifiers) + MATK
			 */
			hp = (status_get_lv(src) + status_get_int(src)) / 5 * 30 * skill_lv / 10;
#else
			hp = (status_get_lv(src) + status_get_int(src)) / 8 * (4 + (skill_lv * 8));
#endif
			if( sd && ((skill = pc_checkskill(sd, HP_MEDITATIO)) > 0) )
				hp_bonus += skill * 2;
			else if (src->type == BL_HOM && (skill = hom_checkskill(((TBL_HOM*)src), HLIF_BRAIN)) > 0)
				hp_bonus += skill * 2;
			if( sd && tsd && sd->status.partner_id == tsd->status.char_id && (sd->class_&MAPID_UPPERMASK) == MAPID_SUPER_NOVICE && sd->status.sex == 0 )
				hp *= 2;
			break;
	}

 

you can edit 

      (i believe this one is for renewal)      hp = (status_get_lv(src) + status_get_int(src)) / 5 * 30 * skill_lv / 10;

      (this one is for pre renewal)      hp = (status_get_lv(src) + status_get_int(src)) / 8 * (4 + (skill_lv * 8));

Correct me if i'm wrong.

pretty sure you can change the skill_lv to a specific number you want or you can change the multipliers / modifiers to your likeness. Or you can make your own formula regarding what you want to add/remove or alter in that given formula just don't remove the hp = 

 

Make sure to recompile and try it out.
 

 

Link to comment
Share on other sites

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.

×
×
  • Create New...