Jump to content

[Share] Hero Skill At all Subclasses of Hero Character!


Recommended Posts

The one old crappy post it was totally failed and i pm a Mod To Lock it and made one better. Thanks K4rMaArr0ws :)

 

Ok let's start one better.

 

What this share do?? This share made your character if they are Hero to have hero skills not only with main class some like official.

 

But they will have the hero skills at all subclasses they do.

 

So let's start.

 

You just change at line java/net/sf/l2j/gameserver/model/actor/instance/l2pcinstance.java

 

at number 9550. 

 

Ok now you will see the follow code;

 

public void setHero(boolean hero)
{
if (hero && _baseClass == _activeClass)
{
for (L2Skill s : HeroSkillTable.getHeroSkills())
addSkill(s, false); //Dont Save Hero skills to database
}
else
{
for (L2Skill s : HeroSkillTable.getHeroSkills())
super.removeSkill(s); //Just Remove skills from nonHero characters
}
_hero = hero;

sendSkillList();
}

 

We just do a small change to this one;

 

public void setHero(boolean hero)
{
if (hero)
{
for (L2Skill s : HeroSkillTable.getHeroSkills())
addSkill(s, false); //Dont Save Hero skills to database
}
else
{
for (L2Skill s : HeroSkillTable.getHeroSkills())
super.removeSkill(s); //Just Remove skills from nonHero characters
}
_hero = hero;

sendSkillList();
}

 

//done simple....!!

 

Link; http://www.4shared.com/file/79621834/f8d1dfc5/Herro_Buffs_allowed_for_subbclasses.html

 

Best Regardz Cobra.

Link to comment
Share on other sites

  • 3 weeks later...

i do all this no erros but still not have skills at subclass maybe i need put anything to my gameserver i mean any file?

 

Tested at all packs L2J , L2EMU , L2JFREE and work 100%!

 

Maybe you do something wrong !

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock