Examples of Race


Examples of de.ailis.xadrian.data.Race

                final String sizeStr = element.attributeValue("size");
                if (sizeStr == null)
                    size = FactorySize.S;
                else
                    size = FactorySize.valueOf(sizeStr);
                final Race race = raceFactory.getRace(element
                    .attributeValue("race"));
                final int cycle = Integer.parseInt(element
                    .attributeValue("cycle"));
                final int price = Integer.parseInt(element
                    .attributeValue("price"));
View Full Code Here

Examples of de.ailis.xadrian.data.Race

                this.maxY = Math.max(this.maxY, y);
                final int planets = Integer.parseInt(element
                    .attributeValue("planets"));
                final Sun suns = sunsFactory.getSun(Integer.parseInt(element
                    .attributeValue("suns")));
                final Race race = raceFactory.getRace(element
                    .attributeValue("race"));
                final boolean core = Boolean.parseBoolean(element
                    .attributeValue("core"));
                final String northId = element.attributeValue("north");
                final String eastId = element.attributeValue("east");
View Full Code Here

Examples of l2p.gameserver.model.base.Race

  }

  private Set<PlayerClass> getAvailableSubClasses(L2Player player, boolean isNew)
  {
    final int charClassId = player.getBaseClassId();
    final Race npcRace = getVillageMasterRace();
    final ClassType npcTeachType = getVillageMasterTeachType();
    PlayerClass currClass = PlayerClass.values()[charClassId];// .valueOf(charClassName);
    /**
     * If the race of your main class is Elf or Dark Elf, you may not select
     * each class as a subclass to the other class, and you may not select
View Full Code Here

Examples of lineage2.gameserver.model.base.Race

      boolean useBaseClass = chardata.getInt("type") == SubClassType.BASE_CLASS.ordinal();
      if (!useBaseClass)
      {
        baseClassId = restoreBaseClassId(objectId);
      }
      Race race = ClassId.VALUES[baseClassId[1]].getRace();
      String name = chardata.getString("char_name");
      charInfopackage = new CharSelectInfoPackage(objectId, name);
      charInfopackage.setLevel(chardata.getInt("level"));
      charInfopackage.setMaxHp(chardata.getInt("maxHp"));
      charInfopackage.setCurrentHp(chardata.getDouble("curHp"));
      charInfopackage.setMaxMp(chardata.getInt("maxMp"));
      charInfopackage.setCurrentMp(chardata.getDouble("curMp"));

      charInfopackage.setX(chardata.getInt("x"));
      charInfopackage.setY(chardata.getInt("y"));
      charInfopackage.setZ(chardata.getInt("z"));
      charInfopackage.setPk(chardata.getInt("pkkills"));
      charInfopackage.setPvP(chardata.getInt("pvpkills"));

      charInfopackage.setFace(chardata.getInt("face"));
      charInfopackage.setHairStyle(chardata.getInt("hairstyle"));
      charInfopackage.setHairColor(chardata.getInt("haircolor"));
      charInfopackage.setSex(chardata.getInt("sex"));

      charInfopackage.setExp(chardata.getLong("exp"));
      charInfopackage.setSp(chardata.getInt("sp"));
      charInfopackage.setClanId(chardata.getInt("clanid"));

      charInfopackage.setKarma(chardata.getInt("karma"));
      charInfopackage.setRace(race.ordinal());
      charInfopackage.setClassId(classid);
      charInfopackage.setBaseClassId(baseClassId[0]);
      long deletetime = chardata.getLong("deletetime");
      int deletedays = 0;
      if (Config.DELETE_DAYS > 0)
View Full Code Here

Examples of lineage2.gameserver.model.base.Race

  }

  public boolean checkStartNpc(NpcInstance npc, Player player)
  {
    int npcId = npc.getNpcId();
    Race race = player.getRace();
    switch(npcId)
    {
      case FRANCO:
        if(race == Race.human)
          return true;
View Full Code Here

Examples of lineage2.gameserver.model.base.Race

  protected void readData(Element rootElement) throws Exception
  {
    for (Iterator<Element> iterator = rootElement.elementIterator(); iterator.hasNext();)
    {
      Element element = iterator.next();
      Race race = Race.valueOf(element.attributeValue("race").toLowerCase());
      Sex sex = Sex.valueOf(element.attributeValue("sex").toUpperCase());
      ClassType classtype = ClassType.valueOf(element.attributeValue("type").toUpperCase());
      StatAttributes min_attr = null;
      StatAttributes max_attr = null;
      StatAttributes base_attr = null;
View Full Code Here

Examples of lineage2.gameserver.model.base.Race

      int min_level = Integer.parseInt(element.attributeValue("min_level"));
      int item_id = element.attributeValue("item_id") == null ? 0 : Integer.parseInt(element.attributeValue("item_id"));
      long item_count = element.attributeValue("item_count") == null ? 1 : Long.parseLong(element.attributeValue("item_count"));
      boolean clicked = (element.attributeValue("clicked") != null) && Boolean.parseBoolean(element.attributeValue("clicked"));
      boolean deprecated = (element.attributeValue("deprecated") != null) && Boolean.parseBoolean(element.attributeValue("deprecated"));
      Race race = element.attributeValue("race") == null ? null : Race.valueOf(element.attributeValue("race"));
     
      skillLearns.add(new SkillLearn(id, level, min_level, cost, item_id, item_count, clicked, deprecated, race, new HashMap<Integer, Long>(), new ArrayList<Integer>()));
    }
    return skillLearns;
  }
View Full Code Here

Examples of lineage2.gameserver.model.base.Race

   */
  public static Set<ClassId> getAvailableSubClasses(Player player, Race npcRace, ClassType npcTeachType, boolean isNew)
  {
    Set<ClassId> availSubs = null;
    Set<ClassId> availSubs1 = null;
    Race race = player.getRace();
    if (race == Race.kamael)
    {
      availSubs = EnumSet.copyOf(KAMAEL_SUBCLASS_SET);
    }
    else
    {
      ClassId classId = player.getClassId();
      if ((classId.isOfLevel(ClassLevel.Third)) || (classId.isOfLevel(ClassLevel.Fourth)) || (classId.isOfLevel(ClassLevel.Awaking)))
      {
        availSubs = EnumSet.copyOf(MAIN_SUBCLASS_SET);
        availSubs1 = EnumSet.copyOf(MAIN_SUBCLASS_SET1);
        availSubs.removeAll(BANNED_SUBCLASSES);
        availSubs.remove(classId);
        availSubs1.removeAll(BANNED_SUBCLASSES);
        availSubs1.remove(classId);
        switch (race.ordinal())
        {
          case 1:
            availSubs.removeAll(getSet(Race.darkelf, ClassLevel.Third));
            break;
          case 2:
            availSubs.removeAll(getSet(Race.elf, ClassLevel.Third));
            break;
        }
        switch (race.ordinal())
        {
          case 1:
            availSubs1.removeAll(getSet(Race.darkelf, ClassLevel.Awaking));
            break;
          case 2:
View Full Code Here

Examples of lineage2.gameserver.model.base.Race

            }
            territory.add(shape);
          }
          else if ("restart".equalsIgnoreCase(n.getName()))
          {
            Race race = Race.valueOf(n.attributeValue("race"));
            String locName = n.attributeValue("loc");
            restarts.put(race, locName);
          }
        }
        if (territory == null)
View Full Code Here

Examples of net.sf.l2j.gameserver.model.base.Race

        for (int i = 0; i < attrs.getLength(); i++)
        {
            Node a = attrs.item(i);
            if ("race".equalsIgnoreCase(a.getNodeName()))
            {
                Race race = Race.valueOf(a.getNodeValue());
                cond = joinAnd(cond, new ConditionPlayerRace(race));
            }
            else if ("level".equalsIgnoreCase(a.getNodeName()))
            {
                int lvl = Integer.decode(getValue(a.getNodeValue(), null));
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.