This post has been edited by
kyeme
on Mar 27, 2015 1:05
malufett - Mar 27, 2015 1:35
its working...
@status.c[code=auto:0]
//Item resistance (only applies to rate%)
if(sd && SC_COMMON_MIN <= type && type <= SC_COMMON_MAX)
{
if( sd->reseff[type-SC_COMMON_MIN] > 0 )
rate -= rate*sd->reseff[type-SC_COMMON_MIN]/10000;
if( sd->sc.data[SC_TARGET_BLOOD] )
rate -= rate*sd->sc.data[SC_TARGET_BLOOD]->val1/100;
}
[/code]
:meow:
kyeme - Mar 27, 2015 3:20
It's not working sir. I created an item with a script of 90% resist frost (bResEff) and used mega resist potion to sum up a total of 100% resist frost. Still got frozen.
malufett - Mar 27, 2015 3:29
nah your computation is wrong...
Example:
Stun chance of 50%
reduction from bResEff 50% less 90% will have 5% left
reduction from SC_TARGET_BLOOD 5% less 10% will have 4.5%
therefore you will stun from the 4.5%
:meow:
kyeme - Mar 27, 2015 4:35
Ah.. so you mean it will not add on current resist status like 90% (equip) + 10% (mega resist) = 100%?
I have read on aegis that they have the same script like any other resist ex (marc card) that's why i thought of it like basic math 1 + 1 = 2
This post has been edited by
kyeme
on Mar 27, 2015 4:38
malufett - Mar 27, 2015 17:47
ow,,hahahaha...ok once the redesign is good to go this will be fixed...:D
:meow:
Frost - Nov 19, 2015 13:22
Fixed in [url="https://github.com/HerculesWS/Hercules/commit/0fe62daff15e32728d609ea24cde1f96d02ca329"]https://github.com/HerculesWS/Hercules/commit/0fe62daff15e32728d609ea24cde1f96d02ca329[/url]