Jump to content

[Share] Any subclas on any Grand Master


DominiQue

Recommended Posts

Go to:

java.net.sf.l2j.gameserver.model.actor.instance.L2VillageMasterInstance.java

Find these lines and repleace with these new lines:       

-        final Race npcRace = getVillageMasterRace();

-        final ClassType npcTeachType = getVillageMasterTeachType();

+        getVillageMasterRace();

+        getVillageMasterTeachType();

 

Find these lines and delete theme:

 

                if (npcRace == Race.Human || npcRace == Race.Elf)

                {

                    // If the master is human or light elf, ensure that fighter-type

                    // masters only teach fighter classes, and priest-type masters

                    // only teach priest classes etc.

                    if (!availSub.isOfType(npcTeachType)) availSubs.remove(availSub);

 

                    // Remove any non-human or light elf classes.

                    else if (!availSub.isOfRace(Race.Human)

                        && !availSub.isOfRace(Race.Elf)) availSubs.remove(availSub);

                }

                else

                {

                    // If the master is not human and not light elf,

                    // then remove any classes not of the same race as the master.

                    if (!availSub.isOfRace(npcRace)) availSubs.remove(availSub);

                }

 

Go to:

java.net.sf.l2j.gameserver.model.base.PlayerClass.java

 

Find this line and delete it:

private static final Set<PlayerClass> neverSubclassed = EnumSet.of(Overlord, Warsmith);

 

Find this line and delete it:

subclasses.removeAll(neverSubclassed);

 

Now do like this:

switch (_race)

{

+ case Human:

+ subclasses.removeAll(getSet(Kamael, Third));

+ break;

+ case DarkElf:

+ subclasses.removeAll(getSet(Kamael, Third));

+ break;

case Elf:

+ subclasses.removeAll(getSet(Kamael, Third));

- break;

- case DarkElf:

+ subclasses.removeAll(getSet(Kamael, Third));

+ break;

+ case Orc:

+ subclasses.removeAll(getSet(Kamael, Third));

+ break;

+ case Dwarf:

+ subclasses.removeAll(getSet(Kamael, Third));

break;

}

@@ -294,6 +321,4 @@

else

subclasses.removeAll(EnumSet.of(femaleSoulbreaker));

- if (player.getTotalSubClasses() < 2)

- subclasses.removeAll(EnumSet.of(inspector));

}

}

Credits : x.v3ndetta :P ! [Me]

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...