Advertisement
MarGaZeaS

All subclass in one L2jFrozen

Nov 19th, 2017
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. hello i find one code shared by gevorakoC and not work.
  2. im post this now. no need config just paste the code.
  3.  
  4. com.l2jfrozen.gameserver.model.actor.instance.L2VillageMasterInstance.java
  5.  
  6.  
  7. Found :
  8.  
  9. - final PlayerRace npcRace = getVillageMasterRace();
  10. - final ClassType npcTeachType = getVillageMasterTeachType();
  11. + getVillageMasterRace();
  12. + getVillageMasterTeachType();
  13.  
  14.  
  15. Next Remove That :
  16.  
  17. -if(npcRace == PlayerRace.Human || npcRace == PlayerRace.LightElf)
  18. - {
  19. - // If the master is human or light elf, ensure that fighter-type
  20. - // masters only teach fighter classes, and priest-type masters
  21. - // only teach priest classes etc.
  22. - if(!availSub.isOfType(npcTeachType))
  23. - {
  24. - availSubs.remove(availSub);
  25. - }
  26. - else if(!availSub.isOfRace(PlayerRace.Human) && !availSub.isOfRace(PlayerRace.LightElf))
  27. - {
  28. - availSubs.remove(availSub);
  29. - }
  30. - }
  31. - else
  32. - {
  33. - // If the master is not human and not light elf,
  34. - // then remove any classes not of the same race as the master.
  35. - if(npcRace != PlayerRace.Human && npcRace != PlayerRace.LightElf && !availSub.isOfRace(npcRace))
  36. - {
  37. - availSubs.remove(availSub);
  38. - }
  39. - }
  40.  
  41. If Now Would You like to Inside Dominator For All Characters go to :
  42.  
  43. com.l2jfrozen.model.base.PlayerClass.java
  44.  
  45. And Delete this :
  46.  
  47. -
  48. - private static final Set<PlayerClass> neverSubclassed = EnumSet.of(Overlord, Warsmith);
  49.  
  50. this :
  51.  
  52. - subclasses.removeAll(neverSubclassed);
  53. -
  54.  
  55. And this :
  56.  
  57. -
  58. - subclasses.removeAll(neverSubclassed);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement