Jump to content
  • 0

New type of bonus (item)


nbwars

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  04/27/13
  • Last Seen:  

I need to implement a new kind of bonus who count how many times the src use the skill and in the 3rd time, the skill damage would be higher.

 

Like this :  bonus bStrongHit,Skill_ID,%dmg_increased;

 

 

Thanks

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   54
  • Joined:  12/23/12
  • Last Seen:  

How many times the skill has been used in a row, or at any time.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  04/27/13
  • Last Seen:  

anytime

 

edit: anytime with the item / card equipped

 

unnequip : count = 0

src dies : count = 0

 

would be perfect if after 5 seconds if the src don`t use the 3rd skill , count = 0.

Edited by nbwars
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  04/27/13
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  04/27/13
  • Last Seen:  

I'm wondering  if this can be made by calling a function in the item script. i'm trying with the following code but, no sucess at all. perhaps i can`t get when the PC use the skill or i`m doing something wrong.

 

 

Card Script:

8502,StrongHit_Card,StrongHit Card,6,20,,10,,,,,,,,136,,,,,{callfunc "StrongHit",1;},{},{}

 

 

Function:

 

 

function    script    StrongHit    {

 
// ===================================
// ============= CONFIGS =============
// ===================================
// === BEGIN ===
set i,0;
set skillid,ASC_BREAKER;
// === END ===
 
OnInit:
set i,0;
stopnpctimer;
setnpctimer(0);
 
    OnPCUseSkill:
    
    switch(EVENT_SKILLID) {
            case 379:
            set i,i+1;
            announce "TIMES = "+i,bc_blue;
                        if (i == 2) {
                            setitemscript 8502,"{ bonus2 bSkillAtk,"+skillid+",50;    }";
                            initnpctimer;
 
                            OnTimer5000:
                                announce "5 seconds",bc_red;
                                setitemscript 8502,"{ callfunc \"StrongHit\",1; }";
                                set i,0;
                                stopnpctimer;
                        }
        }
 
OnPCDieEvent:
set i,0;
stopnpctimer;
 
// Credits
// By: iXaDe and elliot
}

 

Need Help ! Thanks

Edited by nbwars
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...