Jump to content
  • 0

Safety Wall is not working..


Question

Posted

Hi my safety wall is not working even I comment the lines for renewal here is the code.

 

skill.c

	switch( skill_id ) {
	//case MH_STEINWAND:
	case MG_SAFETYWALL:
	//#ifdef RENEWAL
	//	if(skill_id == MH_STEINWAND)
	//		val2 = 300 * skill_lv + 65 * ( status->int_ +  status_get_lv(src) ) + status->max_sp; //nb hp
	//	else
	//		val2 = status_get_max_hp(src) * 3;
	//#else
		val2 = skill_lv + 1;
	//#endif
		break;

battle.c

if( sc->data[SC_SAFETYWALL] && (flag&(BF_SHORT|BF_MAGIC))==BF_SHORT ) {
			struct skill_unit_group* group = skill_id2group(sc->data[SC_SAFETYWALL]->val3);	
			//uint16 skill_id = sc->data[SC_SAFETYWALL]->val2; (safetywall or steinwand)
			if (group) {
			//in RE, SW possesses a lifetime equal to group val2, (3x caster hp, or homon formula)
			//#ifdef RENEWAL
			//	d->dmg_lv = ATK_BLOCK;
			//	if ( ( group->val2 - damage) > 0 ) {
			//		group->val2 -= (int)cap_value(damage,INT_MIN,INT_MAX);
			//	} else
			//		skill_delunitgroup(group);
			//	return 0;
			//#else
				if (--group->val2<=0)
					skill_delunitgroup(group);
				d->dmg_lv = ATK_BLOCK;
				return 0;
			//#endif
			}

How can I fix that ? Im inside the safety wall but monster wont miss any attack.

4 answers to this question

Recommended Posts

Posted

like what I said in the top.. SW is not working... even I comment and uncomment those codes. monsters can still damage me in Safety Wall..

 

renewal.h

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

//quick option to disable all renewal option, used by ./configure
#define PRERE
#ifndef PRERE
/**
 * rAthena configuration file (http://rathena.org)
 * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
 **/


/**
 * @INFO: This file holds general-purpose renewal settings, for class-specific ones check /src/config/classes folder
 **/

/// game renewal server mode
/// (disable by commenting the line)
///
/// leave this line to enable renewal specific support such as renewal formulas
//#define RENEWAL

/// renewal cast time
/// (disable by commenting the line)
///
/// leave this line to enable renewal casting time algorithms
/// cast time is decreased by DEX * 2 + INT while 20% of the cast time is not reduced by stats.
/// example:
///  on a skill whos cast time is 10s, only 8s may be reduced. the other 2s are part of a
///  "fixed cast time" which can only be reduced by specialist items and skills
//#define RENEWAL_CAST

/// renewal drop rate algorithms
/// (disable by commenting the line)
///
/// leave this line to enable renewal item drop rate algorithms
/// while enabled a special modified based on the difference between the player and monster level is applied
/// based on the http://irowiki.org/wiki/Drop_System#Level_Factor table
//#define RENEWAL_DROP

/// renewal exp rate algorithms
/// (disable by commenting the line)
///
/// leave this line to enable renewal item exp rate algorithms
/// while enabled a special modified based on the difference between the player and monster level is applied
//#define RENEWAL_EXP

/// renewal level modifier on damage
/// (disable by commenting the line)
///
// leave this line to enable renewal base level modifier on skill damage (selected skills only)
//#define RENEWAL_LVDMG

/// renewal ASPD [malufett]
/// (disable by commenting the line)
///
/// leave this line to enable renewal ASPD
/// - shield penalty is applied
/// - AGI has a greater factor in ASPD increase
/// - there is a change in how skills/items give ASPD
/// - some skill/item ASPD bonuses won't stack
//#define RENEWAL_ASPD

#endif

#endif // _CONFIG_RENEWAL_H_

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