Jump to content
  • 0

Help with this Item script


hyuna

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

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?

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

sc_start SC_SCRESIST,5000,1;

 

can you pls explain this???

 

is it for all or for 1 status only?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

check this => http://rathena.org/wiki/Sc_start

 

From https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/map/status.h

 

SC_SCRESIST, //Increases resistance to status changes.

I think it means all Status.

Edited by MStream
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Actually the last '1' isn't really matter, because it doesn't need an extra argument.

Correct me if I wrong  /ok

 

Have you tried it yet?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

tried it doesnt get immunity at all...made it like 10 secs long with auto spam ygg(custom)to make sure vs other char with 4 lod cards 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   2
  • Joined:  08/23/12
  • Last Seen:  

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.
 
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   7
  • Joined:  10/08/12
  • Last Seen:  

also tested sc_start SC_SCRESIST,5000,1; doesnt seem to work

Edited by miczster
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   2
  • Joined:  08/23/12
  • Last Seen:  

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.

Link to comment
Share on other sites

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.

×
×
  • Create New...