Skip to content

illegal start of expression

Featured Replies

hi, i am trying to change L2character.java, but when i wanna compile it i get this error

 

C:\DOCUME~1\Giovani\Desktop\L2Character3.java:74: illegal start of expression

       static class _cls2

 

here is the code

 

public void doCast(L2Skill skill)

   {

       if(skill == null)

       {

           getAI().notifyEvent(CtrlEvent.EVT_CANCEL);

           return;

       }

       if(isSkillDisabled(skill.getId()))

       {

           if(this instanceof L2PcInstance)

           {

               SystemMessage sm = new SystemMessage(SystemMessageId.S1_PREPARED_FOR_REUSE);

               sm.addSkillName(skill.getId(), skill.getLevel());

               sendPacket(sm);

           }

           return;

       }

       if(getStatus().getCurrentMp() < (double)(getStat().getMpConsume(skill) + getStat().getMpInitialConsume(skill)))

       {

           if(this instanceof L2PcInstance)

           {

               sendPacket(new SystemMessage(SystemMessageId.NOT_ENOUGH_MP));

               sendPacket(ActionFailed.STATIC_PACKET);

           }

           return;

       }

       if(getStatus().getCurrentHp() <= (double)skill.getHpConsume())

       {

           if(this instanceof L2PcInstance)

           {

               sendPacket(new SystemMessage(SystemMessageId.NOT_ENOUGH_HP));

               sendPacket(ActionFailed.STATIC_PACKET);

           }

           return;

       }

       static class _cls2

       {

 

           static final int $SwitchMap$net$sf$l2j$gameserver$model$L2Skill$SkillType[];

           static final int $SwitchMap$net$sf$l2j$gameserver$model$L2Skill$SkillTargetType[];

 

           static

           {

               $SwitchMap$net$sf$l2j$gameserver$model$L2Skill$SkillTargetType = new int[L2Skill.SkillTargetType.values().length];

               try

               {

                   $SwitchMap$net$sf$l2j$gameserver$model$L2Skill$SkillTargetType[L2Skill.SkillTargetType.TARGET_SELF.ordinal()] = 1;

               }

               catch(NoSuchFieldError ex) { }

               try

               {

                   $SwitchMap$net$sf$l2j$gameserver$model$L2Skill$SkillTargetType[L2Skill.SkillTargetType.TARGET_PET.ordinal()] = 2;

               }

               catch(NoSuchFieldError ex) { }

           }

       }

 

       switch(_cls2..SwitchMap.net.sf.l2j.gameserver.model.L2Skill.SkillType[skill.getSkillType().ordinal()])

 

can someone help me??

 

(i cut part of code because its to large)

delete the $ symbols

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.