JTS 2018 последние сурсы(Ошибки)

Статус
В этой теме нельзя размещать новые ответы.

DJone

Последний из атеистов
Пользователь
Сообщения
63
Розыгрыши
0
Репутация
0
Реакции
3
Баллы
850
Всем привет. Подскажите пожалуйста, кто ставил данную сборку, где расположен файл со скилами? Хочу поправить скил Rush, иначе что то он не работает. Баг со скилом, или это мне кажется?
 

Вложения

  • 12.png.9b68eed8cfd259c52bd01ef02b11d0b7.webp
    137,1 КБ · Просмотры: 411
я добавил скрин + код ошибки под сполер, не загрузилось


13:00:03 [ScheduledThreadPool-8] INFO RunnableImpl - Wed Nov 28 13:00:03 MSK 2018 Atk announce scheduled to 0.0 minute of this hour.
13:38:18 [ScheduledThreadPool-4] WARN ItemTemplateHolder - ItemTemplateHolder: Not defined item id : 27333, or out of range!
java.lang.Exception
at org.mmocore.gameserver.data.xml.holder.ItemTemplateHolder.getTemplate(ItemTemplateHolder.java:52)
at org.mmocore.gameserver.utils.ItemFunctions.addItem(ItemFunctions.java:86)
at org.mmocore.gameserver.utils.ItemFunctions.addItem(ItemFunctions.java:64)
at org.mmocore.gameserver.scripts.events.ItemsOnLvl.ItemsObLvl$OnLevelUpListenerImpl.onLevelUp(ItemsObLvl.java:102)
at org.mmocore.gameserver.object.components.player.PlayerListenerList.lambda$onLevelUp$20(PlayerListenerList.java:168)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.mmocore.gameserver.object.components.player.PlayerListenerList.onLevelUp(PlayerListenerList.java:167)
at org.mmocore.gameserver.object.Player.addExpAndSp(Player.java:2079)
at org.mmocore.gameserver.object.Player.addExpAndCheckBonus(Player.java:1992)
at org.mmocore.gameserver.model.instances.MonsterInstance.calculateRewards(MonsterInstance.java:401)
at org.mmocore.gameserver.model.instances.MonsterInstance.onDeath(MonsterInstance.java:240)
at org.mmocore.gameserver.object.Creature.doDie(Creature.java:1453)
at org.mmocore.gameserver.object.Creature.onReduceCurrentHp(Creature.java:3077)
at org.mmocore.gameserver.model.instances.NpcInstance.onReduceCurrentHp(NpcInstance.java:339)
at org.mmocore.gameserver.model.instances.MonsterInstance.onReduceCurrentHp(MonsterInstance.java:263)
at org.mmocore.gameserver.object.Creature.reduceCurrentHp(Creature.java:3037)
at org.mmocore.gameserver.object.Creature.reduceCurrentHp(Creature.java:2984)
at org.mmocore.gameserver.object.Creature.onHitTimer(Creature.java:2803)
at org.mmocore.gameserver.object.components.creatures.tasks.HitTask.runImpl(HitTask.java:42)
at org.mmocore.commons.threading.RunnableImpl.run(RunnableImpl.java:18)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
at org.mmocore.commons.threading.PriorityThreadFactory$1.run(PriorityThreadFactory.java:29)
13:38:18 [ScheduledThreadPool-4] ERROR RunnableImpl - Exception: RunnableImpl.run().
java.lang.NullPointerException
at org.mmocore.gameserver.utils.ItemFunctions.addItem(ItemFunctions.java:87)
at org.mmocore.gameserver.utils.ItemFunctions.addItem(ItemFunctions.java:64)
at org.mmocore.gameserver.scripts.events.ItemsOnLvl.ItemsObLvl$OnLevelUpListenerImpl.onLevelUp(ItemsObLvl.java:102)
at org.mmocore.gameserver.object.components.player.PlayerListenerList.lambda$onLevelUp$20(PlayerListenerList.java:168)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.mmocore.gameserver.object.components.player.PlayerListenerList.onLevelUp(PlayerListenerList.java:167)
at org.mmocore.gameserver.object.Player.addExpAndSp(Player.java:2079)
at org.mmocore.gameserver.object.Player.addExpAndCheckBonus(Player.java:1992)
at org.mmocore.gameserver.model.instances.MonsterInstance.calculateRewards(MonsterInstance.java:401)
at org.mmocore.gameserver.model.instances.MonsterInstance.onDeath(MonsterInstance.java:240)
at org.mmocore.gameserver.object.Creature.doDie(Creature.java:1453)
at org.mmocore.gameserver.object.Creature.onReduceCurrentHp(Creature.java:3077)
at org.mmocore.gameserver.model.instances.NpcInstance.onReduceCurrentHp(NpcInstance.java:339)
at org.mmocore.gameserver.model.instances.MonsterInstance.onReduceCurrentHp(MonsterInstance.java:263)
at org.mmocore.gameserver.object.Creature.reduceCurrentHp(Creature.java:3037)
at org.mmocore.gameserver.object.Creature.reduceCurrentHp(Creature.java:2984)
at org.mmocore.gameserver.object.Creature.onHitTimer(Creature.java:2803)
at org.mmocore.gameserver.object.components.creatures.tasks.HitTask.runImpl(HitTask.java:42)
at org.mmocore.commons.threading.RunnableImpl.run(RunnableImpl.java:18)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
at org.mmocore.commons.threading.PriorityThreadFactory$1.run(PriorityThreadFactory.java:29)
 
Последнее редактирование:
отсутствует итем 27333, там ж даже в ошибке написано, переводчик не пробовали юзать?
 
что за итем такой,ненашел ни как.
 
Последнее редактирование:
Кто настроил Dressme ??

Кто настроил Dressme ?
 
Всем привет. Народ, подскажите, что делаю не так. Хочу поправить квест Проверка снабжение (SupplyCheck), которое дается в деревне Камаель, у НПЦ Маркела. По завершеню квеста дается Wooden Set (Деревянный Набор) Магам и Войнам, хочу сделать так чтобы Магам выдавался сет Set of Devotion (Набор Преданности). Что делаю не так?

Java:
else if (GetMemoState == 8) {
                        if(st.getPlayer().getClassId().isMage() && !st.getPlayer().getClassId().equalsOrChildOf(ClassId.orcMage)) {
                            st.giveItems(leather_helmet, 1);
                            st.giveItems(tunic_of_devotion, 1);
                            st.giveItems(hose_of_devotion, 1);
                            st.giveItems(bracer, 1);
                            st.giveItems(leather_shoes, 1);
                        }
                        else {
                            st.giveItems(wooden_helmet, 1);
                            st.giveItems(wooden_breastplate, 1);
                            st.giveItems(wooden_gaiters, 1);
                            st.giveItems(gloves, 1);
                            st.giveItems(leather_shoes, 1);
                        }
                        st.removeMemo("check_the_supplyment");
                        if (player.getQuestState(41) == null) {
                            final Quest q = QuestManager.getQuest(41);
                            q.newQuestState(player, Quest.STARTED);
                            player.getQuestState(41).setMemoState("guide_mission", String.valueOf(1), true);
                            st.getPlayer().sendPacket(new ExShowScreenMessage(NpcString.DELIVERY_DUTY_COMPLETE_GO_FING_THE_NEWBIE_GUIDE, 5000, ScreenMessageAlign.TOP_CENTER, true));
                        } else if (player.getQuestState(41).getInt("guide_mission") % 10 != 1) {
                            player.getQuestState(41).setMemoState("guide_mission", String.valueOf(player.getQuestState(41).getInt("guide_mission") + 1), true);
                            st.getPlayer().sendPacket(new ExShowScreenMessage(NpcString.DELIVERY_DUTY_COMPLETE_GO_FING_THE_NEWBIE_GUIDE, 5000, ScreenMessageAlign.TOP_CENTER, true));
                        }
                        st.addExpAndSp(5672, 446);
                        st.giveItems(ADENA_ID, 446);
                        st.soundEffect(SOUND_FINISH);
                        st.exitQuest(false);
                        htmltext = "zerstorer_morsell_q0174_12.htm";
                    }

Компилятор ругается именно на следующий параметр:

Java:
 if(st.getPlayer().getClassId().isMage() && !st.getPlayer().getClassId().equalsOrChildOf(ClassId.orcMage))
 
потому что в ClassId нет orcMage есть orc_mage, orc_shaman, overlord, warcryer
 
player.getPlayerClassComponent().getClassId().getRace() != PlayerRace.orc) && player.getPlayerClassComponent().getClassId().isMage()
пример я думаю ты понял
 
player.getPlayerClassComponent().getClassId().getRace() != PlayerRace.orc) && player.getPlayerClassComponent().getClassId().isMage()
пример я думаю ты понял

Из 8 критов, стало теперь меньше, 1 крит в компиле, но все равно догнать не могу, последнее(

Java:
if(st.getPlayerClassComponent().getClassId().isMage() && !st.getPlayerClassComponent().getClassId().(ClassId.orc)) {

Код:
compile.module.game.production:
    [mkdir] Created dir: /home/mclaren/hightfive/source/out/production/game
    [javac] Compiling 3660 source files to /home/mclaren/hightfive/source/out/production/game
    [javac] /home/mclaren/hightfive/source/gameserver/src/main/java/org/mmocore/gameserver/scripts/quests/_174_SupplyCheck.java:125: error: <identifier> expected
    [javac]                         if(st.getPlayerClassComponent().getClassId().isMage() && !st.getPlayerClassComponent().getClassId().(ClassId.orc)) {
    [javac]                                                                                                                             ^
    [javac] 1 error

BUILD FAILED
 
(Classid.orc) скобки уберите и я не уверен что нужна classid,
 
(Classid.orc) скобки уберите и я не уверен что нужна classid,
Скобки убрал, и пробовал убирать classid.

Первый вариант:
Код:
compile.module.game.production:
    [mkdir] Created dir: /home/mclaren/hightfive/source/out/production/game
    [javac] Compiling 3660 source files to /home/mclaren/hightfive/source/out/production/game
    [javac] /home/mclaren/hightfive/source/gameserver/src/main/java/org/mmocore/gameserver/scripts/quests/_174_SupplyCheck.java:125: error: cannot find symbol
    [javac]                         if(player.getPlayerClassComponent().getClassId().isMage() && player.getPlayerClassComponent().getClassId().ClassId.orc) {
    [javac]                                                                                                                                   ^
    [javac]   symbol:   variable ClassId
    [javac]   location: class ClassId
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED

Второй вариант:
Код:
compile.module.game.production:
    [mkdir] Created dir: /home/mclaren/hightfive/source/out/production/game
    [javac] Compiling 3660 source files to /home/mclaren/hightfive/source/out/production/game
    [javac] /home/mclaren/hightfive/source/gameserver/src/main/java/org/mmocore/gameserver/scripts/quests/_174_SupplyCheck.java:125: error: cannot find symbol
    [javac]                         if(player.getPlayerClassComponent().getClassId().isMage() && player.getPlayerClassComponent().getClassId().orc) {
    [javac]                                                                                                                                   ^
    [javac]   symbol:   variable orc
    [javac]   location: class ClassId
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED
 
Скобки убрал, и пробовал убирать classid.
Уважаемый вы нуб. вы что в блокноте копаете код? Вот скажите откуда там "orc"?
Java:
package org.mmocore.gameserver.model.base;

import org.jts.dataparser.data.holder.setting.InitialStartPoint.PlayerClasses;
import org.jts.dataparser.data.holder.setting.common.PlayerRace;

/**
 * This class defines all classes (ex : human fighter, darkFighter...) that a player can chose.<BR><BR>
 * <p/>
 * Data :<BR><BR>
 * <li>id : The Identifier of the class</li>
 * <li>isMage : True if the class is a mage class</li>
 * <li>race : The race of this class</li>
 * <li>parent : The parent ClassId for male or null if this class is the root</li>
 * <li>parent2 : The parent2 ClassId for female or null if parent2 like parent</li>
 * <li>level : The child level of this Class</li><BR><BR>
 */
public enum ClassId {
    fighter(0, PlayerRace.human, null, null, ClassLevel.First, ClassType.Fighter, null, PlayerClasses.human_fighter),

    warrior(1, PlayerRace.human, fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.human_fighter),
    gladiator(2, PlayerRace.human, warrior, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.human_fighter),
    warlord(3, PlayerRace.human, warrior, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.human_fighter),
    knight(4, PlayerRace.human, fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.human_fighter),
    paladin(5, PlayerRace.human, knight, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Knight, PlayerClasses.human_fighter),
    dark_avenger(6, PlayerRace.human, knight, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Knight, PlayerClasses.human_fighter),
    rogue(7, PlayerRace.human, fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.human_fighter),
    treasure_hunter(8, PlayerRace.human, rogue, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.human_fighter),
    hawkeye(9, PlayerRace.human, rogue, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.human_fighter),

    mage(10, PlayerRace.human, null, null, ClassLevel.First, ClassType.Mystic, null, PlayerClasses.human_magician),
    wizard(11, PlayerRace.human, mage, null, ClassLevel.Second, ClassType.Mystic, null, PlayerClasses.human_magician),
    sorceror(12, PlayerRace.human, wizard, null, ClassLevel.Third, ClassType.Mystic, ClassType2.Wizard, PlayerClasses.human_magician),
    necromancer(13, PlayerRace.human, wizard, null, ClassLevel.Third, ClassType.Mystic, ClassType2.Wizard, PlayerClasses.human_magician),
    warlock(14, PlayerRace.human, wizard, null, ClassLevel.Third, ClassType.Mystic, ClassType2.Summoner, PlayerClasses.human_magician),
    cleric(15, PlayerRace.human, mage, null, ClassLevel.Second, ClassType.Priest, null, PlayerClasses.human_magician),
    bishop(16, PlayerRace.human, cleric, null, ClassLevel.Third, ClassType.Priest, ClassType2.Healer, PlayerClasses.human_magician),
    prophet(17, PlayerRace.human, cleric, null, ClassLevel.Third, ClassType.Priest, ClassType2.Enchanter, PlayerClasses.human_magician),

    elven_fighter(18, PlayerRace.elf, null, null, ClassLevel.First, ClassType.Fighter, null, PlayerClasses.elf_fighter),
    elven_knight(19, PlayerRace.elf, elven_fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.elf_fighter),
    temple_knight(20, PlayerRace.elf, elven_knight, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Knight, PlayerClasses.elf_fighter),
    sword_singer(21, PlayerRace.elf, elven_knight, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Enchanter, PlayerClasses.elf_fighter),
    elven_scout(22, PlayerRace.elf, elven_fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.elf_fighter),
    plains_walker(23, PlayerRace.elf, elven_scout, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.elf_fighter),
    silver_ranger(24, PlayerRace.elf, elven_scout, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.elf_fighter),

    elven_mage(25, PlayerRace.elf, null, null, ClassLevel.First, ClassType.Mystic, null, PlayerClasses.elf_magician),
    elven_wizard(26, PlayerRace.elf, elven_mage, null, ClassLevel.Second, ClassType.Mystic, null, PlayerClasses.elf_magician),
    spellsinger(27, PlayerRace.elf, elven_wizard, null, ClassLevel.Third, ClassType.Mystic, ClassType2.Wizard, PlayerClasses.elf_magician),
    elemental_summoner(28, PlayerRace.elf, elven_wizard, null, ClassLevel.Third, ClassType.Mystic, ClassType2.Summoner, PlayerClasses.elf_magician),
    oracle(29, PlayerRace.elf, elven_mage, null, ClassLevel.Second, ClassType.Priest, null, PlayerClasses.elf_magician),
    elder(30, PlayerRace.elf, oracle, null, ClassLevel.Third, ClassType.Priest, ClassType2.Healer, PlayerClasses.elf_magician),

    dark_fighter(31, PlayerRace.darkelf, null, null, ClassLevel.First, ClassType.Fighter, null, PlayerClasses.darkelf_fighter),
    palus_knight(32, PlayerRace.darkelf, dark_fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.darkelf_fighter),
    shillien_knight(33, PlayerRace.darkelf, palus_knight, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Knight, PlayerClasses.darkelf_fighter),
    bladedancer(34, PlayerRace.darkelf, palus_knight, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Enchanter, PlayerClasses.darkelf_fighter),
    assassin(35, PlayerRace.darkelf, dark_fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.darkelf_fighter),
    abyss_walker(36, PlayerRace.darkelf, assassin, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.darkelf_fighter),
    phantom_ranger(37, PlayerRace.darkelf, assassin, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.darkelf_fighter),

    dark_mage(38, PlayerRace.darkelf, null, null, ClassLevel.First, ClassType.Mystic, null, PlayerClasses.darkelf_magician),
    dark_wizard(39, PlayerRace.darkelf, dark_mage, null, ClassLevel.Second, ClassType.Mystic, null, PlayerClasses.darkelf_magician),
    spellhowler(40, PlayerRace.darkelf, dark_wizard, null, ClassLevel.Third, ClassType.Mystic, ClassType2.Wizard, PlayerClasses.darkelf_magician),
    phantom_summoner(41, PlayerRace.darkelf, dark_wizard, null, ClassLevel.Third, ClassType.Mystic, ClassType2.Summoner, PlayerClasses.darkelf_magician),
    shillien_oracle(42, PlayerRace.darkelf, dark_mage, null, ClassLevel.Second, ClassType.Priest, null, PlayerClasses.darkelf_magician),
    shillien_elder(43, PlayerRace.darkelf, shillien_oracle, null, ClassLevel.Third, ClassType.Priest, ClassType2.Healer, PlayerClasses.darkelf_magician),

    orc_fighter(44, PlayerRace.orc, null, null, ClassLevel.First, ClassType.Fighter, null, PlayerClasses.orc_fighter),
    orc_raider(45, PlayerRace.orc, orc_fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.orc_fighter),
    destroyer(46, PlayerRace.orc, orc_raider, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.orc_fighter),
    orc_monk(47, PlayerRace.orc, orc_fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.orc_fighter),
    tyrant(48, PlayerRace.orc, orc_monk, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.orc_fighter),

    orc_mage(49, PlayerRace.orc, null, null, ClassLevel.First, ClassType.Mystic, null, PlayerClasses.orc_shaman),
    orc_shaman(50, PlayerRace.orc, orc_mage, null, ClassLevel.Second, ClassType.Mystic, null, PlayerClasses.orc_shaman),
    overlord(51, PlayerRace.orc, orc_shaman, null, ClassLevel.Third, ClassType.Mystic, ClassType2.Enchanter, PlayerClasses.orc_shaman),
    warcryer(52, PlayerRace.orc, orc_shaman, null, ClassLevel.Third, ClassType.Mystic, ClassType2.Enchanter, PlayerClasses.orc_shaman),

    dwarven_fighter(53, PlayerRace.dwarf, null, null, ClassLevel.First, ClassType.Fighter, null, PlayerClasses.dwarf_apprentice),
    scavenger(54, PlayerRace.dwarf, dwarven_fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.dwarf_apprentice),
    bounty_hunter(55, PlayerRace.dwarf, scavenger, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.dwarf_apprentice),
    artisan(56, PlayerRace.dwarf, dwarven_fighter, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.dwarf_apprentice),
    warsmith(57, PlayerRace.dwarf, artisan, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.dwarf_apprentice),

    dummyEntry1(58, null, null, null, null, null, null, null),
    dummyEntry2(59, null, null, null, null, null, null, null),
    dummyEntry3(60, null, null, null, null, null, null, null),
    dummyEntry4(61, null, null, null, null, null, null, null),
    dummyEntry5(62, null, null, null, null, null, null, null),
    dummyEntry6(63, null, null, null, null, null, null, null),
    dummyEntry7(64, null, null, null, null, null, null, null),
    dummyEntry8(65, null, null, null, null, null, null, null),
    dummyEntry9(66, null, null, null, null, null, null, null),
    dummyEntry10(67, null, null, null, null, null, null, null),
    dummyEntry11(68, null, null, null, null, null, null, null),
    dummyEntry12(69, null, null, null, null, null, null, null),
    dummyEntry13(70, null, null, null, null, null, null, null),
    dummyEntry14(71, null, null, null, null, null, null, null),
    dummyEntry15(72, null, null, null, null, null, null, null),
    dummyEntry16(73, null, null, null, null, null, null, null),
    dummyEntry17(74, null, null, null, null, null, null, null),
    dummyEntry18(75, null, null, null, null, null, null, null),
    dummyEntry19(76, null, null, null, null, null, null, null),
    dummyEntry20(77, null, null, null, null, null, null, null),
    dummyEntry21(78, null, null, null, null, null, null, null),
    dummyEntry22(79, null, null, null, null, null, null, null),
    dummyEntry23(80, null, null, null, null, null, null, null),
    dummyEntry24(81, null, null, null, null, null, null, null),
    dummyEntry25(82, null, null, null, null, null, null, null),
    dummyEntry26(83, null, null, null, null, null, null, null),
    dummyEntry27(84, null, null, null, null, null, null, null),
    dummyEntry28(85, null, null, null, null, null, null, null),
    dummyEntry29(86, null, null, null, null, null, null, null),
    dummyEntry30(87, null, null, null, null, null, null, null),

    duelist(88, PlayerRace.human, gladiator, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.human_fighter),
    dreadnought(89, PlayerRace.human, warlord, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.human_fighter),
    phoenix_knight(90, PlayerRace.human, paladin, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Knight, PlayerClasses.human_fighter),
    hell_knight(91, PlayerRace.human, dark_avenger, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Knight, PlayerClasses.human_fighter),
    sagittarius(92, PlayerRace.human, hawkeye, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.human_fighter),
    adventurer(93, PlayerRace.human, treasure_hunter, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.human_fighter),

    archmage(94, PlayerRace.human, sorceror, null, ClassLevel.Fourth, ClassType.Mystic, ClassType2.Wizard, PlayerClasses.human_magician),
    soultaker(95, PlayerRace.human, necromancer, null, ClassLevel.Fourth, ClassType.Mystic, ClassType2.Wizard, PlayerClasses.human_magician),
    arcana_lord(96, PlayerRace.human, warlock, null, ClassLevel.Fourth, ClassType.Mystic, ClassType2.Summoner, PlayerClasses.human_magician),
    cardinal(97, PlayerRace.human, bishop, null, ClassLevel.Fourth, ClassType.Priest, ClassType2.Healer, PlayerClasses.human_magician),
    hierophant(98, PlayerRace.human, prophet, null, ClassLevel.Fourth, ClassType.Priest, ClassType2.Enchanter, PlayerClasses.human_magician),

    eva_templar(99, PlayerRace.elf, temple_knight, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Knight, PlayerClasses.elf_fighter),
    sword_muse(100, PlayerRace.elf, sword_singer, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Enchanter, PlayerClasses.elf_fighter),
    wind_rider(101, PlayerRace.elf, plains_walker, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.elf_fighter),
    moonlight_sentinel(102, PlayerRace.elf, silver_ranger, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.elf_fighter),

    mystic_muse(103, PlayerRace.elf, spellsinger, null, ClassLevel.Fourth, ClassType.Mystic, ClassType2.Wizard, PlayerClasses.elf_magician),
    elemental_master(104, PlayerRace.elf, elemental_summoner, null, ClassLevel.Fourth, ClassType.Mystic, ClassType2.Summoner, PlayerClasses.elf_magician),
    eva_saint(105, PlayerRace.elf, elder, null, ClassLevel.Fourth, ClassType.Priest, ClassType2.Healer, PlayerClasses.elf_magician),

    shillien_templar(106, PlayerRace.darkelf, shillien_knight, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Knight, PlayerClasses.darkelf_fighter),
    spectral_dancer(107, PlayerRace.darkelf, bladedancer, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Enchanter, PlayerClasses.darkelf_fighter),
    ghost_hunter(108, PlayerRace.darkelf, abyss_walker, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.darkelf_fighter),
    ghost_sentinel(109, PlayerRace.darkelf, phantom_ranger, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.darkelf_fighter),

    storm_screamer(110, PlayerRace.darkelf, spellhowler, null, ClassLevel.Fourth, ClassType.Mystic, ClassType2.Wizard, PlayerClasses.darkelf_magician),
    spectral_master(111, PlayerRace.darkelf, phantom_summoner, null, ClassLevel.Fourth, ClassType.Mystic, ClassType2.Summoner, PlayerClasses.darkelf_magician),
    shillien_saint(112, PlayerRace.darkelf, shillien_elder, null, ClassLevel.Fourth, ClassType.Priest, ClassType2.Healer, PlayerClasses.darkelf_magician),

    titan(113, PlayerRace.orc, destroyer, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.orc_fighter),
    grand_khauatari(114, PlayerRace.orc, tyrant, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.orc_fighter),

    dominator(115, PlayerRace.orc, overlord, null, ClassLevel.Fourth, ClassType.Mystic, ClassType2.Enchanter, PlayerClasses.orc_shaman),
    doomcryer(116, PlayerRace.orc, warcryer, null, ClassLevel.Fourth, ClassType.Mystic, ClassType2.Enchanter, PlayerClasses.orc_shaman),

    fortune_seeker(117, PlayerRace.dwarf, bounty_hunter, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.dwarf_apprentice),
    maestro(118, PlayerRace.dwarf, warsmith, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.dwarf_apprentice),

    dummyEntry31(119, null, null, null, null, null, null, null),
    dummyEntry32(120, null, null, null, null, null, null, null),
    dummyEntry33(121, null, null, null, null, null, null, null),
    dummyEntry34(122, null, null, null, null, null, null, null),

    /**
     * Kamael
     */
    kamael_m_soldier(123, PlayerRace.kamael, null, null, ClassLevel.First, ClassType.Fighter, null, PlayerClasses.kamael_m_soldier),
    kamael_f_soldier(124, PlayerRace.kamael, null, null, ClassLevel.First, ClassType.Fighter, null, PlayerClasses.kamael_f_soldier),
    trooper(125, PlayerRace.kamael, kamael_m_soldier, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.kamael_m_soldier),
    warder(126, PlayerRace.kamael, kamael_f_soldier, null, ClassLevel.Second, ClassType.Fighter, null, PlayerClasses.kamael_f_soldier),
    berserker(127, PlayerRace.kamael, trooper, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.kamael_m_soldier),
    m_soul_breaker(128, PlayerRace.kamael, trooper, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.kamael_m_soldier),
    f_soul_breaker(129, PlayerRace.kamael, warder, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.kamael_f_soldier),
    arbalester(130, PlayerRace.kamael, warder, null, ClassLevel.Third, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.kamael_f_soldier),
    doombringer(131, PlayerRace.kamael, berserker, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.kamael_m_soldier),
    m_soul_hound(132, PlayerRace.kamael, m_soul_breaker, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.kamael_m_soldier),
    f_soul_hound(133, PlayerRace.kamael, f_soul_breaker, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Warrior, PlayerClasses.kamael_f_soldier),
    trickster(134, PlayerRace.kamael, arbalester, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Rogue, PlayerClasses.kamael_f_soldier),
    inspector(135, PlayerRace.kamael, trooper, warder, ClassLevel.Third, ClassType.Fighter, ClassType2.Enchanter, PlayerClasses.kamael_m_soldier), //Aditional
    judicator(136, PlayerRace.kamael, inspector, null, ClassLevel.Fourth, ClassType.Fighter, ClassType2.Enchanter, PlayerClasses.kamael_f_soldier); //Aditional

    public static final ClassId[] VALUES = values();

    /**
     * The Identifier of the Class<?>
     */
    private final int _id;

    /**
     * The Race object of the class
     */
    private final PlayerRace _race;

    /**
     * The parent ClassId for male or null if this class is a root
     */
    private final ClassId _parent;

    /**
     * The parent2 ClassId for female or null if parent2 class is parent
     */
    private final ClassId _parent2;

    private final ClassType2 _type2;

    private final ClassType _type;

    private final ClassLevel _level;

    private final PlayerClasses _playerClasses;

    /**
     * Constructor<?> of ClassId.<BR><BR>
     */
    ClassId(final int id, final PlayerRace race, final ClassId parent, final ClassId parent2, final ClassLevel level, final ClassType type, final ClassType2 classType2, final PlayerClasses playerClasses) {
        _id = id;
        _race = race;
        _parent = parent;
        _parent2 = parent2;
        _level = level;
        _type = type;
        _type2 = classType2;
        _playerClasses = playerClasses;
    }

    /**
     * Return the Identifier of the Class.<BR><BR>
     */
    public final int getId() {
        return _id;
    }

    /**
     * Return True if the class is a mage class.<BR><BR>
     */
    public final boolean isMage() {
        return _type.isMagician();
    }

    /**
     * Return the Race object of the class.<BR><BR>
     */
    public final PlayerRace getRace() {
        return _race;
    }

    public final boolean isOfRace(PlayerRace race) {
        return _race == race;
    }

    /**
     * Return True if this Class<?> is a child of the selected ClassId.<BR><BR>
     *
     * @param cid The parent ClassId to check
     */
    public final boolean childOf(final ClassId cid) {
        if (_parent == null) {
            return false;
        }

        if (_parent == cid || _parent2 == cid) {
            return true;
        }

        return _parent.childOf(cid);

    }

    /**
     * Return True if this Class<?> is equal to the selected ClassId or a child of the selected ClassId.<BR><BR>
     *
     * @param cid The parent ClassId to check
     */
    public final boolean equalsOrChildOf(final ClassId cid) {
        return this == cid || childOf(cid);
    }

    /**
     * Return the child level of this Class<?> (0=root, 1=child leve 1...).<BR><BR>
     *
     * @param cid The parent ClassId to check
     */
    public final int level() {
        if (_parent == null) {
            return 0;
        }

        return 1 + _parent.level();
    }

    public final ClassId getParent(final int sex) {
        return sex == 0 || _parent2 == null ? _parent : _parent2;
    }

    public final ClassLevel getLevel() {
        return _level;
    }

    public final boolean isOfLevel(ClassLevel level) {
        return _level == level;
    }

    public ClassType2 getType2() {
        return _type2;
    }

    public ClassType getType() {
        return _type;
    }

    public PlayerClasses getPlayerClasses() {
        return _playerClasses;
    }

    public final boolean isOfType(ClassType type) {
        return _type == type;
    }
}
 
Я конечно все понимаю, форум нужен в том числе, чтобы помогать решать проблемы, но !st.getPlayerClassComponent().getClassId().(ClassId.orc)



Зачем вы полезли править исходники, если не обладаете даже элементарными навыками программирования на любом языке?
st.getPlayerClassComponent().getClassId() != ClassId.orc_mage
 
Реакции: kick
Спасибо всем за помощь конечно, благодарен в этом плане. В первом посте в начале этой темы, написал что только учусь, и как бы сильно не ругали. По этому и залез в код, чтоб хотя бы чему то научиться.

И к чему это агрессия? Нет не в блокноте, может просто я что то упустил. По этому и прошу помочь, дабы чтоб было ясно. И не задавать таких больше тупых вопросов.

Вот скажите откуда там "orc"?

Я пробовал и orc_mage, как и писали ранее, перепробовал разное, работаю с ла2 вообще в первый раз.
 
я чето в курить не могу зачем тебе класс маг-орг нужен если тебе надо только общий классов магов то и есть
st.getPlayerClassComponent().getClassId().isMage()
 
Статус
В этой теме нельзя размещать новые ответы.