Jump to content
  • 0

illegal start of expression


Question

Posted

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)

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...