Jump to content
  • 0

[HELP]Java code all sub in maximilian Interlude client


Question

Posted

Geia sas paidia opws lew kai sto title m tha ithela enan java code o opoios na bazei ola ta sub class ston maximilian gia interlude client kai sigkekrimena gia to teleutaio rev tou l2jhellas.. Euxaristw ek ton proterwn ...

 

 

Y.Γ Eixa brei enan tetoio code ala itan gia gracia final kai panw kai m ebgaze errors :(

8 answers to this question

Recommended Posts

  • 0
Posted

Geia sas paidia opws lew kai sto title m tha ithela enan java code o opoios na bazei ola ta sub class ston maximilian gia interlude client kai sigkekrimena gia to teleutaio rev tou l2jhellas.. Euxaristw ek ton proterwn ...

 

 

Y.Γ Eixa brei enan tetoio code ala itan gia gracia final kai panw kai m ebgaze errors :(

 

Πάνε στο:

com.l2jfrozen.gameserver.model.actor.instance.L2VillageMasterInstance.java

 

Βρές αυτό και άλλαξε το:

- final PlayerRace npcRace = getVillageMasterRace();
- final ClassType npcTeachType = getVillageMasterTeachType();
+ getVillageMasterRace();
+ getVillageMasterTeachType();

 

Μετά διέγραψε αυτά:

-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);
-					}
-				}

 

Πάνε στο:

com.l2jfrozen.model.base.PlayerClass.java

 

Βρές αυτήν την γραμμή και διέγραψε την:

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

 

Βρές αυτήν την γραμμή και διέγραψε την:

- subclasses.removeAll(neverSubclassed);
-

 

Βρές αυτήν την γραμμή και διέγραψε την:

-
- subclasses.removeAll(neverSubclassed);

  • 0
Posted

[javac] C:\workspace\L2jHellasC\java\com\l2jhellas\gameserver\model\actor\instance\L2VillageMasterInstance.java:941: error: ';' expected

    [javac]    private final ClassType getVillageMasterTeachType()

    [javac]                                                      ^

    [javac] C:\workspace\L2jHellasC\java\com\l2jhellas\gameserver\model\actor\instance\L2VillageMasterInstance.java:953: error: illegal start of expression

    [javac]    private boolean ItemRestriction(L2PcInstance player)

    [javac]    ^

    [javac] C:\workspace\L2jHellasC\java\com\l2jhellas\gameserver\model\actor\instance\L2VillageMasterInstance.java:953: error: ';' expected

    [javac]    private boolean ItemRestriction(L2PcInstance player)

    [javac]                                    ^

    [javac] C:\workspace\L2jHellasC\java\com\l2jhellas\gameserver\model\actor\instance\L2VillageMasterInstance.java:953: error: ';' expected

    [javac]    private boolean ItemRestriction(L2PcInstance player)

    [javac]                                                        ^

    [javac] C:\workspace\L2jHellasC\java\com\l2jhellas\gameserver\model\actor\instance\L2VillageMasterInstance.java:1001: error: illegal start of expression

    [javac]    private Iterator<SubClass> iterSubClasses(L2PcInstance player)

    [javac]    ^

    [javac] C:\workspace\L2jHellasC\java\com\l2jhellas\gameserver\model\actor\instance\L2VillageMasterInstance.java:1001: error: ';' expected

    [javac]    private Iterator<SubClass> iterSubClasses(L2PcInstance player)

    [javac]                                              ^

    [javac] C:\workspace\L2jHellasC\java\com\l2jhellas\gameserver\model\actor\instance\L2VillageMasterInstance.java:1001: error: ';' expected

    [javac]    private Iterator<SubClass> iterSubClasses(L2PcInstance player)

    [javac]                                                                  ^

    [javac] C:\workspace\L2jHellasC\java\com\l2jhellas\gameserver\model\actor\instance\L2VillageMasterInstance.java:1006: error: reached end of file while parsing

    [javac] }

    [javac]  ^

    [javac] 18 errors

 

BUILD FAILED

C:\workspace\L2jHellasC\build.xml:56: Compile failed; see the compiler error output for details.

 

Total time: 22 seconds

 

m ebgale auto exw ena error sto Villagemaster :(

  • 0
Posted

  /**

        * If the race of your main class is Elf or Dark Elf,

        * you may not select each class as a subclass to the other class,

        * and you may not select Overlord and Warsmith class as a subclass.

        *

        * You may not select a similar class as the subclass.

        * The occupations classified as similar classes are as follows:

        *

        * Treasure Hunter, Plainswalker and Abyss Walker

        * Hawkeye, Silver Ranger and Phantom Ranger

        * Paladin, Dark Avenger, Temple Knight and Shillien Knight

        * Warlocks, Elemental Summoner and Phantom Summoner

        * Elder and Shillien Elder

        * Swordsinger and Bladedancer

        * Sorcerer, Spellsinger and Spellhowler

        *

        */

        Set<PlayerClass> availSubs = currClass.getAvailableSubclasses(player);

 

        if (availSubs != null)

        {

            for (PlayerClass availSub : availSubs)

            {

                for (Iterator<SubClass> subList = iterSubClasses(player); subList.hasNext();)

                {

                    SubClass prevSubClass = subList.next();

                    int subClassId = prevSubClass.getClassId();

                    if (subClassId >= 88) subClassId = ClassId.values()[subClassId].getParent().getId();

 

                    if (availSub.ordinal() == subClassId

                                            || availSub.ordinal() == charClassId)

                        availSubs.remove(PlayerClass.values()[availSub.ordinal()]);

                }

 

             

        }

 

        return availSubs;

    }

 

    /**

    * this displays PledgeSkillList to the player.

    * @param player

    */

    public void showPledgeSkillList(L2PcInstance player)

    {

 

        if (Config.DEBUG)

            _log.fine("PledgeSkillList activated on: "+getObjectId());

        if(player.getClan() == null) return;

 

        L2PledgeSkillLearn[] skills = SkillTreeTable.getInstance().getAvailablePledgeSkills(player);

        AquireSkillList asl = new AquireSkillList(AquireSkillList.skillType.Clan);

        int counts = 0;

 

        for (L2PledgeSkillLearn s: skills)

        {

            int cost = s.getRepCost();

            counts++;

 

            asl.addSkill(s.getId(), s.getLevel(), s.getLevel(), cost, 0);

        }

 

        if (counts == 0)

        {

 

sto availsubs; m bgazei syntax error ssigkekrimena m exei ipogrammismeno me kokkino to ;  :(

  • 0
Posted

  /**
         * If the race of your main class is Elf or Dark Elf,
         * you may not select each class as a subclass to the other class,
         * and you may not select Overlord and Warsmith class as a subclass.
         *
         * You may not select a similar class as the subclass.
         * The occupations classified as similar classes are as follows:
         *
         * Treasure Hunter, Plainswalker and Abyss Walker
         * Hawkeye, Silver Ranger and Phantom Ranger
         * Paladin, Dark Avenger, Temple Knight and Shillien Knight
         * Warlocks, Elemental Summoner and Phantom Summoner
         * Elder and Shillien Elder
         * Swordsinger and Bladedancer
         * Sorcerer, Spellsinger and Spellhowler
         *
         */
        Set<PlayerClass> availSubs = currClass.getAvailableSubclasses(player);

        if (availSubs != null)
        {
            for (PlayerClass availSub : availSubs)
            {
                for (Iterator<SubClass> subList = iterSubClasses(player); subList.hasNext();)
                {
                    SubClass prevSubClass = subList.next();
                    int subClassId = prevSubClass.getClassId();
                    if (subClassId >= 88) subClassId = ClassId.values()[subClassId].getParent().getId();

                    if (availSub.ordinal() == subClassId
                    		                        || availSub.ordinal() == charClassId)
                        availSubs.remove(PlayerClass.values()[availSub.ordinal()]);
                }

               
        }

        
    }
return availSubs;
    /**
     * this displays PledgeSkillList to the player.
     * @param player
     */
    public void showPledgeSkillList(L2PcInstance player)
    {

        if (Config.DEBUG)
            _log.fine("PledgeSkillList activated on: "+getObjectId());
        if(player.getClan() == null) return;

        L2PledgeSkillLearn[] skills = SkillTreeTable.getInstance().getAvailablePledgeSkills(player);
        AquireSkillList asl = new AquireSkillList(AquireSkillList.skillType.Clan);
        int counts = 0;

        for (L2PledgeSkillLearn s: skills)
        {
            int cost = s.getRepCost();
            counts++;

            asl.addSkill(s.getId(), s.getLevel(), s.getLevel(), cost, 0);
        }

        if (counts == 0)
        {

 

gia dokimase na valeis auto to code...

Guest
This topic is now closed to further replies.


×
×
  • Create New...