Jump to content
  • 0
Sign in to follow this  
Ragnar Lothbrok

Can you please check this script

Question

Can anyone please check this script what's the problem, my client crash when clicking 2 times
 
this is a Platinum Skill NPC script..
 

 

 

skill 142,1,0;
switch(BaseClass) {
  case 0: if (Class !=23) skill 143,1,0; break;
  case 1: skill 144,1,0; skill 145,1,0; skill 146,1,0; break;
  case 2: skill 157,1,0; break;
  case 3: skill 147,1,0; skill 148,1,0; break;
  case 4: skill 156,1,0; break;
  case 5: skill 153,1,0; skill 154,1,0; skill 155,1,0; break;
  case 6: skill 149,1,0; skill 150,1,0; skill 151,1,0; skill 152,1,0; break;
  default: break;
}
switch(BaseJob) {
  case 7: skill 1001,1,0; break;
  case 8: skill 1014,1,0; break;
  case 9: skill 1006,1,0; break;
  case 10: skill 1012,1,0; skill 1013,1,0; break;
  case 11: skill 1009,1,0; break;
  case 12: skill 1003,1,0; skill 1004,1,0; break;
  case 14: skill 1002,1,0; break;
  case 15: skill 1015,1,0; skill 1016,1,0; break;
  case 16: skill 1007,1,0; skill 1008,1,0; skill 1017,1,0; skill 1018,1,0; skill 1019,1,0; break;
  case 17: skill 1005,1,0; break;
  case 18: skill 238,1,0; break;
  case 19: skill 1010,1,0; break;
  case 20: skill 1011,1,0; break;
  default: break;
}
if (  ! @skilled ) {
specialeffect2 EF_HIT5;
message strcharinfo(0),"You have recieve your Platinum Skill.";
set @skilled, 1;
set @time, 5;
while ( @time ) {
  sleep2 1000 ;
  set @time, @time - 1;
}
set @skilled, 0;
  }
  else {
dispbottom "You have Platinum Skill.. Don't spam please! :< Wait "+ @time +" second"+ ( ( @t > 1 ) ? "s" : "" );
  }
}
Edited by P r o p e r t i e s

Share this post


Link to post
Share on other sites

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

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.