Issue information

Issue ID
#8592
Status
Fixed
Severity
None
Started
kyeme
Mar 27, 2015 1:05
Last Post
kyeme
Dec 13, 2015 4:13
Confirmation
N/A

kyeme - Mar 27, 2015 1:05

[code=auto:0] Id: 12299 AegisName: "Mega_Resist_Potion" [/code]

SC_TARGET_BLOOD is not working? (not implemented?)

[url="http://ratemyserver.net/index.php?iname=12299&page=item_db&quick=1&isearch=Search"]http://ratemyserver.net/index.php?iname=12299&page=item_db&quick=1&isearch=Search[/url]

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

Here is the script of aegis:

EFST_TARGET_BLOOD:[code=auto:0] Buff "EFST_TARGET_BLOOD" // 10Á¾ ÀúÇׯ÷¼Ç event OnStartEquip: AddStateTolerace BODYStun 10 AddStateTolerace BODYFreezing 10 AddStateTolerace BODYStoneCurse 10 AddStateTolerace HEALTHCurse 10 AddStateTolerace HEALTHPoison 10 AddStateTolerace HEALTHSilence 10 AddStateTolerace HEALTHBlind 10 AddStateTolerace BODYSleep 10 AddStateTolerace HEALTHBlooding 10 AddStateTolerace HEALTHConfusion 10 return event OnFinishEquip: SubStateTolerace BODYStun 10 SubStateTolerace BODYFreezing 10 SubStateTolerace BODYStoneCurse 10 SubStateTolerace HEALTHCurse 10 SubStateTolerace HEALTHPoison 10 SubStateTolerace HEALTHSilence 10 SubStateTolerace HEALTHBlind 10 SubStateTolerace BODYSleep 10 SubStateTolerace HEALTHBlooding 10 SubStateTolerace HEALTHConfusion 10 return [/code]
Marc Card:[code=auto:0] item Marc_Card event OnStartEquip: AddStateTolerace BODYFreezing 100 AddAttrTolerace PROPERTY_Water 5 return event OnFinishEquip: SubStateTolerace BODYFreezing 100 SubAttrTolerace PROPERTY_Water 5 return [/code]
Megaladon Card:[code=auto:0] item Megalodon_Card event OnStartEquip: AddStateTolerace BODYFreezing 20 AddExtParam User VAR_ITEMDEFPOWER 1 return event OnFinishEquip: SubStateTolerace BODYFreezing 20 SubExtParam User VAR_ITEMDEFPOWER 1 return [/code]

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]