Package org.moparscape.msc.gs.model

Examples of org.moparscape.msc.gs.model.PlayerAppearance


      player.setGameSetting(3, p.readByte() == 1);
      player.setGameSetting(4, p.readByte() == 1);
      player.setGameSetting(5, p.readByte() == 1);
      player.setGameSetting(6, p.readByte() == 1);

      PlayerAppearance appearance = new PlayerAppearance(p.readShort(),
          p.readShort(), p.readShort(), p.readShort(), p.readShort(),
          p.readShort());
      if (!appearance.isValid()) {
        loginCode = 7;
        player.destroy(true);
        player.getSession().close();
      }
View Full Code Here


    int skinColour = (int) p.readByte();

    int headSprite = headType + 1;
    int bodySprite = bodyGender + 1;

    PlayerAppearance appearance = new PlayerAppearance(hairColour,
        topColour, trouserColour, skinColour, headSprite, bodySprite);
    if (!appearance.isValid()) {
      player.setSuspiciousPlayer(true);
      return;
    }

    player.setMale(headGender == 1);
View Full Code Here

        // players
        // appearance,
        // clothes,
        // skull, combat
        // etc.
        PlayerAppearance appearance = p.getPlayerAppearance();
        updates.addShort(p.getIndex());
        updates.addByte((byte) 5);
        updates.addShort(p.getAppearanceID());
        updates.addLong(p.getUsernameHash());
        updates.addByte((byte) p.getWornItems().length);
        for (int i : p.getWornItems()) {
          updates.addByte((byte) i);
        }
        updates.addByte(appearance.getHairColour());
        updates.addByte(appearance.getTopColour());
        updates.addByte(appearance.getTrouserColour());
        updates.addByte(appearance.getSkinColour());
        updates.addByte((byte) p.getCombatLevel());
        updates.addByte((byte) (p.isSkulled() ? 1 : 0));
        updates.addByte((byte) (p.isAdmin() ? 3 : (p.isMod() ? 2 : (p
            .isPMod() ? 1 : 0))));
      }
View Full Code Here

    packet.addShort(player.getSkillTotal());
    packet.addShort(player.getX());
    packet.addShort(player.getY());
    packet.addShort(player.getFatigue());

    PlayerAppearance a = player.getPlayerAppearance();
    packet.addByte((byte) a.getHairColour());
    packet.addByte((byte) a.getTopColour());
    packet.addByte((byte) a.getTrouserColour());
    packet.addByte((byte) a.getSkinColour());
    packet.addByte((byte) a.getSprite(0));
    packet.addByte((byte) a.getSprite(1));

    packet.addByte((byte) (player.isMale() ? 1 : 0));
    packet.addLong(player.getSkullTime());
    packet.addByte((byte) player.getCombatStyle());
View Full Code Here

TOP

Related Classes of org.moparscape.msc.gs.model.PlayerAppearance

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.