DominiQue Posted December 15, 2009 Posted December 15, 2009 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] Quote
Intrepid Posted December 15, 2009 Posted December 15, 2009 i alredy shared this anyway better job than commands :) Quote
Alexi Posted December 16, 2009 Posted December 16, 2009 Thnx for this ,also i have a question , can you made a code that should allow all classes to take any subclass?? Quote
xAddytzu Posted December 16, 2009 Posted December 16, 2009 Thnx for this ,also i have a question , can you made a code that should allow all classes to take any subclass?? PlayerClass.java switch (_race) { case LightElf: subclasses.removeAll(getSet(DarkElf, Third)); break; case DarkElf: subclasses.removeAll(getSet(LightElf, Third)); break; } Quote
Street-Gamer Posted December 27, 2009 Posted December 27, 2009 w000ww very usefull . keep it updated. we waiting new hot Shares..!! Quote
HammerV2 Posted December 31, 2009 Posted December 31, 2009 i cant make kamaels to take all subclases, and other races cant take kamale clases, any help? pls Quote
cr0nos Posted December 31, 2009 Posted December 31, 2009 mmmm, i edited this code for interlude, wait some minits i will test it and share. Quote
DāЯқŜiĐє Posted December 31, 2009 Posted December 31, 2009 Woot nice share m8 !!I know its already shared but you did a good job there :P Quote
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.
Note: Your post will require moderator approval before it will be visible.