Jump to content

Question

6 answers to this question

Recommended Posts

  • 0
Posted

Oh god, and do you think that with this poor information could someone help you?

For god sake, give more info.

Which code did u "pass"?

Post the resulting code?

Explain what did you do?

Pack? Chronicle?

  • 0
Posted (edited)

i use l2jfrozen the code is IL:its about ALL SYBS IN 1 NPC ...I put the + lines correct and i removed - lines but then i dont know what to do ....Index: L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2VillageMasterInstance.java

===================================================================
--- head-src\com\l2jfrozen\gameserver\model\actor\instance\L2VillageMasterInstance.java (revision 912)
+++ head-src\com\l2jfrozen\gameserver\model\actor\instance\L2VillageMasterInstance.java (working copy)
@@ -1010,1 +1010,9 @@
- final PlayerRace npcRace = getVillageMasterRace();
- final ClassType npcTeachType = getVillageMasterTeachType();
+ getVillageMasterRace();
+ getVillageMasterTeachType();

@@ -1049,1 +1049,5 @@
-
- if(npcRace == PlayerRace.Human || npcRace == PlayerRace.LightElf)
- {
- // 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);
- }
- else if(!availSub.isOfRace(PlayerRace.Human) && !availSub.isOfRace(PlayerRace.LightElf))
- {
- 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(npcRace != PlayerRace.Human && npcRace != PlayerRace.LightElf && !availSub.isOfRace(npcRace))
- {
- availSubs.remove(availSub);
- }
- }
(/No newline at the end of the line)

Index: L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2VillageMasterInstance.java
===================================================================
--- head-src\com\l2jfrozen\gameserver\model\base\PlayerClass.java (revision 59)
+++ head-src\com\l2jfrozen\gameserver\model\base\PlayerClass.java (working copy)
@@ -196,1 +196,5 @@
private static final Set<PlayerClass> mainSubclassSet;
- private static final Set<PlayerClass> neverSubclassed = EnumSet.of(Overlord, Warsmith);

- private static final Set<PlayerClass> subclasseSet1 = EnumSet.of(DarkAvenger, Paladin, TempleKnight, ShillienKnight);
- private static final Set<PlayerClass> subclasseSet2 = EnumSet.of(TreasureHunter, AbyssWalker, Plainswalker);
- private static final Set<PlayerClass> subclasseSet3 = EnumSet.of(Hawkeye, SilverRanger, PhantomRanger);
- private static final Set<PlayerClass> subclasseSet4 = EnumSet.of(Warlock, ElementalSummoner, PhantomSummoner);
- private static final Set<PlayerClass> subclasseSet5 = EnumSet.of(Sorceror, Spellsinger, Spellhowler);
-
- private static final EnumMap<PlayerClass, Set<PlayerClass>> subclassSetMap = new EnumMap<PlayerClass, Set<PlayerClass>>(PlayerClass.class);

static
{
Set<PlayerClass> subclasses = getSet(null, Third);
- subclasses.removeAll(neverSubclassed);

mainSubclassSet = subclasses;
-
- subclassSetMap.put(DarkAvenger, subclasseSet1);
- subclassSetMap.put(Paladin, subclasseSet1);
- subclassSetMap.put(TempleKnight, subclasseSet1);
- subclassSetMap.put(ShillienKnight, subclasseSet1);
-
- subclassSetMap.put(TreasureHunter, subclasseSet2);
- subclassSetMap.put(AbyssWalker, subclasseSet2);
- subclassSetMap.put(Plainswalker, subclasseSet2);
-
- subclassSetMap.put(Hawkeye, subclasseSet3);
- subclassSetMap.put(SilverRanger, subclasseSet3);
- subclassSetMap.put(PhantomRanger, subclasseSet3);
-
- subclassSetMap.put(Warlock, subclasseSet4);
- subclassSetMap.put(ElementalSummoner, subclasseSet4);
- subclassSetMap.put(PhantomSummoner, subclasseSet4);
-
- subclassSetMap.put(Sorceror, subclasseSet5);
- subclassSetMap.put(Spellsinger, subclasseSet5);
- subclassSetMap.put(Spellhowler, subclasseSet5);

@@ -252,1 +252,9 @@
- subclasses.removeAll(neverSubclassed);
- subclasses.remove(this);
-
- switch(player.getRace())
- {
- case elf:
- subclasses.removeAll(getSet(DarkElf, Third));
- break;
- case darkelf:
- subclasses.removeAll(getSet(LightElf, Third));
- break;
- }
-
- Set<PlayerClass> unavailableClasses = subclassSetMap.get(this);
-
- if(unavailableClasses != null)
- {
- subclasses.removeAll(unavailableClasses);
- }
-
- unavailableClasses = null;

@@ -222,1 +222,13 @@
if(_level == Third)
{
subclasses = EnumSet.copyOf(mainSubclassSet);
+
+subclasses.remove(this);
+
+ switch(player.getRace())
+ {
+ case human:
+ break;
+ case darkelf:
+ break;
+ case elf:
+ break;
+ case orc:
+ break;
+ case dwarf:
+ break;
+
}
}

return subclasses;
}
(/No newline at the end of the line)

Edited by TraineeDreamer
  • 0
Posted (edited)

Jesus, use [ code ] tags please.

And which problem do you have? Did you go to a Village master and did u check if there are all subs available or only some?

Edited by ^Wyatt
Guest
This topic is now closed to further replies.


  • Posts

    • There is a ready-made option and the possibility to work according to "Wishlist"
    • Contact me, Discord: xbaus
    • WTB GRACIA FINAL INTERFACE
    • Dear partners! At the moment we are in great need of the following positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old (brute or hacked origin, self-registered) accounts with post and comment karma from 100 to 100,000+ | Full email access included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010–2023) | Full email access (possibly with active 2FA password) — Facebook old accounts (2010–2023) | Full email access (possibly with active 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with active 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts — Email accounts: mail.ru, yahoo.com, gazeta.pl, gmx.ch / gmx.de / gmx.net (BUT NOT gmx.com) — Google ADS Manual Farm accounts (verified via email and phone number) | GEO: USA/Europe, mostly USA. — WhatsApp OLD Accounts — Twitter accounts with followers and posts (old accounts) Contact us via the details below. We will be glad to cooperate! We are also ready to consider other partnership and collaboration options. Active links to our projects: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

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