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 .@skill_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( !.@skill_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 .@i,select( .menu$ ) - 1;
if( .@skill_level > .skill_max_level[.@i] )
set .@skill_level,.skill_max_level[.@i];
mes "Skill : ^0055FF"+.skill_name$[.@i]+"^000000";
mes "Level : ^0055FF"+.@skill_level+"^000000";
mes "Cost : ^0055FF"+( ( .skill_cost[.@i] )? .skill_cost[.@i]+" Zeny":"Free" )+"^000000";
mes " ";
mes "^777777( Skill de Efeito do Plagiar )^000000";
if( select( "^008aff[»]^000000Confirmar","^ff0000[»]^000000Cancelar" ) == 1 ){
if( .skill_cost[.@i] ){
if( Zeny >= .skill_cost[.@i] ){
set Zeny,Zeny - .skill_cost[.@i];
}else{
mes "Zeny Insuficiente.";
close;
}
}
set CLONE_SKILL,.skill_id[.@i];
set CLONE_SKILL_LV,.@skill_level;
mes "Skill Aprendida ^0055FFLv"+CLONE_SKILL_LV+" "+.skill_name$[.@i]+"^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( .@i < .skill_size ){
set .menu$,.menu$ + "[ ^0055FFLv "+.skill_max_level[.@i]+"^000000 ] "+ .skill_name$[.@i] +":";
set .@i,.@i + 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
Question
Chaoszinho
Hello guys i get this npc from @Emistry and i translate to my language
its a plagiarism npc
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
Use a codebox
Link to comment
Share on other sites
7 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.