Ragnar Lothbrok 21 Posted March 21, 2014 (edited) 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 March 21, 2014 by P r o p e r t i e s Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted March 21, 2014 set @time, @time - 0; ??? why this sh*t? xD Quote Share this post Link to post Share on other sites
Can anyone please check this script what's the problem, my client crash when clicking 2 times
this is a Platinum Skill NPC script..
Share this post
Link to post
Share on other sites