Dvrstle Posted October 17, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 361 Reputation: 10 Joined: 12/30/11 Last Seen: January 3, 2016 Share Posted October 17, 2012 how can i remove this from the skills that can be copied by plagiarism or reproduce Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 17, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 17, 2012 (edited) Try this, open up skill.c and find: // Making plagiarize check its own function [Aru] int can_copy (struct map_session_data *sd, int skillid, struct block_list* bl) { // Never copy NPC/Wedding Skills if (skill_get_inf2(skillid)&(INF2_NPC_SKILL|INF2_WEDDING_SKILL)) return 0; // High-class skills if((skillid >= LK_AURABLADE && skillid <= ASC_CDP) || (skillid >= ST_PRESERVE && skillid <= CR_CULTIVATION)) { if(battle_config.copyskill_restrict == 2) return 0; else if(battle_config.copyskill_restrict) return (sd->status.class_ == JOB_STALKER); } //Added so plagarize can't copy agi/bless if you're undead since it damages you if ((skillid == AL_INCAGI || skillid == AL_BLESSING || skillid == CASH_BLESSING || skillid == CASH_INCAGI || skillid == MER_INCAGI || skillid == MER_BLESSING)) return 0; // Couldn't preserve 3rd Class skills except only when using Reproduce skill. [Jobbie] if( !(sd->sc.data[sC__REPRODUCE]) && (skillid >= RK_ENCHANTBLADE && skillid <= SR_RIDEINLIGHTNING) ) return 0; // Reproduce will only copy skills according on the list. [Jobbie] else if( sd->sc.data[sC__REPRODUCE] && !skill_reproduce_db[skillid] ) return 0; return 1; } Add this line: if ((skill_id == KO_MUCHANAGE)) return 0; Before this line: return 1; } Edited October 17, 2012 by darristan Quote Link to comment Share on other sites More sharing options...
Dvrstle Posted October 18, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 361 Reputation: 10 Joined: 12/30/11 Last Seen: January 3, 2016 Author Share Posted October 18, 2012 Try this, open up skill.c and find: // Making plagiarize check its own function [Aru] int can_copy (struct map_session_data *sd, int skillid, struct block_list* bl) { // Never copy NPC/Wedding Skills if (skill_get_inf2(skillid)&(INF2_NPC_SKILL|INF2_WEDDING_SKILL)) return 0; // High-class skills if((skillid >= LK_AURABLADE && skillid <= ASC_CDP) || (skillid >= ST_PRESERVE && skillid <= CR_CULTIVATION)) { if(battle_config.copyskill_restrict == 2) return 0; else if(battle_config.copyskill_restrict) return (sd->status.class_ == JOB_STALKER); } //Added so plagarize can't copy agi/bless if you're undead since it damages you if ((skillid == AL_INCAGI || skillid == AL_BLESSING || skillid == CASH_BLESSING || skillid == CASH_INCAGI || skillid == MER_INCAGI || skillid == MER_BLESSING)) return 0; // Couldn't preserve 3rd Class skills except only when using Reproduce skill. [Jobbie] if( !(sd->sc.data[sC__REPRODUCE]) && (skillid >= RK_ENCHANTBLADE && skillid <= SR_RIDEINLIGHTNING) ) return 0; // Reproduce will only copy skills according on the list. [Jobbie] else if( sd->sc.data[sC__REPRODUCE] && !skill_reproduce_db[skillid] ) return 0; return 1; } Add this line: if ((skill_id == KO_MUCHANAGE)) return 0; Before this line: return 1; } Try this, open up skill.c and find: // Making plagiarize check its own function [Aru] int can_copy (struct map_session_data *sd, int skillid, struct block_list* bl) { // Never copy NPC/Wedding Skills if (skill_get_inf2(skillid)&(INF2_NPC_SKILL|INF2_WEDDING_SKILL)) return 0; // High-class skills if((skillid >= LK_AURABLADE && skillid <= ASC_CDP) || (skillid >= ST_PRESERVE && skillid <= CR_CULTIVATION)) { if(battle_config.copyskill_restrict == 2) return 0; else if(battle_config.copyskill_restrict) return (sd->status.class_ == JOB_STALKER); } //Added so plagarize can't copy agi/bless if you're undead since it damages you if ((skillid == AL_INCAGI || skillid == AL_BLESSING || skillid == CASH_BLESSING || skillid == CASH_INCAGI || skillid == MER_INCAGI || skillid == MER_BLESSING)) return 0; // Couldn't preserve 3rd Class skills except only when using Reproduce skill. [Jobbie] if( !(sd->sc.data[sC__REPRODUCE]) && (skillid >= RK_ENCHANTBLADE && skillid <= SR_RIDEINLIGHTNING) ) return 0; // Reproduce will only copy skills according on the list. [Jobbie] else if( sd->sc.data[sC__REPRODUCE] && !skill_reproduce_db[skillid] ) return 0; return 1; } Add this line: if ((skill_id == KO_MUCHANAGE)) return 0; Before this line: return 1; } it will disable it from being copied? Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 18, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 18, 2012 Yes this will add a check before Plagiarism starts to work on it's code. Quote Link to comment Share on other sites More sharing options...
Question
Dvrstle
how can i remove this from the skills that can be copied by plagiarism or reproduce
Link to comment
Share on other sites
3 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.