Skip to content

[help]java code

Featured Replies

boolean unstuckActive = false;

 

        for (L2Effect effect : activeChar.getAllEffects())

     

        {

     

        switch (effect.getEffectType())

     

        {

 

        case unstuck:

     

        {

       

        unstuckActive = true;

     

        break;

       

        }

       

        }

       

        if (unstuckActive)

       

        {

       

        SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_CANT_RESTART_WHILE_UNSTUCKING);

       

        activeChar.sendPacket(sm);

       

        activeChar.sendPacket(ActionFailed.STATIC_PACKET);

       

        return false;

       

        }

       

        }

       

 

 

dn mporeis na kaneis rr otan kaneis soe...

 

eimai new kai 8a i8ela na mou peite an to exw kanei swsta... thx :P

gt den to kaneis para poli apla sto requestrestart.java kai na valeis

 

if (activeChar.isCastingNow())
{
activeChar.sendMessage("You cant restart while using skills");
return;
}

 

 

Doulevei afou sto castingnow ine kai i methodos ton soe klp

gt den to kaneis para poli apla sto requestrestart.java kai na valeis

 

if (activeChar.isCastingNow())
{
activeChar.sendMessage("You cant restart while using skills");
return;
}

 

 

Doulevei afou sto castingnow ine kai i methodos ton soe klp

Create an account or sign in to comment

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.