Dvrstle Posted October 17, 2012 Posted October 17, 2012 how can i remove this from the skills that can be copied by plagiarism or reproduce Quote
Bin4ry Posted October 17, 2012 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
Dvrstle Posted October 18, 2012 Author 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
Bin4ry Posted October 18, 2012 Posted October 18, 2012 Yes this will add a check before Plagiarism starts to work on it's code. Quote
Question
Dvrstle
how can i remove this from the skills that can be copied by plagiarism or reproduce
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.