Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #008592

  • 0 - None Assigned

  • Fixed

Issue Confirmations

  • Yes (0)No (0)
Photo

Mega Resist Potion

Posted by kyeme on 27 March 2015 - 01:05 AM

	Id: 12299
	AegisName: "Mega_Resist_Potion"

SC_TARGET_BLOOD is not working? (not implemented?)

http://ratemyserver....&isearch=Search

its working...
@status.c
//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;
  }
:meow:

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.

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:

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:
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
Marc Card:
item Marc_Card
	event OnStartEquip:
		AddStateTolerace BODYFreezing 100
		AddAttrTolerace PROPERTY_Water 5
	return
	event OnFinishEquip:
		SubStateTolerace BODYFreezing 100
		SubAttrTolerace PROPERTY_Water 5
	return
Megaladon Card:
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


ow,,hahahaha...ok once the redesign is good to go this will be fixed...:D

:meow:

changed status to: Started

changed status to: Fixed