Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.GameObject.sendMessage()


        if(cid.childOf(player.getClassId()) && cid.getClassLevel().ordinal() == player.getClassId().getClassLevel().ordinal() + 1)
          _reqClass = cid.getId();
      }

      if(_reqClass == -1)
        player.sendMessage("Something gone wrong, please contact administrator!");

      player.setClassId(_reqClass, false, false);
      player.broadcastPacket(new MagicSkillUse(player, player, 5103, 1, 1000, 0));
      st.giveItems(ADENA_ID, 5000000);
      st.addExpAndSp(2050000, 0);
View Full Code Here


      spawnEventManagers();
      System.out.println("Event: 'PcCafePointsExchange' started.");
    }
    else
    {
      player.sendMessage("Event 'PcCafePointsExchange' already started.");
    }
    show("admin/events.htm", player);
  }
 
  /**
 
View Full Code Here

      unSpawnEventManagers();
      System.out.println("Event: 'PcCafePointsExchange' stopped.");
    }
    else
    {
      player.sendMessage("Event: 'PcCafePointsExchange' not started.");
    }
    show("admin/events.htm", player);
  }
 
  /**
 
View Full Code Here

     
      if ((tax > 0) && !notax)
      {
        if (castle != null)
        {
          activeChar.sendMessage(new CustomMessage("trade.HavePaidTax", activeChar).addNumber(tax));
          if ((merchant != null) && (merchant.getReflection() == ReflectionManager.DEFAULT))
          {
            castle.addToTreasury(tax, true, false);
          }
        }
View Full Code Here

      }
      if (activeChar.getVarB("gm_invul"))
      {
        activeChar.setIsInvul(true);
        activeChar.startAbnormalEffect(AbnormalEffect.S_INVINCIBLE);
        activeChar.sendMessage(activeChar.getName() + " is now immortal.");
      }
      try
      {
        int var_gmspeed = Integer.parseInt(activeChar.getVar("gm_gmspeed"));
        if ((var_gmspeed >= 1) && (var_gmspeed <= 4))
View Full Code Here

    if (partner != null)
    {
      partner.setPartnerId(0);
      if (partner.isMaried())
      {
        partner.sendMessage(new CustomMessage("voicedcommandhandlers.Wedding.PartnerDivorce", partner));
      }
      else
      {
        partner.sendMessage(new CustomMessage("voicedcommandhandlers.Wedding.PartnerDisengage", partner));
      }
View Full Code Here

      {
        partner.sendMessage(new CustomMessage("voicedcommandhandlers.Wedding.PartnerDivorce", partner));
      }
      else
      {
        partner.sendMessage(new CustomMessage("voicedcommandhandlers.Wedding.PartnerDisengage", partner));
      }
      partner.setMaried(false);
      if (AdenaAmount > 0)
      {
        partner.addAdena(AdenaAmount);
View Full Code Here

      System.out.println("Event: TvT Arena 2 started.");
      Announcements.getInstance().announceToAll("�?ачал�?�? TvT Arena 2 �?вент.");
    }
    else
    {
      player.sendMessage("TvT Arena 2 Event already started.");
    }
    show("admin/events.htm", player);
  }
 
  /**
 
View Full Code Here

      System.out.println("TvT Arena 2 Event stopped.");
      Announcements.getInstance().announceToAll("TvT Arena 2 �?вент окончен.");
    }
    else
    {
      player.sendMessage("TvT Arena 2 Event not started.");
    }
    show("admin/events.htm", player);
  }
 
  /**
 
View Full Code Here

        }
        if (_mode == 1)
        {
          if (sponsor.hasApprentice())
          {
            activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestOustAlly.MemberAlreadyHasApprentice", activeChar));
            return;
          }
          if (apprentice.hasSponsor())
          {
            activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestOustAlly.ApprenticeAlreadyHasSponsor", activeChar));
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.