Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.Revive


       Iterator<String> it = linked.iterator();
       while(it.hasNext()){
           try{L2PcInstance character = L2World.getInstance().getPlayer(it.next().toString());
           character.setCurrentHpMp(character.getMaxHp(), character.getMaxMp());
           character.setCurrentCp(character.getMaxCp());
           Revive revive = new Revive(character);
           SocialAction sa = new SocialAction(character.getObjectId(), 15);
           character.broadcastPacket(sa);
           character.sendPacket(sa);
           character.sendPacket(revive);
           character.broadcastPacket(revive);}catch(Exception e){}
View Full Code Here


    //activeChar.sendPacket(sm2);

    if (activeChar.isFakeDeath())
    {
      activeChar.stopFakeDeath(null);
      activeChar.broadcastPacket(new Revive(activeChar));
      return;
    }
    else if(!activeChar.isAlikeDead())
    {
      _log.warning("Living player ["+activeChar.getName()+"] called RestartPointPacket! Ban this player!");
View Full Code Here

      _status.setCurrentCp(getMaxCp() * Config.RESPAWN_RESTORE_CP);
      _status.setCurrentHp(getMaxHp() * Config.RESPAWN_RESTORE_HP);
      // _Status.setCurrentMp(getMaxMp() * Config.RESPAWN_RESTORE_MP);
     
      // Start broadcast status
      broadcastPacket(new Revive(this));
      if (getWorldRegion() != null)
      {
        getWorldRegion().onRevive(this);
      }
    }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.serverpackets.Revive

Copyright © 2018 www.massapicom. 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.