Jump to content
  • 0

PLAGIARISM NPC


Chaoszinho

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   1
  • Joined:  11/29/16
  • Last Seen:  

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

image.png.f4b35a252c75c6caff2c584a3859377d.png

Edited by Mael
Use a codebox
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites

  • 1

  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

I use this, it is much simpler.

prontera,190,213,3	script	Plagearism Master	4_M_TWMASKMAN,{
mes "[ ^FF0000Fu^000000 ]";
mes "I have the ability of many Jobs, I am a Master!";
mes "What Skill do you need to copy?";
set .@SkillID,select( implode( .SkillName$,":" ) ) - 1;
mes "Selected "+.Skillname$[.@SkillID];
close2;
unitskilluseid getnpcid(0),.SkillID[.@SkillID],10,getcharid(3);
end;

OnInit:
setarray .SkillID[0],14,19,20,90,84,89,535,537,540,62,379;
setarray .SkillName$[0],"Cold Bolt","Fire Bolt","Lightning Bolt","Earth Spike","Jupitel Thunder","Storm Gust","Crimson Fire Formation","Lightning Spear of Ice","Wind Blade","Bowling Bash","Soul Breaker";
end;
}

 

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   1
  • Joined:  11/29/16
  • Last Seen:  

@Mael 

que_qaru05,246,345,3    script    Plagearism Master    4_M_TWMASKMAN,{
mes "Which skill you need me to cast on you ?";
set .@SkillID,select( implode( .SkillName$,":" ) ) - 1;
mes "Selected "+.Skillname$[.@SkillID];
close2;
unitskilluseid getnpcid(0),.SkillID[.@SkillID],.SkillLv[.@SkillID],getcharid(3);    
sleep 3000;
movenpc strnpcinfo(0),246,345;
end;

OnInit:
setarray .SkillID[0],271,19,20,421;
setarray .SkillLv[0],4,5,10,5;
setarray .SkillName$[0],"Asura","Fire Bolt","Lightning Bolt","Fly Kick";
end;
}

this one i made is fine to me now Thanks i edit some Things

thanks !!

Edited by Mael
Use a codebox
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

Any Idea why Bowling Bash always misses?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

can anyone update this one? aint working anymore thanks

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

On 2/28/2019 at 8:15 PM, Mael said:

I use this, it is much simpler.

prontera,190,213,3	script	Plagearism Master	4_M_TWMASKMAN,{
mes "[ ^FF0000Fu^000000 ]";
mes "I have the ability of many Jobs, I am a Master!";
mes "What Skill do you need to copy?";
set .@SkillID,select( implode( .SkillName$,":" ) ) - 1;
mes "Selected "+.Skillname$[.@SkillID];
close2;
unitskilluseid getnpcid(0),.SkillID[.@SkillID],10,getcharid(3);
end;

OnInit:
setarray .SkillID[0],14,19,20,90,84,89,535,537,540,62,379;
setarray .SkillName$[0],"Cold Bolt","Fire Bolt","Lightning Bolt","Earth Spike","Jupitel Thunder","Storm Gust","Crimson Fire Formation","Lightning Spear of Ice","Wind Blade","Bowling Bash","Soul Breaker";
end;
}

 

Is it possible add passive skill like triple attack skill

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

1 hour ago, Emistry said:

Thsnks Emistry, i will try it

 

Edit:

Working as i want, thanks again @Emistry

Edited by hendra814
Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

×
×
  • Create New...