hello i would like to ask for here regarding this Plagirism npc i want to restrict the other jobs to use it only for rogue also after the rouge copy it will be kick how can i remove the kick and refresh it without exit the server also this errors appears
[Error]: pc_checkskill: Invalid skill id 0
heres the script:
Quote
prontera,171,171,4 script Plagiarism NPC 779,{
set .@skill_level,getskilllv( "RG_PLAGIARISM" );
mes "select which skill you want to be copy, your existing one will be overwrite";
next;
set .@menu, select(.menu$) -1;
if ( getskilllv(.skill$[.@menu * 3 +1]) ) {
mes "you already copied that skill";
close;
}
mes "are you sure you want to copy "+ .skill$[.@menu * 3] +"?";
mes "you'll need to pay ^ff000015,000 Zeny^000000 and relogin again";
next;
if ( select ( "Yes", "No" ) == 2 ) close;
if ( Zeny < 15000 ) {
mes "You dont have enough zeny";
mes "Please come back later";
close; }
Set Zeny, Zeny - 15000;
.@text$ = atoi( .skill$[.@menu * 3 +2] ) > 1 ? "-" + .skill$[.@menu * 3 +2] : "" ;
next;
if ( select ( "Yes", "No" ) == 2 ) close;
.@text$ = atoi( .skill$[.@menu * 3 +2] ) > 1 ? "-" + .skill$[.@menu * 3 +2] : "" ;
mes "choose a level (1" + .@text$ + ")";
if ( input( .@input, 1, ( atoi( .skill$[.@menu * 3 +2] ) > 1 ? atoi( .skill$[.@menu * 3 +2] ) : 1 )) != 0 ) {
mes "wrong level";
close;
}
set CLONE_SKILL, atoi( .skill$[.@menu * 3 +1] );
set CLONE_SKILL_LV, .@input;
atcommand "@kick "+ strcharinfo(0);
end;
OnInit:
setarray .skill$,
"Fire Bolt", 19, 10,
"Cold Bolt", 14, 10,
"Lightning Bolt", 20, 10,
"Jupitel Thunder", 84, 10,
"Lord Of Vermillion", 85, 10,
"Storm Gust", 89, 10,
"Meteor Storm", 83, 10,
// "Spear of Ice", 537, 10,
// "Raging Fire Dragon", 536, 5,
"Triple Attack", 263 ,10;
set .@skillsize, getarraysize(.skill$);
for ( set .@i,0; .@i < .@skillsize; set .@i, .@i +3 )
set .menu$, .menu$ + .skill$[.@i] +":";
OnTimer0050:
showscript "Plagirism NPC", getnpcid(0);
initnpctimer;
end;
}
Question
Sallycantdance
hello i would like to ask for here regarding this Plagirism npc i want to restrict the other jobs to use it only for rogue also after the rouge copy it will be kick how can i remove the kick and refresh it without exit the server also this errors appears
[Error]: pc_checkskill: Invalid skill id 0
heres the script:
10 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.