Jump to content
Cydh

Status Change Resistance Bonus: bonus2 bResSC and bonus2 bResSC

Recommended Posts

Related with topic Is it possible to be immune to Decrease Agility?

New Bonuses

bonus2 bResSC,sc,n;         		Adds a n/100% relative tolerance to status change specified by SC constants.
bonus2 bResSC2,sc,n;         		Adds a n/100% absolute tolerance to status change specified by SC constants.

bonus2 bResSC,sc,n;

This rate adds the 'relative' rate, only reduce from current player's resistance, not as total resistance rate. Example player's total resistance is 5000 (50%), so if it's added by 5000 (50%) from this bonus, now the total resistance is 2500 (25%).

As note, bonus bResEff works with same behavior, as relative resistance rate. This thing that makes you think the bonus bResEff is buggy.

bonus2 bResSC2,sc,n;

This is maybe the mostly bonus you wanted. Unlike the 'relative' rate, this 'absolute' rate adds total resistance. For same example, player has 5000 (50%) resistance then added by 5000 (50%) from the bonus, player now has 10000 (100%) resistance in total.

 

How to use as item bonus

2115,Valkyrja's_Shield,Valkyrja's Shield,4,30000,,500,,80,,1,0xFFFFFFFE,63,2,32,,65,1,4,{ bonus2 bResSC2,SC_DECREASEAGI,5000; bonus2 bResSC,SC_DECREASEAGI,2500; bonus2 bSubEle,Ele_Water,20; bonus2 bSubEle,Ele_Fire,20; bonus2 bSubEle,Ele_Dark,20; bonus2 bSubEle,Ele_Undead,20; bonus bMdef,5; },{},{}
2357,Valkyrie_Armor,Valkyrian Armor,4,0,,2800,,55,,1,0xFFFFFFFE,18,2,16,,1,1,0,{ bonus2 bResSC2,SC_AETERNA,5000; bonus2 bResSC,SC_AETERNA,2500; bonus bAllStats,1; bonus bUnbreakableArmor,1; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Acolyte) bonus2 bResEff,Eff_Silence,5000; else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Thief) bonus2 bResEff,Eff_Stun,5000; },{},{}
2421,Valkyrie_Shoes,Valkyrian Shoes,4,0,,500,,13,,1,0xFFFFFFFE,18,2,64,,1,1,0,{ bonus2 bResSC2,SC_QUAGMIRE,10000; bonus2 bResSC,SC_QUAGMIRE,2500; bonus bUnbreakableShoes,1; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Acolyte) bonus bMaxHP,(BaseLevel*5); else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Thief) bonus bMaxSP,(JobLevel*2); },{},{}

 

Links

Edited by Cydh
  • Upvote 3
  • Love 1
Link to comment
Share on other sites

On 11/20/2016 at 0:39 PM, Azeroth said:

Thank you!

On 11/20/2016 at 4:49 PM, Yonko said:

thanks cydh such a nice release

u're welcome

 

1 hour ago, Crysillion said:

Hey, thanks! I wasn't expecting someone to actually go out of their way and code this for me. I appreciate it. Very cool! There's a lot I can do with this.

hmmm... I really wanted this SC lookup, been years. /heh

Link to comment
Share on other sites

git hash https://github.com/rathena/rathena/commit/3ab39c4cb368b962c97f14cb916b0f8a406cde66

compiler error

error LNK2005: _pc_resSC2_ers already in clif.obj define
error LNK2005: _pc_resSC_ers already clif.obj define

IDE visual studio 2017
 

Edited by a91323
Link to comment
Share on other sites

6 hours ago, a91323 said:

git hash https://github.com/rathena/rathena/commit/3ab39c4cb368b962c97f14cb916b0f8a406cde66

compiler error

error LNK2005: _pc_resSC2_ers already in clif.obj define
error LNK2005: _pc_resSC_ers already clif.obj define

IDE visual studio 2017
 

Branch updated, rebased for that rA's HEAD. https://github.com/cydh/rathena/pull/7.diff

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
Reply to this topic...

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.