Examples of stopSleeping()

  • net.sf.l2j.gameserver.model.L2Character.stopSleeping()
    Stop a specified/all Sleep abnormal L2Effect.

    Actions :

  • Delete a specified/all (if effect=null) Sleep abnormal L2Effect from L2Character and update client magic icone
  • Set the abnormal effect flag _sleeping to False
  • Notify the L2Character AI
  • Send Server->Client UserInfo/CharInfo packet


  • @param effect the effect

    Examples of com.l2jfrozen.gameserver.model.L2Character.stopSleeping()

            double mp = (damage > target.getCurrentMp() ? target.getCurrentMp() : damage);
            target.reduceCurrentMp(mp);

            if(damage > 0)
              if(target.isSleeping())
                target.stopSleeping(null);

            StatusUpdate sump = new StatusUpdate(target.getObjectId());
            sump.addAttribute(StatusUpdate.CUR_MP, (int) target.getCurrentMp());
            target.sendPacket(sump);
            sump = null;
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.L2Character.stopSleeping()

            double damage = Formulas.getInstance().calcManaDam(activeChar, target, skill, ss, bss);

            double mp = ( damage > target.getCurrentMp() ? target.getCurrentMp() : damage);
            target.reduceCurrentMp(mp);
            if (damage > 0)
              if (target.isSleeping()) target.stopSleeping(null);

            StatusUpdate sump = new StatusUpdate(target.getObjectId());
            sump.addAttribute(StatusUpdate.CUR_MP, (int) target.getCurrentMp());
            // [L2J_JP EDIT START - TSL]
            target.sendPacket(sump);
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.