Jump to content
david220596

[Vídeo Tutorial] Todas Sub-Class em qualquer NPC Village Master

Recommended Posts

Tenha todas as sub-classes em qualquer NPC Village Master:

http://youtu.be/0mmQ5wcXXgQ

OBS: Assista em 720

Depois de aplicar a modificação

y6k1Kyc.jpg

L2VillageMasterInstance.java

 

 

Index: com/l2jfrozen/gameserver/model/actor/instance/L2VillageMasterInstance.java
==========================================================================
private final PlayerRace getVillageMasterRace()
{
String npcClass = getTemplate().getStatsSet().getString("jClass").toLowerCase();
 
if(npcClass.indexOf("human") > -1)
- return PlayerRace.Human;
+ return PlayerRace.all;
if(npcClass.indexOf("darkelf") > -1)
- return PlayerRace.DarkElf;
+ return PlayerRace.all;
if(npcClass.indexOf("elf") > -1)
- return PlayerRace.LightElf;
+ return PlayerRace.all;
if(npcClass.indexOf("orc") > -1)
- return PlayerRace.Orc;
+ return PlayerRace.all;
- return PlayerRace.Dwarf;
+ return PlayerRace.all;
}

 

 

 

PlayerClass.java

 

 

Index: com/l2jfrozen/gameserver/model/base/PlayerClass.java
===========================================================================
package com.l2jfrozen.gameserver.model.base;
 
import static com.l2jfrozen.gameserver.model.base.ClassLevel.First;
import static com.l2jfrozen.gameserver.model.base.ClassLevel.Fourth;
import static com.l2jfrozen.gameserver.model.base.ClassLevel.Second;
import static com.l2jfrozen.gameserver.model.base.ClassLevel.Third;
import static com.l2jfrozen.gameserver.model.base.ClassType.Fighter;
import static com.l2jfrozen.gameserver.model.base.ClassType.Mystic;
import static com.l2jfrozen.gameserver.model.base.ClassType.Priest;
-import static com.l2jfrozen.gameserver.model.base.PlayerRace.DarkElf;
-import static com.l2jfrozen.gameserver.model.base.PlayerRace.Dwarf;
-import static com.l2jfrozen.gameserver.model.base.PlayerRace.Human;
-import static com.l2jfrozen.gameserver.model.base.PlayerRace.LightElf;
-import static com.l2jfrozen.gameserver.model.base.PlayerRace.Orc;
+import static com.l2jfrozen.gameserver.model.base.PlayerRace.all;
 
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.Set;
 
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
 
public enum PlayerClass
{
- HumanFighter(Human, Fighter, First),
- Warrior(Human, Fighter, Second),
- Gladiator(Human, Fighter, Third),
- Warlord(Human, Fighter, Third),
- HumanKnight(Human, Fighter, Second),
- Paladin(Human, Fighter, Third),
- DarkAvenger(Human, Fighter, Third),
- Rogue(Human, Fighter, Second),
- TreasureHunter(Human, Fighter, Third),
- Hawkeye(Human, Fighter, Third),
- HumanMystic(Human, Mystic, First),
- HumanWizard(Human, Mystic, Second),
- Sorceror(Human, Mystic, Third),
- Necromancer(Human, Mystic, Third),
- Warlock(Human, Mystic, Third),
- Cleric(Human, Priest, Second),
- Bishop(Human, Priest, Third),
- Prophet(Human, Priest, Third),
+ HumanFighter(all, Fighter, First),
+ Warrior(all, Fighter, Second),
+ Gladiator(all, Fighter, Third),
+ Warlord(all, Fighter, Third),
+ HumanKnight(all, Fighter, Second),
+ Paladin(all, Fighter, Third),
+ DarkAvenger(all, Fighter, Third),
+ Rogue(all, Fighter, Second),
+ TreasureHunter(all, Fighter, Third),
+ Hawkeye(all, Fighter, Third),
+ HumanMystic(all, Mystic, First),
+ HumanWizard(all, Mystic, Second),
+ Sorceror(all, Mystic, Third),
+ Necromancer(all, Mystic, Third),
+ Warlock(all, Mystic, Third),
+ Cleric(all, Priest, Second),
+ Bishop(all, Priest, Third),
+ Prophet(all, Priest, Third),
 
- ElvenFighter(LightElf, Fighter, First),
- ElvenKnight(LightElf, Fighter, Second),
- TempleKnight(LightElf, Fighter, Third),
- Swordsinger(LightElf, Fighter, Third),
- ElvenScout(LightElf, Fighter, Second),
- Plainswalker(LightElf, Fighter, Third),
- SilverRanger(LightElf, Fighter, Third),
- ElvenMystic(LightElf, Mystic, First),
- ElvenWizard(LightElf, Mystic, Second),
- Spellsinger(LightElf, Mystic, Third),
- ElementalSummoner(LightElf, Mystic, Third),
- ElvenOracle(LightElf, Priest, Second),
- ElvenElder(LightElf, Priest, Third),
+ ElvenFighter(all, Fighter, First),
+ ElvenKnight(all, Fighter, Second),
+ TempleKnight(all, Fighter, Third),
+ Swordsinger(all, Fighter, Third),
+ ElvenScout(all, Fighter, Second),
+ Plainswalker(all, Fighter, Third),
+ SilverRanger(all, Fighter, Third),
+ ElvenMystic(all, Mystic, First),
+ ElvenWizard(all, Mystic, Second),
+ Spellsinger(all, Mystic, Third),
+ ElementalSummoner(all, Mystic, Third),
+ ElvenOracle(all, Priest, Second),
+ ElvenElder(all, Priest, Third),
 
- DarkElvenFighter(DarkElf, Fighter, First),
- PalusKnight(DarkElf, Fighter, Second),
- ShillienKnight(DarkElf, Fighter, Third),
- Bladedancer(DarkElf, Fighter, Third),
- Assassin(DarkElf, Fighter, Second),
- AbyssWalker(DarkElf, Fighter, Third),
- PhantomRanger(DarkElf, Fighter, Third),
- DarkElvenMystic(DarkElf, Mystic, First),
- DarkElvenWizard(DarkElf, Mystic, Second),
- Spellhowler(DarkElf, Mystic, Third),
- PhantomSummoner(DarkElf, Mystic, Third),
- ShillienOracle(DarkElf, Priest, Second),
- ShillienElder(DarkElf, Priest, Third),
+ DarkElvenFighter(all, Fighter, First),
+ PalusKnight(all, Fighter, Second),
+ ShillienKnight(all, Fighter, Third),
+ Bladedancer(all, Fighter, Third),
+ Assassin(all, Fighter, Second),
+ AbyssWalker(all, Fighter, Third),
+ PhantomRanger(all, Fighter, Third),
+ DarkElvenMystic(all, Mystic, First),
+ DarkElvenWizard(all, Mystic, Second),
+ Spellhowler(all, Mystic, Third),
+ PhantomSummoner(all, Mystic, Third),
+ ShillienOracle(all, Priest, Second),
+ ShillienElder(all, Priest, Third),
 
- OrcFighter(Orc, Fighter, First),
- OrcRaider(Orc, Fighter, Second),
- Destroyer(Orc, Fighter, Third),
- OrcMonk(Orc, Fighter, Second),
- Tyrant(Orc, Fighter, Third),
- OrcMystic(Orc, Mystic, First),
- OrcShaman(Orc, Mystic, Second),
- Overlord(Orc, Mystic, Third),
- Warcryer(Orc, Mystic, Third),
+ OrcFighter(all, Fighter, First),
+ OrcRaider(all, Fighter, Second),
+ Destroyer(all, Fighter, Third),
+ OrcMonk(all, Fighter, Second),
+ Tyrant(all, Fighter, Third),
+ OrcMystic(all, Mystic, First),
+ OrcShaman(all, Mystic, Second),
+ Overlord(all, Mystic, Third),
+ Warcryer(all, Mystic, Third),
 
- DwarvenFighter(Dwarf, Fighter, First),
- DwarvenScavenger(Dwarf, Fighter, Second),
- BountyHunter(Dwarf, Fighter, Third),
- DwarvenArtisan(Dwarf, Fighter, Second),
- Warsmith(Dwarf, Fighter, Third),
+ DwarvenFighter(all, Fighter, First),
+ DwarvenScavenger(all, Fighter, Second),
+ BountyHunter(all, Fighter, Third),
+ DwarvenArtisan(all, Fighter, Second),
+ Warsmith(all, Fighter, Third),
 
dummyEntry1(null, null, null),
dummyEntry2(null, null, null),
dummyEntry3(null, null, null),
dummyEntry4(null, null, null),
dummyEntry5(null, null, null),
dummyEntry6(null, null, null),
dummyEntry7(null, null, null),
dummyEntry8(null, null, null),
dummyEntry9(null, null, null),
dummyEntry10(null, null, null),
dummyEntry11(null, null, null),
dummyEntry12(null, null, null),
dummyEntry13(null, null, null),
dummyEntry14(null, null, null),
dummyEntry15(null, null, null),
dummyEntry16(null, null, null),
dummyEntry17(null, null, null),
dummyEntry18(null, null, null),
dummyEntry19(null, null, null),
dummyEntry20(null, null, null),
dummyEntry21(null, null, null),
dummyEntry22(null, null, null),
dummyEntry23(null, null, null),
dummyEntry24(null, null, null),
dummyEntry25(null, null, null),
dummyEntry26(null, null, null),
dummyEntry27(null, null, null),
dummyEntry28(null, null, null),
dummyEntry29(null, null, null),
dummyEntry30(null, null, null),
 
/*
* (3rd classes)
*/
- duelist(Human, Fighter, Fourth),
- dreadnought(Human, Fighter, Fourth),
- phoenixKnight(Human, Fighter, Fourth),
- hellKnight(Human, Fighter, Fourth),
- sagittarius(Human, Fighter, Fourth),
- adventurer(Human, Fighter, Fourth),
- archmage(Human, Mystic, Fourth),
- soultaker(Human, Mystic, Fourth),
- arcanaLord(Human, Mystic, Fourth),
- cardinal(Human, Mystic, Fourth),
- hierophant(Human, Mystic, Fourth),
+ duelist(all, Fighter, Fourth),
+ dreadnought(all, Fighter, Fourth),
+ phoenixKnight(all, Fighter, Fourth),
+ hellKnight(all, Fighter, Fourth),
+ sagittarius(all, Fighter, Fourth),
+ adventurer(all, Fighter, Fourth),
+ archmage(all, Mystic, Fourth),
+ soultaker(all, Mystic, Fourth),
+ arcanaLord(all, Mystic, Fourth),
+ cardinal(all, Mystic, Fourth),
+ hierophant(all, Mystic, Fourth),
 
- evaTemplar(LightElf, Fighter, Fourth),
- swordMuse(LightElf, Fighter, Fourth),
- windRider(LightElf, Fighter, Fourth),
- moonlightSentinel(LightElf, Fighter, Fourth),
- mysticMuse(LightElf, Mystic, Fourth),
- elementalMaster(LightElf, Mystic, Fourth),
- evaSaint(LightElf, Mystic, Fourth),
+ evaTemplar(all, Fighter, Fourth),
+ swordMuse(all, Fighter, Fourth),
+ windRider(all, Fighter, Fourth),
+ moonlightSentinel(all, Fighter, Fourth),
+ mysticMuse(all, Mystic, Fourth),
+ elementalMaster(all, Mystic, Fourth),
+ evaSaint(all, Mystic, Fourth),
 
- shillienTemplar(DarkElf, Fighter, Fourth),
- spectralDancer(DarkElf, Fighter, Fourth),
- ghostHunter(DarkElf, Fighter, Fourth),
- ghostSentinel(DarkElf, Fighter, Fourth),
- stormScreamer(DarkElf, Mystic, Fourth),
- spectralMaster(DarkElf, Mystic, Fourth),
- shillienSaint(DarkElf, Mystic, Fourth),
+ shillienTemplar(all, Fighter, Fourth),
+ spectralDancer(all, Fighter, Fourth),
+ ghostHunter(all, Fighter, Fourth),
+ ghostSentinel(all, Fighter, Fourth),
+ stormScreamer(all, Mystic, Fourth),
+ spectralMaster(all, Mystic, Fourth),
+ shillienSaint(all, Mystic, Fourth),
 
- titan(Orc, Fighter, Fourth),
- grandKhauatari(Orc, Fighter, Fourth),
- dominator(Orc, Mystic, Fourth),
- doomcryer(Orc, Mystic, Fourth),
+ titan(all, Fighter, Fourth),
+ grandKhauatari(all, Fighter, Fourth),
+ dominator(all, Mystic, Fourth),
+ doomcryer(all, Mystic, Fourth),
 
- fortuneSeeker(Dwarf, Fighter, Fourth),
- maestro(Dwarf, Fighter, Fourth);
+ fortuneSeeker(all, Fighter, Fourth),
+ maestro(all, Fighter, Fourth);
 
private PlayerRace _race;
private ClassLevel _level;
private ClassType _type;
 
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);
 
subclasses = null;
}
 
public final Set<PlayerClass> getAvailableSubclasses(L2PcInstance player)
{
Set<PlayerClass> subclasses = null;
 
if(_level == Third)
{
subclasses = EnumSet.copyOf(mainSubclassSet);
 
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;
}
 
return subclasses;
}

 

 

 

PlayerRace.java

 

 

Index: com/l2jfrozen/gameserver/model/base/PlayerRace.java
===========================================================================
package com.l2jfrozen.gameserver.model.base;
 
public enum PlayerRace
{
Human,
LightElf,
DarkElf,
Orc,
- Dwarf
+ Dwarf,
+ all
}

 

 

 

Créditos: Eu (David Alves)

 

Se Gostou, Curta!

Edited by david220596
  • Like 6

Melhor Tutorial Para Iniciantes e ate Mesmo Para Avançados:

Photoshop Total

----------------------------------------------------------------

Coloque Seus Conhecimentos Artísticos em Pratica na Melhor Competição de Design da Web:

ADS

Share this post


Link to post
Share on other sites

Proteja seu servidor de ataques DDoS massivos!

VPS EPIC

Muito show isso obrigado por compartilhar

  • Like 2

Vem ai um novo conceito em Lineage II

 

L2J-Fanatic

 

 

https://www.youtube.com/watch?v=1T5WFWQibhc&feature=youtu.beL2_JFanatic.png

 

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

Posta a DIFF brother!

Coisa tão simples, ao meu ver não precisa de Diff...


Melhor Tutorial Para Iniciantes e ate Mesmo Para Avançados:

Photoshop Total

----------------------------------------------------------------

Coloque Seus Conhecimentos Artísticos em Pratica na Melhor Competição de Design da Web:

ADS

Share this post


Link to post
Share on other sites

Coisa tão simples, ao meu ver não precisa de Diff...

Simples pra você e pra mim, mas para muitos daqui, não!


PYKlyRG.jpg&key=822e505460230a53f5b13227467836b3217127e6dec74c5c3b3701e6d02541d8

Lineage 2 Interlude, High Five & Classic project.
L2STUDIO, seu servidor está aqui!

Share this post


Link to post
Share on other sites

Simples pra você e pra mim, mas para muitos daqui, não!

Pronto, foi Add ao tópico...

  • Like 1

Melhor Tutorial Para Iniciantes e ate Mesmo Para Avançados:

Photoshop Total

----------------------------------------------------------------

Coloque Seus Conhecimentos Artísticos em Pratica na Melhor Competição de Design da Web:

ADS

Share this post


Link to post
Share on other sites

 

Tenha todas as sub-classes em qualquer NPC Village Master:

http://youtu.be/0mmQ5wcXXgQ

OBS: Assista em 720

Depois de aplicar a modificação

y6k1Kyc.jpg

L2VillageMasterInstance.java

 

 

Index: com/l2jfrozen/gameserver/model/actor/instance/L2VillageMasterInstance.java
==========================================================================
private final PlayerRace getVillageMasterRace()
{
String npcClass = getTemplate().getStatsSet().getString("jClass").toLowerCase();
 
if(npcClass.indexOf("human") > -1)
- return PlayerRace.Human;
+ return PlayerRace.all;
if(npcClass.indexOf("darkelf") > -1)
- return PlayerRace.DarkElf;
+ return PlayerRace.all;
if(npcClass.indexOf("elf") > -1)
- return PlayerRace.LightElf;
+ return PlayerRace.all;
if(npcClass.indexOf("orc") > -1)
- return PlayerRace.Orc;
+ return PlayerRace.all;
- return PlayerRace.Dwarf;
+ return PlayerRace.all;
}

 

 

 

PlayerClass.java

 

 

Index: com/l2jfrozen/gameserver/model/base/PlayerClass.java
===========================================================================
package com.l2jfrozen.gameserver.model.base;
 
import static com.l2jfrozen.gameserver.model.base.ClassLevel.First;
import static com.l2jfrozen.gameserver.model.base.ClassLevel.Fourth;
import static com.l2jfrozen.gameserver.model.base.ClassLevel.Second;
import static com.l2jfrozen.gameserver.model.base.ClassLevel.Third;
import static com.l2jfrozen.gameserver.model.base.ClassType.Fighter;
import static com.l2jfrozen.gameserver.model.base.ClassType.Mystic;
import static com.l2jfrozen.gameserver.model.base.ClassType.Priest;
-import static com.l2jfrozen.gameserver.model.base.PlayerRace.DarkElf;
-import static com.l2jfrozen.gameserver.model.base.PlayerRace.Dwarf;
-import static com.l2jfrozen.gameserver.model.base.PlayerRace.Human;
-import static com.l2jfrozen.gameserver.model.base.PlayerRace.LightElf;
-import static com.l2jfrozen.gameserver.model.base.PlayerRace.Orc;
+import static com.l2jfrozen.gameserver.model.base.PlayerRace.all;
 
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.Set;
 
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
 
public enum PlayerClass
{
- HumanFighter(Human, Fighter, First),
- Warrior(Human, Fighter, Second),
- Gladiator(Human, Fighter, Third),
- Warlord(Human, Fighter, Third),
- HumanKnight(Human, Fighter, Second),
- Paladin(Human, Fighter, Third),
- DarkAvenger(Human, Fighter, Third),
- Rogue(Human, Fighter, Second),
- TreasureHunter(Human, Fighter, Third),
- Hawkeye(Human, Fighter, Third),
- HumanMystic(Human, Mystic, First),
- HumanWizard(Human, Mystic, Second),
- Sorceror(Human, Mystic, Third),
- Necromancer(Human, Mystic, Third),
- Warlock(Human, Mystic, Third),
- Cleric(Human, Priest, Second),
- Bishop(Human, Priest, Third),
- Prophet(Human, Priest, Third),
+ HumanFighter(all, Fighter, First),
+ Warrior(all, Fighter, Second),
+ Gladiator(all, Fighter, Third),
+ Warlord(all, Fighter, Third),
+ HumanKnight(all, Fighter, Second),
+ Paladin(all, Fighter, Third),
+ DarkAvenger(all, Fighter, Third),
+ Rogue(all, Fighter, Second),
+ TreasureHunter(all, Fighter, Third),
+ Hawkeye(all, Fighter, Third),
+ HumanMystic(all, Mystic, First),
+ HumanWizard(all, Mystic, Second),
+ Sorceror(all, Mystic, Third),
+ Necromancer(all, Mystic, Third),
+ Warlock(all, Mystic, Third),
+ Cleric(all, Priest, Second),
+ Bishop(all, Priest, Third),
+ Prophet(all, Priest, Third),
 
- ElvenFighter(LightElf, Fighter, First),
- ElvenKnight(LightElf, Fighter, Second),
- TempleKnight(LightElf, Fighter, Third),
- Swordsinger(LightElf, Fighter, Third),
- ElvenScout(LightElf, Fighter, Second),
- Plainswalker(LightElf, Fighter, Third),
- SilverRanger(LightElf, Fighter, Third),
- ElvenMystic(LightElf, Mystic, First),
- ElvenWizard(LightElf, Mystic, Second),
- Spellsinger(LightElf, Mystic, Third),
- ElementalSummoner(LightElf, Mystic, Third),
- ElvenOracle(LightElf, Priest, Second),
- ElvenElder(LightElf, Priest, Third),
+ ElvenFighter(all, Fighter, First),
+ ElvenKnight(all, Fighter, Second),
+ TempleKnight(all, Fighter, Third),
+ Swordsinger(all, Fighter, Third),
+ ElvenScout(all, Fighter, Second),
+ Plainswalker(all, Fighter, Third),
+ SilverRanger(all, Fighter, Third),
+ ElvenMystic(all, Mystic, First),
+ ElvenWizard(all, Mystic, Second),
+ Spellsinger(all, Mystic, Third),
+ ElementalSummoner(all, Mystic, Third),
+ ElvenOracle(all, Priest, Second),
+ ElvenElder(all, Priest, Third),
 
- DarkElvenFighter(DarkElf, Fighter, First),
- PalusKnight(DarkElf, Fighter, Second),
- ShillienKnight(DarkElf, Fighter, Third),
- Bladedancer(DarkElf, Fighter, Third),
- Assassin(DarkElf, Fighter, Second),
- AbyssWalker(DarkElf, Fighter, Third),
- PhantomRanger(DarkElf, Fighter, Third),
- DarkElvenMystic(DarkElf, Mystic, First),
- DarkElvenWizard(DarkElf, Mystic, Second),
- Spellhowler(DarkElf, Mystic, Third),
- PhantomSummoner(DarkElf, Mystic, Third),
- ShillienOracle(DarkElf, Priest, Second),
- ShillienElder(DarkElf, Priest, Third),
+ DarkElvenFighter(all, Fighter, First),
+ PalusKnight(all, Fighter, Second),
+ ShillienKnight(all, Fighter, Third),
+ Bladedancer(all, Fighter, Third),
+ Assassin(all, Fighter, Second),
+ AbyssWalker(all, Fighter, Third),
+ PhantomRanger(all, Fighter, Third),
+ DarkElvenMystic(all, Mystic, First),
+ DarkElvenWizard(all, Mystic, Second),
+ Spellhowler(all, Mystic, Third),
+ PhantomSummoner(all, Mystic, Third),
+ ShillienOracle(all, Priest, Second),
+ ShillienElder(all, Priest, Third),
 
- OrcFighter(Orc, Fighter, First),
- OrcRaider(Orc, Fighter, Second),
- Destroyer(Orc, Fighter, Third),
- OrcMonk(Orc, Fighter, Second),
- Tyrant(Orc, Fighter, Third),
- OrcMystic(Orc, Mystic, First),
- OrcShaman(Orc, Mystic, Second),
- Overlord(Orc, Mystic, Third),
- Warcryer(Orc, Mystic, Third),
+ OrcFighter(all, Fighter, First),
+ OrcRaider(all, Fighter, Second),
+ Destroyer(all, Fighter, Third),
+ OrcMonk(all, Fighter, Second),
+ Tyrant(all, Fighter, Third),
+ OrcMystic(all, Mystic, First),
+ OrcShaman(all, Mystic, Second),
+ Overlord(all, Mystic, Third),
+ Warcryer(all, Mystic, Third),
 
- DwarvenFighter(Dwarf, Fighter, First),
- DwarvenScavenger(Dwarf, Fighter, Second),
- BountyHunter(Dwarf, Fighter, Third),
- DwarvenArtisan(Dwarf, Fighter, Second),
- Warsmith(Dwarf, Fighter, Third),
+ DwarvenFighter(all, Fighter, First),
+ DwarvenScavenger(all, Fighter, Second),
+ BountyHunter(all, Fighter, Third),
+ DwarvenArtisan(all, Fighter, Second),
+ Warsmith(all, Fighter, Third),
 
dummyEntry1(null, null, null),
dummyEntry2(null, null, null),
dummyEntry3(null, null, null),
dummyEntry4(null, null, null),
dummyEntry5(null, null, null),
dummyEntry6(null, null, null),
dummyEntry7(null, null, null),
dummyEntry8(null, null, null),
dummyEntry9(null, null, null),
dummyEntry10(null, null, null),
dummyEntry11(null, null, null),
dummyEntry12(null, null, null),
dummyEntry13(null, null, null),
dummyEntry14(null, null, null),
dummyEntry15(null, null, null),
dummyEntry16(null, null, null),
dummyEntry17(null, null, null),
dummyEntry18(null, null, null),
dummyEntry19(null, null, null),
dummyEntry20(null, null, null),
dummyEntry21(null, null, null),
dummyEntry22(null, null, null),
dummyEntry23(null, null, null),
dummyEntry24(null, null, null),
dummyEntry25(null, null, null),
dummyEntry26(null, null, null),
dummyEntry27(null, null, null),
dummyEntry28(null, null, null),
dummyEntry29(null, null, null),
dummyEntry30(null, null, null),
 
/*
* (3rd classes)
*/
- duelist(Human, Fighter, Fourth),
- dreadnought(Human, Fighter, Fourth),
- phoenixKnight(Human, Fighter, Fourth),
- hellKnight(Human, Fighter, Fourth),
- sagittarius(Human, Fighter, Fourth),
- adventurer(Human, Fighter, Fourth),
- archmage(Human, Mystic, Fourth),
- soultaker(Human, Mystic, Fourth),
- arcanaLord(Human, Mystic, Fourth),
- cardinal(Human, Mystic, Fourth),
- hierophant(Human, Mystic, Fourth),
+ duelist(all, Fighter, Fourth),
+ dreadnought(all, Fighter, Fourth),
+ phoenixKnight(all, Fighter, Fourth),
+ hellKnight(all, Fighter, Fourth),
+ sagittarius(all, Fighter, Fourth),
+ adventurer(all, Fighter, Fourth),
+ archmage(all, Mystic, Fourth),
+ soultaker(all, Mystic, Fourth),
+ arcanaLord(all, Mystic, Fourth),
+ cardinal(all, Mystic, Fourth),
+ hierophant(all, Mystic, Fourth),
 
- evaTemplar(LightElf, Fighter, Fourth),
- swordMuse(LightElf, Fighter, Fourth),
- windRider(LightElf, Fighter, Fourth),
- moonlightSentinel(LightElf, Fighter, Fourth),
- mysticMuse(LightElf, Mystic, Fourth),
- elementalMaster(LightElf, Mystic, Fourth),
- evaSaint(LightElf, Mystic, Fourth),
+ evaTemplar(all, Fighter, Fourth),
+ swordMuse(all, Fighter, Fourth),
+ windRider(all, Fighter, Fourth),
+ moonlightSentinel(all, Fighter, Fourth),
+ mysticMuse(all, Mystic, Fourth),
+ elementalMaster(all, Mystic, Fourth),
+ evaSaint(all, Mystic, Fourth),
 
- shillienTemplar(DarkElf, Fighter, Fourth),
- spectralDancer(DarkElf, Fighter, Fourth),
- ghostHunter(DarkElf, Fighter, Fourth),
- ghostSentinel(DarkElf, Fighter, Fourth),
- stormScreamer(DarkElf, Mystic, Fourth),
- spectralMaster(DarkElf, Mystic, Fourth),
- shillienSaint(DarkElf, Mystic, Fourth),
+ shillienTemplar(all, Fighter, Fourth),
+ spectralDancer(all, Fighter, Fourth),
+ ghostHunter(all, Fighter, Fourth),
+ ghostSentinel(all, Fighter, Fourth),
+ stormScreamer(all, Mystic, Fourth),
+ spectralMaster(all, Mystic, Fourth),
+ shillienSaint(all, Mystic, Fourth),
 
- titan(Orc, Fighter, Fourth),
- grandKhauatari(Orc, Fighter, Fourth),
- dominator(Orc, Mystic, Fourth),
- doomcryer(Orc, Mystic, Fourth),
+ titan(all, Fighter, Fourth),
+ grandKhauatari(all, Fighter, Fourth),
+ dominator(all, Mystic, Fourth),
+ doomcryer(all, Mystic, Fourth),
 
- fortuneSeeker(Dwarf, Fighter, Fourth),
- maestro(Dwarf, Fighter, Fourth);
+ fortuneSeeker(all, Fighter, Fourth),
+ maestro(all, Fighter, Fourth);
 
private PlayerRace _race;
private ClassLevel _level;
private ClassType _type;
 
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);
 
subclasses = null;
}
 
public final Set<PlayerClass> getAvailableSubclasses(L2PcInstance player)
{
Set<PlayerClass> subclasses = null;
 
if(_level == Third)
{
subclasses = EnumSet.copyOf(mainSubclassSet);
 
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;
}
 
return subclasses;
}

 

 

 

PlayerRace.java

 

 

Index: com/l2jfrozen/gameserver/model/base/PlayerRace.java
===========================================================================
package com.l2jfrozen.gameserver.model.base;
 
public enum PlayerRace
{
Human,
LightElf,
DarkElf,
Orc,
- Dwarf
+ Dwarf,
+ all
}

 

 

 

Créditos: Eu (David Alves)

 

Se Gostou, Curta!

 

Qual esse programa que voce utilizou para editar em java ?

Share this post


Link to post
Share on other sites
Em 02/12/2015 at 11:46, foiayoung disse:

Adicionei tudo certo em seus devidos lugares e compilei sem problemas, mais na hora de clicar em algum NPC Village pra pegar sub acontece isso.

 

 

  Ocultar conteúdo

 

tive o mesmo problema más apenas com as reças elfo e dark elfo.

Share this post


Link to post
Share on other sites



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • so n te ajudo por que estou config o meu server mais boa sorte ai ou vc se quiser mandar msg ai
    • Ok! Tava pensado nisso mesmo  vou adiciona novo um shoop!  
    • mano vc tem qui add esses custom pow ate pq a pack ta limpa e n posui isso tem la mais n adianta vc so pegar a textura e animation n e melhor vc add por sua vontade a não ser qui vc ache os o mesmo e add armorgrp e intename e weapongrp e skillgrp e skillname
    • Estou com problema  na textura do npc gm shop se alguen tive manda por favor pois ja procurá no fórum não encontrei! Weapon  TOP SET TOP ACESSORIOS E TATTOS
    • Alguém teria esse pack de icones para postar ? https://uploaddeimagens.com.br/imagens/FYGxCog
    • Esquece, peguei o link do fórum, lá tá funcionando perfeitamente! Valeu! "alguém tem o link de download atualizado? O da primeira página está dando erro... obrigado."
    • Você alterou o ip do server "7777" para outro? por exemplo, 7778? verifica na system também.
    • pessoal boa noite  estou com problema na de loga no servido  nao passa da tela de long. vou passa as configuração do longserve e gamer serve longserve #============================================================= #                         Loginserver #============================================================= # This is transmitted to the clients, so it has to be an IP or resolvable hostname Hostname = 25.128.249.2 # Bind ip of the LoginServer, use * to bind on all available IPs LoginserverHostname = * LoginserverPort = 2106 # The Loginserver host and port. LoginHostname = 192.168.1.5 LoginPort = 9014 # How many times you can provide an invalid account/pass before the IP gets banned LoginTryBeforeBan = 3     gamerserve   # ================================================================ #                          Gameserver setting # ================================================================ # This is transmitted to the clients, so it has to be an IP or resolvable hostname. If this ip is resolvable by Login just leave * Hostname = 25.128.249.2 # Bind ip of the gameserver, use * to bind on all available IPs. GameserverHostname = * GameserverPort = 7777 # The Loginserver host and port. LoginHost = 192.168.1.5 LoginPort = 9014 # This is the server id that the gameserver will request. RequestServerID = 1 # If set to true, the login will give an other id to the server (if the requested id is already reserved). AcceptAlternateID = True   por favor me ajuda estou com 4 horas tentado resolve e nao consigo .   estou usado  hamachi .
    • nao sei se entendi direito mas vc quer o IDTemplate do npc que eu quero por como SHOP? Se for isto pode ser o 22129.
    • baixa o gm shop que quiser e manda o id dele aqui, eu te mando a xml pronta. o restante só add normal
×
×
  • Create New...