Jump to content
  • 0

Help with this Item script


Question

Posted

I have a custom ygg and I want the effect to be:

Cures all status ailments and grants abnormal status immunity for 5 secs.

 

Is the second part possible with item effects(I know eqs can grant immunity) and if so, how?

10 answers to this question

Recommended Posts

Posted

Is your 'custom ygg' a consumable item or an equip?

If it's an equip, use:

bonus2 bResEff,eff_stun,10000;   // Resist Stun 100%

If it's a consumable item, use:

sc_start SC_SCRESIST,5000,1;
Posted

Do you mean :

 

 

Eg.

Player 1 ( Enemy ) had 4 LOD Cards
Player 2 ( Defensive ) Custom Ygg

When player 1 attack/hit player 2 ( Yes, we know what will happen )
but
When player 2 starts using your custom ygg she/he will become immune to any ailments?
Correct me if I am wrong and if Correct okay ill help you.
 
Posted
sc_start SC_SCRESIST,5000,1;

 

i not sure about this and how it work..never used it..but this do exist in the trunk/db/const.txt

 

you can use this too ~

sc_start SC_COMMONSC_RESIST,3600000,100;

 

 

 

for the equipment... just add the bonus effect using these..

trunk/doc/item_bonus.txt

bonus2 bResEff,e,x;			Adds a x/100 tolerance to effect e (e.g. x=100 makes 1% tolerance, x=10000 makes 100% tolerance, etc)
					e:	Eff_Blind, Eff_Sleep, Eff_Poison, Eff_Freeze, Eff_Silence, Eff_Stun, Eff_Curse, Eff_Confusion, Eff_Stone, Eff_Bleeding

 

 

 

for the dispel...you have to use sc_end

i think it's better to create a small functions to be called by the items which will dispell certains effect/buff by using the sc_end

Posted

This code seems will work, try this :

 sc_start SC_COMMONSC_RESIST,5000,10; 
 

Hmm but this is only for potion pitcher, Maybe we tried to create a new function like what emistry mention.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...