• 0
Sign in to follow this  
Followers 0
flpneo

Effect for a time

Question

How to create a potion that makes the user with resistance to freezing (or anything else) for a time (1 minute)?

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

I want resistance to freeze effect, not to damage.

Petrification, silence, curse, stun...

If it helps someone with the same problem ...
I decided to add the "SC_ITEMSCRIPT" as this commit:

https://github.com/HerculesWS/Hercules/commit/7e083f9ae7688b2ee1d98246af0ba60c914d0f88

Now I can enter the command on my item:
sc_start SC_ITEMSCRIPT, 60000, 4105;

Executes the effect of Marc card during the time I set.

Edited by flpneo

Share this post


Link to post
Share on other sites
  • 0

I'm thinking maybe SC_START but I'm not sure which variable to add to it.

Share this post


Link to post
Share on other sites
  • 0


{

Id: 12118

AegisName: "Resist_Fire"

Name: "Fireproof Potion"

Type: 2

Buy: 2

Weight: 10

BuyingStore: true

Script: <" sc_start4 SC_ARMORPROPERTY,1200000,-15,0,20,0; ">

},

{

Id: 12119

AegisName: "Resist_Water"

Name: "Coldproof Potion"

Type: 2

Buy: 2

Weight: 10

BuyingStore: true

Script: <" sc_start4 SC_ARMORPROPERTY,1200000,20,0,0,-15; ">

},

{

Id: 12120

AegisName: "Resist_Earth"

Name: "Earthproof Potion"

Type: 2

Buy: 2

Weight: 10

BuyingStore: true

Script: <" sc_start4 SC_ARMORPROPERTY,1200000,0,20,-15,0; ">

},

{

Id: 12121

AegisName: "Resist_Wind"

Name: "Thunderproof Potion"

Type: 2

Buy: 2

Weight: 10

BuyingStore: true

Script: <" sc_start4 SC_ARMORPROPERTY,1200000,0,-15,0,20; ">

},

{

Id: 12279

AegisName: "Undead_Element_Scroll"

Name: "Undead Elemental Scroll"

Type: 2

Weight: 10

Script: <" sc_start4 SC_ARMOR_RESIST,300000,20,20,20,20; ">

},

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0