Jump to content
  • 0

item script callfunc


nbwars

Question


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

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.

 

 

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

 

 

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;
}

 

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