Hello, i need to make a script to get how many times src use a skill, and put the times in a variable. in the 2nd time src use the skill, the script of the item will change for 5 seconds giving the skill aditional damage.
I'm having trouble to make this script works. aprecciate any help, thanks.
function script StrongHit {
set i,0;
set skillid,ASC_BREAKER;
OnInit:
set i,0;
stopnpctimer;
OnPCUseSkill:
switch(EVENT_SKILLID) {
case 379:
set i,i+1;
announce "TIMES = "+i,bc_blue; // debug only
if (i == 2) {
setitemscript 8502,"{ bonus2 bSkillAtk,"+skillid+",50; }";
initnpctimer;
OnTimer5000:
announce "5 seconds",bc_red; //debug only
setitemscript 8502,"{ callfunc \"StrongHit\",1; }";
set i,0;
stopnpctimer;
}
}
OnPCDieEvent:
set i,0;
stopnpctimer;
}
Question
nbwars
Hello, i need to make a script to get how many times src use a skill, and put the times in a variable. in the 2nd time src use the skill, the script of the item will change for 5 seconds giving the skill aditional damage.
I'm having trouble to make this script works. aprecciate any help, thanks.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.