Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.Revive


        if(Config.RESPAWN_RESTORE_MP >= 0)
        {
          setCurrentMp(getMaxMp() * Config.RESPAWN_RESTORE_MP);
        }
      }
      broadcastPacket(new Revive(this));
    }
    else
    {
      setIsPendingRevive(true);
    }
View Full Code Here


    if(_fakeDeath)
    {
      _fakeDeath = false;
      broadcastPacket(new ChangeWaitType(this, ChangeWaitType.WT_STOP_FAKEDEATH));
      updateAbnormalEffect();
      broadcastPacket(new Revive(this));
    }
  }
View Full Code Here

            else
            {
              DecayTaskManager.getInstance().cancelDecayTask(character);
            }
            character.broadcastPacket(new SocialAction(character.getObjectId(), SocialAction.LEVEL_UP));
            character.broadcastPacket(new Revive(character));
            character.doRevive();
          }
          activeChar.sendMessage("Resurrected within " + radius + " unit radius.");
          return;
        }
        catch(NumberFormatException e)
        {
          activeChar.sendMessage("Enter valid player name or radius");
          return;
        }
      }
    }
    if(obj == null)
    {
      obj = activeChar;
    }
    if(obj.isCharacter())
    {
      L2Character target = (L2Character) obj;
      if(!target.isDead())
      {
        return;
      }
      target.setCurrentHpMp(target.getMaxHp(), target.getMaxMp(), true);
      target.setCurrentCp(target.getMaxCp());
      // GM Resurrection will restore any lost exp
      if(target.isPlayer())
      {
        L2Player deadplayer = (L2Player) target;
        deadplayer.restoreExp();
      }
      target.broadcastPacket(new SocialAction(target.getObjectId(), 15));
      target.broadcastPacket(new Revive(target));
      target.doRevive();
    }
    else
    {
      activeChar.sendPacket(Msg.INVALID_TARGET);
View Full Code Here

      player.setCurrentCp(player.getMaxCp());
      player.setCurrentMp(player.getMaxMp());
      if(player.isDead())
      {
        player.setCurrentHp(player.getMaxHp(), true);
        player.broadcastPacket(new Revive(player));
      }
      else
      {
        player.setCurrentHp(player.getMaxHp(), false);
      }
View Full Code Here

      if(player != null)
      {
        player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp(), true);
        player.setCurrentCp(player.getMaxCp());
        player.restoreExp();
        player.broadcastPacket(new Revive(player));
      }
    }
    for(L2Player player : team2_live_list)
    {
      if(player != null)
      {
        player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp(), true);
        player.setCurrentCp(player.getMaxCp());
        player.restoreExp();
        player.broadcastPacket(new Revive(player));
      }
    }
  }
View Full Code Here

TOP

Related Classes of l2p.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.