nasagnilac Posted November 24, 2013 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Share Posted November 24, 2013 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. Quote Link to comment Share on other sites More sharing options...
chowking Posted November 24, 2013 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 178 Reputation: 17 Joined: 06/25/12 Last Seen: September 22, 2022 Share Posted November 24, 2013 using pre re or renewal? Quote Link to comment Share on other sites More sharing options...
nasagnilac Posted November 24, 2013 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Author Share Posted November 24, 2013 pre-renewal sir. Quote Link to comment Share on other sites More sharing options...
chowking Posted November 25, 2013 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 178 Reputation: 17 Joined: 06/25/12 Last Seen: September 22, 2022 Share Posted November 25, 2013 then you didn't need to comment the ifdef renewal stuff on SW, what did you want to happen with SW ? Quote Link to comment Share on other sites More sharing options...
nasagnilac Posted November 25, 2013 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Author Share Posted November 25, 2013 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_ Quote Link to comment Share on other sites More sharing options...
Question
nasagnilac
Hi my safety wall is not working even I comment the lines for renewal here is the code.
skill.c
battle.c
How can I fix that ? Im inside the safety wall but monster wont miss any attack.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.