Karthikeyan Posted May 6, 2021 Posted May 6, 2021 (edited) How do i reduce the resistance of a player from 100 to 80% or less. Even if he has 100% resist it should not have any effect, as of now if a player has 100% demi human resist no other player can hit him in woe or pvp. Any help would be greatful!!!! Edited May 6, 2021 by Karthikeyan Quote
0 Emistry Posted May 9, 2021 Posted May 9, 2021 src/map/pc.cpp#L3843 case SP_SUBRACE: // bonus2 bSubRace,r,x; PC_BONUS_CHK_RACE(type2,SP_SUBRACE); if(sd->state.lr_flag != 2) sd->indexed_bonus.subrace[type2]+=val; + if (type2 == RC_DEMIHUMAN && sd->indexed_bonus.subrace[type2] > 80) + sd->indexed_bonus.subrace[type2] = min(80, sd->indexed_bonus.subrace[type2]); break; you can try something like this, max 80% item bonuses reduction from equipments 1 Quote
0 Gladius Posted May 7, 2021 Posted May 7, 2021 Loc: https://github.com/rathena/rathena/blob/master/conf/battle/status.conf#L30-L32 // Maximum resistance to status changes. (100 = 100%) // NOTE: Cards and equipment can go over this limit, so it only applies to natural resist. pc_max_status_def: 100 mob_max_status_def: 100 or in src/map/battle.cpp { "pc_max_status_def", &battle_config.pc_max_sc_def, 100, 0, INT_MAX, }, It may solve your problem. Quote
0 Karthikeyan Posted May 7, 2021 Author Posted May 7, 2021 But the above is showing as def instead of resist right. Quote
0 Karthikeyan Posted May 10, 2021 Author Posted May 10, 2021 On 5/9/2021 at 9:08 PM, Emistry said: src/map/pc.cpp#L3843 case SP_SUBRACE: // bonus2 bSubRace,r,x; PC_BONUS_CHK_RACE(type2,SP_SUBRACE); if(sd->state.lr_flag != 2) sd->indexed_bonus.subrace[type2]+=val; + if (type2 == RC_DEMIHUMAN && sd->indexed_bonus.subrace[type2] > 80) + sd->indexed_bonus.subrace[type2] = min(80, sd->indexed_bonus.subrace[type2]); break; you can try something like this, max 80% item bonuses reduction from equipments Thanks Emistry, will try this and revert back thanks Hi @Emistry, I tried the above change recompiled server and tested by compounded shield with 4 thara frog cards and still that player was not hitable. He still has 100% demi resist. Any help Quote
Question
Karthikeyan
How do i reduce the resistance of a player from 100 to 80% or less.
Even if he has 100% resist it should not have any effect, as of now if a player has 100% demi human resist no other player can hit him in woe or pvp.
Any help would be greatful!!!!
Edited by Karthikeyan4 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.