Hello guys i get this npc from @Emistry and i translate to my language
its a plagiarism npc
que_qaru05,252,366,5 script StalkerNpc 757,{
set
[email protected]_level,getskilllv( "RG_PLAGIARISM" );
mes "^FF7F00[Plagiador De Skill]^000000";
mes (gettime(3)>= 6&&gettime(3)<= 12?"Bom-dia":(gettime(3)>=13&&gettime(3)<=18?"Boa-tarde":"Boa-noite"))+", ^008aff"+strcharinfo(0)+"^000000 !";
mes "Bem-vindo ao Plagiador de Skill.";
next;
mes "^FF7F00[Plagiador De Skill]^000000";
mes "^008aff"+strcharinfo(0)+"^000000, Sou Responsavel por Providenciar Copia da Skill para classe Stalker!!";
next;
mes "^FF7F00[Plagiador De Skill]^000000";
mes "Lembre-se Depois que Tudo Acabar,^FF0000RELOGUE PARA SALVAR A SKILL!!!!^000000";
mes "Do Contrario, Não Funcionará";
next;
mes "^FF7F00[Plagiador De Skill]^000000";
mes "^008aff"+strcharinfo(0)+"^000000, Em que posso ajudar?";
if(
[email protected]_level ){
mes "Apenas a Classe Stalker com a Habilidade ^FF0000Plagiar^000000 Pode Utilizar deste Serviço.";
}else{
if( select( ( CLONE_SKILL && CLONE_SKILL_LV )?"^008aff[»]^000000 Desaprender a Skill":"^008aff[»]^000000 Aprender a Skill","^ff0000[»]^000000Cancelar" ) == 1 ){
if( CLONE_SKILL && CLONE_SKILL_LV ){
mes "Skill Copiada Desaprendida";
set CLONE_SKILL_LV,0;
skill CLONE_SKILL,CLONE_SKILL_LV,0;
set CLONE_SKILL,0;
}else{
mes "Por-favor Selecione as Skills";
next;
set
[email protected],select( .menu$ ) - 1;
if(
[email protected]_level > .skill_max_level[
[email protected]] )
set
[email protected]_level,.skill_max_level[
[email protected]];
mes "Skill : ^0055FF"+.skill_name$[
[email protected]]+"^000000";
mes "Level : ^0055FF"
[email protected]_level+"^000000";
mes "Cost : ^0055FF"+( ( .skill_cost[
[email protected]] )? .skill_cost[
[email protected]]+" Zeny":"Free" )+"^000000";
mes " ";
mes "^777777( Skill de Efeito do Plagiar )^000000";
if( select( "^008aff[»]^000000Confirmar","^ff0000[»]^000000Cancelar" ) == 1 ){
if( .skill_cost[
[email protected]] ){
if( Zeny >= .skill_cost[
[email protected]] ){
set Zeny,Zeny - .skill_cost[
[email protected]];
}else{
mes "Zeny Insuficiente.";
close;
}
}
set CLONE_SKILL,.skill_id[
[email protected]];
set CLONE_SKILL_LV,
[email protected]_level;
mes "Skill Aprendida ^0055FFLv"+CLONE_SKILL_LV+" "+.skill_name$[
[email protected]]+"^000000";
skill CLONE_SKILL,CLONE_SKILL_LV,0;
}
}
}
}
dispbottom "Skill ID "+CLONE_SKILL+" | Level : "+CLONE_SKILL_LV;
close;
OnInit:
// Skill Display Names
setarray .skill_name$,"Punho Supremo De Asura","Esma","Ataque Mortal","Desperado";
// Skill ID
setarray .skill_id,271,469,544,516;
// Skill Max Learn-able Level
setarray .skill_max_level,4,7,10,10;
// Skill Cost in Zeny
setarray .skill_cost,10000,20000,30000,40000,50000;
set .skill_size,getarraysize( .skill_name$ );
while(
[email protected] < .skill_size ){
set .menu$,.menu$ + "[ ^0055FFLv "+.skill_max_level[
[email protected]]+"^000000 ] "+ .skill_name$[
[email protected]] +":";
set
[email protected],
[email protected] + 1;
}
end;
}
this script works fine but sometimes show this erro
the only thing I know is that the skill I copied has a -8 lvl in db.
even if i put the correct level in the script show me -8