Ir para conteúdo
Fórum Script Brasil
  • 0

Ajuda - illegal start of expression


VelhoJack

Pergunta

Pessoal, Boa Tarde!

Estou tentando compilar um codigo e recebo essa mensagem de erro abaixo, mas não tenho idéia do que pode estar errado no código.

Estou na verdade aprendendo a compilar.

Então ao tentar compilar recebo essa mensagem de erro:

C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:82: illegal start of expression
        static class _cls1
        ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: malformed floating point literal
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                        ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                          ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                   ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                    ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                       ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                        ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                          ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                           ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                              ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                         ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                          ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                    ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                     ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                                ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                                   ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                                    ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                                           ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                                            ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                                             ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:113: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
                                                                                              ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:114: case, default, or '}' expected
            {
            ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: malformed floating point literal
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                        ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                          ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                   ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                    ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                       ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                        ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                          ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                           ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                              ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                         ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                          ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                    ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                     ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                                ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                                      ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                                       ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                                              ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                                                ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:228: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
                                                                                                 ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:229: case, default, or '}' expected
            {
            ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: malformed floating point literal
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                        ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                          ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                   ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                    ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                       ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                        ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                          ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                           ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                              ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                         ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                          ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                    ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                     ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                                ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                                       ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                                        ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                                               ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                                                ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                                                 ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:249: case, default, or '}' expected
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
                                                                                                  ^
C:\projeto\libs\DESCOM~1\core-gs\net\sf\l2j\GAMESE~1\model\actor\instance\L2ClassMasterInstance.java:250: case, default, or '}' expected
            {
            ^
76 errors
O Codigo do arquivo é esse:
// Decompiled by DJ v3.11.11.95 Copyright 2009 Atanas Neshkov  Date: 6/5/2011 11:56:16
// Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   L2ClassMasterInstance.java

package net.sf.l2j.gameserver.model.actor.instance;

import java.util.Map;
import javolution.text.TextBuilder;
import javolution.util.FastMap;
import net.sf.l2j.Config;
import net.sf.l2j.gameserver.ai.CtrlIntention;
import net.sf.l2j.gameserver.ai.L2CharacterAI;
import net.sf.l2j.gameserver.cache.Static;
import net.sf.l2j.gameserver.datatables.*;
import net.sf.l2j.gameserver.model.*;
import net.sf.l2j.gameserver.model.base.*;
import net.sf.l2j.gameserver.network.serverpackets.*;
import net.sf.l2j.gameserver.templates.L2Item;
import net.sf.l2j.gameserver.templates.L2NpcTemplate;
import net.sf.l2j.util.Log;

// Referenced classes of package net.sf.l2j.gameserver.model.actor.instance:
//            L2FolkInstance, L2PcInstance

public final class L2ClassMasterInstance extends L2FolkInstance
{

    public L2ClassMasterInstance(int objectId, L2NpcTemplate template)
    {
        super(objectId, template);
        CLAN_COIN = Config.MCLAN_COIN;
        CLAN_COIN_NAME = Config.MCLAN_COIN_NAME;
        CLAN_LVL6 = Config.CLAN_LVL6;
        CLAN_LVL7 = Config.CLAN_LVL7;
        CLAN_LVL8 = Config.CLAN_LVL8;
    }

    public void onAction(L2PcInstance player)
    {
        if(!canTarget(player))
            return;
        if(player.isCursedWeaponEquiped())
        {
            player.sendActionFailed();
            return;
        }
        if(getObjectId() != player.getTargetId())
        {
            player.setTarget(this);
            player.sendPacket(new MyTargetSelected(getObjectId(), 0));
            player.sendPacket(new ValidateLocation(this));
        } else
        {
            if(!canInteract(player))
            {
                player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);
                return;
            }
            NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
            TextBuilder sb = new TextBuilder();
            sb.append((new StringBuilder()).append("<html><body><center><img src=\"sek.cbui355\" width=200 height=2><br><font color=LEVEL>").append(Config.MASTER_NPCNAME).append("</font><br><br><img src=\"sek.cbui355\" width=260 height=2></center><table width=280 height=190>").toString());
            sb.append((new StringBuilder()).append("<tr><td><center><a action=\"bypass -h npc_").append(getObjectId()).append("_class_master\">texto1</a></center></td></tr>").toString());
            if(Config.ALLOW_CLAN_LEVEL)
                sb.append((new StringBuilder()).append("<tr><td><center><a action=\"bypass -h npc_").append(getObjectId()).append("_clan_level\">texto2</a></center></td></tr>").toString());
            sb.append("</table><br><center><img src=\"sek.cbui355\" width=260 height=2></center></body></html>");
            html.setHtml(sb.toString());
            sb.clear();
            sb = null;
            player.sendPacket(html);
        }
        player.sendActionFailed();
    }

    public String getHtmlPath(int npcId, int val)
    {
        return (new StringBuilder()).append("data/html/classmaster/").append(val).append(".htm").toString();
    }

    public void onBypassFeedback(L2PcInstance player, String command)
    {
        static class _cls1
        {
            static final int $SwitchMap$net$sf$l2j$gameserver$model$base$ClassLevel[];

            static 
            {
                $SwitchMap$net$sf$l2j$gameserver$model$base$ClassLevel = new int[ClassLevel.values().length];
                try
                {
                    $SwitchMap$net$sf$l2j$gameserver$model$base$ClassLevel[ClassLevel.First.ordinal()] = 1;
                }
                catch(NoSuchFieldError ex) { }
                try
                {
                    $SwitchMap$net$sf$l2j$gameserver$model$base$ClassLevel[ClassLevel.Second.ordinal()] = 2;
                }
                catch(NoSuchFieldError ex) { }
                try
                {
                    $SwitchMap$net$sf$l2j$gameserver$model$base$ClassLevel[ClassLevel.Third.ordinal()] = 3;
                }
                catch(NoSuchFieldError ex) { }
            }
        }

        if(command.equalsIgnoreCase("class_master"))
        {
            ClassId classId = player.getClassId();
            int jobLevel = 0;
            int level = player.getLevel();
            ClassLevel lvl = PlayerClass.values()[classId.getId()].getLevel();
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvl.ordinal()])
            {
            case 1: // '01'
                jobLevel = 1;
                break;

            case 2: // '02'
                jobLevel = 2;
                break;

            default:
                jobLevel = 3;
                break;
            }
            if(!Config.ALLOW_CLASS_MASTERS)
                jobLevel = 3;
            if((level >= 20 && jobLevel == 1 || level >= 40 && jobLevel == 2) && Config.ALLOW_CLASS_MASTERS)
                showChatWindow(player, classId.getId());
            else
            if(level >= 76 && Config.ALLOW_CLASS_MASTERS && classId.getId() < 88)
            {
                int i = 0;
                do
                {
                    if(i >= SECONDN_CLASS_IDS.length)
                        break;
                    if(classId.getId() == SECONDN_CLASS_IDS[i])
                    {
                        NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
                        TextBuilder sb = new TextBuilder();
                        sb.append("<html><body><table width=200>");
                        sb.append("<tr><td><br></td></tr>");
                        sb.append((new StringBuilder()).append("<tr><td><a action=\"bypass -h npc_").append(getObjectId()).append("_change_class ").append(88 + i).append("\">texto3 ").append(CharTemplateTable.getClassNameById(88 + i)).append("</a></td></tr>").toString());
                        sb.append("<tr><td><br></td></tr>");
                        sb.append("</table></body></html>");
                        html.setHtml(sb.toString());
                        sb.clear();
                        sb = null;
                        player.sendPacket(html);
                        break;
                    }
                    i++;
                } while(true);
            } else
            {
                NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
                TextBuilder sb = new TextBuilder();
                sb.append("<html><body>");
                switch(jobLevel)
                {
                case 1: // '01'
                    sb.append("texto4.<br>");
                    break;

                case 2: // '02'
                    sb.append("texto5.<br>");
                    break;

                case 3: // '03'
                    sb.append("texto6.<br>");
                    break;
                }
                sb.append("</body></html>");
                html.setHtml(sb.toString());
                sb.clear();
                sb = null;
                player.sendPacket(html);
            }
        } else
        if(command.equalsIgnoreCase("clan_level"))
        {
            if(!player.isClanLeader())
            {
                player.sendPacket(Static.WAR_NOT_LEADER);
                return;
            }
            if(player.getClan().getLevel() < 5)
            {
                player.sendPacket(Static.CLAN_5LVL_HIGHER);
                return;
            }
            L2Clan clan = player.getClan();
            int level = clan.getLevel();
            NpcHtmlMessage reply = new NpcHtmlMessage(getObjectId());
            TextBuilder replyMSG = new TextBuilder("<html><body>");
            replyMSG.append("texto7:<br1>");
            if(level < 8)
                switch(level)
                {
                case 5: // '05'
                    replyMSG.append((new StringBuilder()).append("<a action=\"bypass -h npc_").append(getObjectId()).append("_clanLevel_6\">6 texto8</a> (").append(CLAN_LVL6).append(" ").append(CLAN_COIN_NAME).append(")<br>").toString());
                    break;

                case 6: // '06'
                    replyMSG.append((new StringBuilder()).append("<a action=\"bypass -h npc_").append(getObjectId()).append("_clanLevel_7\">7 texto9.</a> (").append(CLAN_LVL7).append(" ").append(CLAN_COIN_NAME).append(")<br>").toString());
                    break;

                case 7: // '07'
                    replyMSG.append((new StringBuilder()).append("<a action=\"bypass -h npc_").append(getObjectId()).append("_clanLevel_8\">8 texto10.</a> (").append(CLAN_LVL8).append(" ").append(CLAN_COIN_NAME).append(")<br>").toString());
                    break;
                }
            else
                replyMSG.append("<font color=66CC00>texto11!</font><br>");
            replyMSG.append("</body></html>");
            reply.setHtml(replyMSG.toString());
            player.sendPacket(reply);
        } else
        if(command.startsWith("change_class"))
        {
            int val = Integer.parseInt(command.substring(13));
            ClassId classId = player.getClassId();
            int level = player.getLevel();
            int jobLevel = 0;
            int newJobLevel = 0;
            ClassLevel lvlnow = PlayerClass.values()[classId.getId()].getLevel();
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnow.ordinal()])
            {
            case 1: // '01'
                jobLevel = 1;
                break;

            case 2: // '02'
                jobLevel = 2;
                break;

            case 3: // '03'
                jobLevel = 3;
                break;

            default:
                jobLevel = 4;
                break;
            }
            if(jobLevel == 4)
                return;
            ClassLevel lvlnext = PlayerClass.values()[val].getLevel();
            switch(_cls1..SwitchMap.net.sf.l2j.gameserver.model.base.ClassLevel[lvlnext.ordinal()])
            {
            case 1: // '01'
                newJobLevel = 1;
                break;

            case 2: // '02'
                newJobLevel = 2;
                break;

            case 3: // '03'
                newJobLevel = 3;
                break;

            default:
                newJobLevel = 4;
                break;
            }
            if(newJobLevel != jobLevel + 1)
                return;
            if(level < 20 && newJobLevel > 1)
                return;
            if(level < 40 && newJobLevel > 2)
                return;
            if(level < 75 && newJobLevel > 3)
                return;
            net.sf.l2j.Config.EventReward pay = (net.sf.l2j.Config.EventReward)Config.CLASS_MASTERS_PRICES.get(Integer.valueOf(newJobLevel));
            if(pay != null)
            {
                if(player.getItemCount(pay.id) < pay.count)
                {
                    player.sendHtmlMessage("Class Master", (new StringBuilder()).append("Ctexto12 ").append(pay.count).append(" ").append(ItemTable.getInstance().getTemplate(pay.id).getName()).append("!").toString());
                    return;
                }
                player.destroyItemByItemId("clasmaster", pay.id, pay.count, player, true);
            }
            changeClass(player, val);
            player.checkAllowedSkills();
            if(val >= 88)
                player.sendPacket(Static.THIRD_CLASS_TRANSFER);
            else
                player.sendPacket(Static.CLASS_TRANSFER);
            NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
            TextBuilder sb = new TextBuilder();
            sb.append("<html><body>");
            sb.append((new StringBuilder()).append("texto13 <font color=\"LEVEL\">").append(CharTemplateTable.getClassNameById(player.getClassId().getId())).append("</font>.").toString());
            if(Config.REWARD_SHADOW)
            {
                player.setShadeItems(true);
                if(newJobLevel == 3 && level >= 40)
                {
                    sb.append("<br>texto14:<br>");
                    sb.append((new StringBuilder()).append("<table width=300><tr><td><a action=\"bypass -h npc_").append(getObjectId()).append("_getArmor 1\">Avadon Robe Set</a><br1><font color=666666>//P. Def. +5.26% and Casting Spd. +15%.</font></td></tr>").toString());
                    sb.append((new StringBuilder()).append("<tr><td><a action=\"bypass -h npc_").append(getObjectId()).append("_getArmor 2\">Leather Armor of Doom</a><br1><font color=666666>//P. Atk. +2.7%, MP recovery rate +2.5%, STR -1, CON -2, DEX +3.</font></td></tr>").toString());
                    sb.append((new StringBuilder()).append("<tr><td><a action=\"bypass -h npc_").append(getObjectId()).append("_getArmor 3\">Doom Plate Armor</a><br1><font color=666666>//Maximum HP +320, Breath Gauge increase, STR-3, and CON+3.</font></td></tr>").toString());
                    sb.append((new StringBuilder()).append("<tr><td><a action=\"bypass -h npc_").append(getObjectId()).append("_getArmor 4\">Blue Wolf Breastplate</a><br1><font color=666666>//Speed +7, and HP recovery rate +5.24%, STR+3, CON-1, and DEX-2.</font></td></tr></table><br>").toString());
                }
                if(val >= 88)
                {
                    sb.append((new StringBuilder()).append("<table width=300><tr><td><a action=\"bypass -h npc_").append(getObjectId()).append("_getArmor 5\">Robe Flame Armor</a><br1><font color=666666>//CP + 177, MP + 400, C.Spd 15%, M.Atk 15%, M.Def/P.Def 4%.</font></td></tr>").toString());
                    sb.append((new StringBuilder()).append("<tr><td><a action=\"bypass -h npc_").append(getObjectId()).append("_getArmor 6\">Light Flame Armor</a><br1><font color=666666>//CP + 195, HP/MP + 200, Crit.Dmg 25%, Atk.Spd 10% M.Def/P.Def 8%.</font></td></tr>").toString());
                    sb.append((new StringBuilder()).append("<tr><td><a action=\"bypass -h npc_").append(getObjectId()).append("_getArmor 7\">Heavy Flame Armor</a><br1><font color=666666>//CP + 232, HP + 400, Atk.Dmg 15%, Atk.Spd 15%, M.Def/P.Def 12%.</font></td></tr></table><br>").toString());
                }
            }
            sb.append("</body></html>");
            html.setHtml(sb.toString());
            sb.clear();
            sb = null;
            player.sendPacket(html);
        } else
        if(command.startsWith("clanLevel_"))
        {
            int level = Integer.parseInt(command.substring(10).trim());
            clanSetLevel(player, level);
        } else
        if(command.startsWith("getArmor"))
        {
            int val = Integer.parseInt(command.substring(9));
            if(player.getShadeItems())
                return;
            player.setShadeItems(false);
            Inventory inventory = player.getInventory();
            int shadowSet[] = CustomServerData.getInstance().getShadeItems(val);
            for(int i = 0; i < shadowSet.length; i++)
            {
                L2ItemInstance item = ItemTable.getInstance().createItem("China3", shadowSet[i], 1, player, null);
                if(val < 5)
                {
                    item.setEnchantLevel(30);
                } else
                {
                    item.setEnchantLevel(37);
                    item.setMana(180);
                }
                inventory.addItem("China3", item, player, null);
                inventory.equipItemAndRecord(item);
                item.decreaseMana(true);
            }

            if(val >= 5)
                player.addItem("China3", 50009, 1, player, true);
            player.sendItems(true);
        } else
        {
            super.onBypassFeedback(player, command);
        }
    }

    private void clanSetLevel(L2PcInstance player, int level)
    {
        if(CLAN_COIN > 0)
        {
            int price = 0x1869f;
            switch(level)
            {
            case 6: // '06'
                price = CLAN_LVL6;
                break;

            case 7: // '07'
                price = CLAN_LVL7;
                break;

            case 8: // '\b'
                price = CLAN_LVL8;
                break;
            }
            L2ItemInstance coin = player.getInventory().getItemByItemId(CLAN_COIN);
            if(coin == null || coin.getCount() < price)
            {
                player.sendMessage("texto15");
                return;
            }
            if(!player.destroyItemByItemId("DS clanSetLevel", CLAN_COIN, price, player, true))
            {
                player.sendMessage("texto16");
                return;
            }
            Log.addDonate(player, (new StringBuilder()).append("Clan Level: ").append(level).toString(), price);
        }
        player.getClan().changeLevel(level);
        player.sendMessage((new StringBuilder()).append("texto17 ").append(level).toString());
    }

    private void changeClass(L2PcInstance player, int val)
    {
        player.abortAttack();
        player.abortCast();
        player.setIsParalyzed(true);
        try
        {
            Thread.sleep(100L);
        }
        catch(InterruptedException e) { }
        player.setClassId(val);
        if(player.isSubClassActive())
            ((SubClass)player.getSubClasses().get(Integer.valueOf(player.getClassIndex()))).setClassId(player.getActiveClass());
        else
            player.setBaseClass(player.getActiveClass());
        player.rewardSkills();
        player.store();
        player.broadcastUserInfo();
        player.setIsParalyzed(false);
    }

    private static final int SECONDN_CLASS_IDS[] = {
        2, 3, 5, 6, 9, 8, 12, 13, 14, 16, 
        17, 20, 21, 23, 24, 27, 28, 30, 33, 34, 
        36, 37, 40, 41, 43, 46, 48, 51, 52, 55, 
        57
    };
    private final int CLAN_COIN;
    private final String CLAN_COIN_NAME;
    private final int CLAN_LVL6;
    private final int CLAN_LVL7;
    private final int CLAN_LVL8;

}

Desde já agradeço.

Editado por VelhoJack
Link para o comentário
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,3k
    • Posts
      652,4k
×
×
  • Criar Novo...