Jump to content
  • 0

Kagerou/Oboro Overthrow Skill


Dvrstle

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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 by darristan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Yes this will add a check before Plagiarism starts to work on it's code.

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...