Package lineage2.gameserver.model

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


    if ((pAttacker != null) && pAttacker.isDebug())
    {
      pAttacker.sendMessage("Element: " + element.name());
      pAttacker.sendMessage("Attack: " + attacker.calcStat(element.getAttack(), power));
      pAttacker.sendMessage("Defence: " + defender.calcStat(element.getDefence(), 0.));
      pAttacker.sendMessage("Modifier: " + (attDiff < 0 ? "On defense " : "On attack ") + AttributeDamageResistTable.getInstance().getAttributeBonus(attDiff));
    }
    if(attDiff < 0)
    {
      return value / AttributeDamageResistTable.getInstance().getAttributeBonus(attDiff);
    }
View Full Code Here


        long tax = TradeHelper.getTax(seller, totalCost);
        if (tax > 0)
        {
          totalCost -= tax;
          seller.sendMessage(new CustomMessage("trade.HavePaidTax", seller).addNumber(tax));
        }
        seller.addAdena(totalCost);
        seller.saveTradeList();
      }
      finally
View Full Code Here

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

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

      System.out.println("Event 'L2 Medal Collection Event' started.");
      Announcements.getInstance().announceByCustomMessage("scripts.events.glitmedal.AnnounceEventStarted", null);
    }
    else
    {
      player.sendMessage("Event 'L2 Medal Collection Event' already started.");
    }
    _active = true;
    show("admin/events.htm", player);
  }
 
View Full Code Here

      System.out.println("Event 'L2 Medal Collection Event' stopped.");
      Announcements.getInstance().announceByCustomMessage("scripts.events.glitmedal.AnnounceEventStoped", null);
    }
    else
    {
      player.sendMessage("Event 'L2 Medal Collection Event' not started.");
    }
    _active = false;
    show("admin/events.htm", player);
  }
 
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if (!activeChar.isClanLeader())
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.ChangeAffiliations", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    UnitMember subject = clan.getAnyMember(_subjectName);
    if (subject == null)
View Full Code Here

      return;
    }
    UnitMember subject = clan.getAnyMember(_subjectName);
    if (subject == null)
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.NotInYourClan", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    if (subject.getPledgeType() == _targetUnit)
    {
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if (subject.getPledgeType() == _targetUnit)
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.AlreadyInThatCombatUnit", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    if ((_targetUnit != 0) && (clan.getSubUnit(_targetUnit) == null))
    {
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if ((_targetUnit != 0) && (clan.getSubUnit(_targetUnit) == null))
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.NoSuchCombatUnit", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    if (Clan.isAcademy(_targetUnit))
    {
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.