Jump to content
  • 0

Spell Breaker new Effect


dreinor17

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   2
  • Joined:  02/08/14
  • Last Seen:  

hi, can someone help me.. i want to add an effect on spell breaker.. i want it to work that whenever the skill is successful, the skill that was disrupted will have a cooldown of 5 sec.. is this effect possible? thanks..

this is the part of the skill that disrupts the casting,
 

case SA_SPELLBREAKER:

               {  
                            int sp;  
                            if(tsc && tsc->data[sC_MAGICROD]) {  

                                          sp = skill_get_sp(skill_id,skill_lv);  

                                          sp = sp * tsc->data[sC_MAGICROD]->val2 / 100;  

                                          if(sp < 1) sp = 1;  

                                          status_heal(bl,0,sp,2);  

                                          status_percent_damage(bl, src, 0, -20, false); //20% max SP damage.

                 } else {  
                            struct unit_data *ud = unit_bl2ud(bl);  

                            int bl_skill_id=0,bl_skill_lv=0,hp = 0;  

                            if (!ud || ud->skilltimer == INVALID_TIMER)  

                                            break; //Nothing to cancel.

                            bl_skill_id = ud->skill_id;  

                            bl_skill_lv = ud->skill_lv;  

                            if (tstatus->mode & MD_BOSS)  

                            { //Only 10% success chance against bosses. [skotlex]

                                       if (rnd()%100 < 90)  

                                       {   if (sd) clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);  

                                           break;  

                                       }

 

is this the code for the effect that i want?

skill_blockpc_start ? if it is the code, where should i put it? sorry i'm not that good at this..

Edited by dreinor17
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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