Examples of Die


Examples of l2p.gameserver.serverpackets.Die

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

Examples of l2p.gameserver.serverpackets.Die

        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

Examples of l2p.gameserver.serverpackets.Die

          {
            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

Examples of lineage2.gameserver.network.serverpackets.Die

        sendPacket(new RecipeShopMsg(activeChar));
      }
    }
    if (activeChar.isDead())
    {
      sendPacket(new Die(activeChar));
    }
    activeChar.unsetVar("offline");
    activeChar.sendActionFailed();
    if (first && activeChar.isGM() && Config.SAVE_GM_EFFECTS && activeChar.getPlayerAccess().CanUseGMCommand)
    {
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.Die

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

Examples of lineage2.gameserver.network.serverpackets.Die

        {
          activeChar.doRevive(100);
        }
        else
        {
          activeChar.sendPacket(ActionFail.STATIC, new Die(activeChar));
        }
        break;
      case FIXED:
        if (activeChar.getPlayerAccess().ResurectFixed)
        {
          activeChar.doRevive(100);
        }
        else if (ItemFunctions.removeItem(activeChar, 13300, 1, true) == 1)
        {
          activeChar.sendPacket(SystemMsg.YOU_HAVE_USED_THE_FEATHER_OF_BLESSING_TO_RESURRECT);
          activeChar.doRevive(100);
        }
        else if (ItemFunctions.removeItem(activeChar, 10649, 1, true) == 1)
        {
          activeChar.sendPacket(SystemMsg.YOU_HAVE_USED_THE_FEATHER_OF_BLESSING_TO_RESURRECT);
          activeChar.doRevive(100);
        }
        else
        {
          activeChar.sendPacket(ActionFail.STATIC, new Die(activeChar));
        }
        break;
      default:
        Location loc = null;
        Reflection ref = activeChar.getReflection();
        if (ref == ReflectionManager.DEFAULT)
        {
          for (GlobalEvent e : activeChar.getEvents())
          {
            loc = e.getRestartLoc(activeChar, _restartType);
          }
        }
        if (loc == null)
        {
          loc = defaultLoc(_restartType, activeChar);
        }
        if (loc != null)
        {
          Pair<Integer, OnAnswerListener> ask = activeChar.getAskListener(false);
          if ((ask != null) && (ask.getValue() instanceof ReviveAnswerListener) && !((ReviveAnswerListener) ask.getValue()).isForPet())
          {
            activeChar.getAskListener(true);
          }
          activeChar.setPendingRevive(true);
          activeChar.teleToLocation(loc, ReflectionManager.DEFAULT);
        }
        else
        {
          activeChar.sendPacket(ActionFail.STATIC, new Die(activeChar));
        }
        break;
    }
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.Die

  @Override
  protected void onSpawn()
  {
    super.onSpawn();
    setCurrentHp(0, false);
    broadcastPacket(new Die(this));
    setWalking();
  }
View Full Code Here

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

        }

    if (activeChar.isAlikeDead())
    {
      // no broadcast needed since the player will already spawn dead to others
      sendPacket(new Die(activeChar));
    }

    if (Config.ALLOW_WATER)
        activeChar.checkWaterState();
View Full Code Here

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

     *
     */
    protected void clientNotifyDead()
    {
        // Send a Server->Client packet Die to the actor and all L2PcInstance in its _knownPlayers
        Die msg = new Die(_actor);
        _actor.broadcastPacket(msg);

        // Init AI
        _intention = AI_INTENTION_IDLE;
        _target = null;
View Full Code Here

Examples of org.eclipse.jgit.pgm.Die

        return new CassandraRepositoryBuilder() //
            .setDatabase(connect(gitdir)) //
            .setURI(gitdir) //
            .build();
      } catch (URISyntaxException e) {
        throw new Die("Invalid URI " + gitdir);
      }
    }
    return super.openGitDir(gitdir);
  }
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.