Jump to content

Recommended Posts

Posted

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.

  • 3 weeks later...
Posted

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 !

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

maybe i am just a noob but i dont know how to get to java/net/sf/l2j/gameserver/model/actor/instance/l2pcinstance.java !!! Any1 can help me pls?

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



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