Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.Die


  {
    super.onSpawn();
    setCurrentHp(0, false);
    setDead(true);
    broadcastStatusUpdate();
    broadcastPacket(new Die(this));
    setWalking();
  }
View Full Code Here


    if(actor != null)
    {
      actor.abortAttack(true, true);
      actor.abortCast(true);
      actor.stopMove();
      actor.broadcastPacket(new Die(actor));
    }
    setIntention(CtrlIntention.AI_INTENTION_IDLE);
  }
View Full Code Here

        packets.add(new RecipeShopMsg(activeChar));
      }
    }
    if(activeChar.isDead())
    {
      packets.add(new Die(activeChar));
    }
    sendPackets(packets);
    packets.clear();
    activeChar.unsetVar("offline");
    // на всякий случай
View Full Code Here

        dropMod *= 0;
        Functions.npcSay(actor, "Ouch, if I had died like this, you could obtain nothing!");
        Functions.npcSay(actor, "The news about my death shouldn't spread, oh!");
        break;
    }
    actor.broadcastPacket(new Die(actor));
    setIntention(AI_INTENTION_IDLE);
    if(dropMod > 0)
    {
      if(_polimorphTask != null)
      {
View Full Code Here

          {
            isInDefense = true;
          }
          if((clan == null || clan.getHasCastle() == 0) && !isInDefense)
          {
            sendPacket(Msg.ActionFail, new Die(activeChar));
            return;
          }
          Castle castle = activeChar.getCastle();
          loc = MapRegion.getTeleToCastle(activeChar);
          if(castle.getFunction(ResidenceFunction.RESTORE_EXP) != null)
          {
            activeChar.restoreExp(castle.getFunction(ResidenceFunction.RESTORE_EXP).getLevel());
          }
          break;
        case TO_FORTRESS:
          isInDefense = false;
          if(siege != null && siege.checkIsDefender(clan))
          {
            isInDefense = true;
          }
          if((clan == null || clan.getHasFortress() == 0) && !isInDefense)
          {
            sendPacket(Msg.ActionFail, new Die(activeChar));
            return;
          }
          Fortress fort = activeChar.getFortress();
          loc = MapRegion.getTeleToFortress(activeChar);
          if(fort.getFunction(ResidenceFunction.RESTORE_EXP) != null)
          {
            activeChar.restoreExp(fort.getFunction(ResidenceFunction.RESTORE_EXP).getLevel());
          }
          break;
        case TO_SIEGEHQ:
          SiegeClan siegeClan = null;
          if(siege != null)
          {
            siegeClan = siege.getAttackerClan(clan);
          }
          else if(TerritorySiege.checkIfInZone(activeChar))
          {
            siegeClan = TerritorySiege.getSiegeClan(clan);
          }
          if(siegeClan == null || siegeClan.getHeadquarter() == null)
          {
            sendPacket(Msg.IF_A_BASE_CAMP_DOES_NOT_EXIST_RESURRECTION_IS_NOT_POSSIBLE, new Die(activeChar));
            return;
          }
          loc = MapRegion.getTeleToHeadquarter(activeChar);
          break;
        case AGATHION:
View Full Code Here

TOP

Related Classes of l2p.gameserver.serverpackets.Die

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.