Examples of addLong()


Examples of org.moparscape.msc.ls.packetbuilder.LSPacketBuilder.addLong()

      packet.addShort(save.getSkinColour());
      packet.addShort(save.getHeadSprite());
      packet.addShort(save.getBodySprite());

      packet.addByte((byte) (save.isMale() ? 1 : 0));
      packet.addLong(save.getSkullTime());

      for (int i = 0; i < 18; i++) {
        packet.addLong(save.getExp(i));
        packet.addShort(save.getStat(i));
      }
View Full Code Here

Examples of org.moparscape.msc.ls.packetbuilder.LSPacketBuilder.addLong()

      packet.addByte((byte) (save.isMale() ? 1 : 0));
      packet.addLong(save.getSkullTime());

      for (int i = 0; i < 18; i++) {
        packet.addLong(save.getExp(i));
        packet.addShort(save.getStat(i));
      }

      int invCount = save.getInvCount();
      packet.addShort(invCount);
View Full Code Here

Examples of org.moparscape.msc.ls.packetbuilder.LSPacketBuilder.addLong()

      int friendCount = save.getFriendCount();
      packet.addShort(friendCount);
      for (int i = 0; i < friendCount; i++) {
        long friend = save.getFriend(i);
        packet.addLong(friend);
        packet.addShort(FriendsListService.getFriendWorld(
            save.getUser(), friend));
      }

      int ignoreCount = save.getIgnoreCount();
View Full Code Here

Examples of org.moparscape.msc.ls.packetbuilder.LSPacketBuilder.addLong()

      }

      int ignoreCount = save.getIgnoreCount();
      packet.addShort(ignoreCount);
      for (int i = 0; i < ignoreCount; i++) {
        packet.addLong(save.getIgnore(i));
      }
      java.util.Set<Integer> keys = save.getQuestStages().keySet();
      packet.addShort(keys.size());

      for (int id : keys) {
View Full Code Here

Examples of org.moparscape.msc.ls.packetbuilder.LSPacketBuilder.addLong()

        packet.addBytes(e.getKey().getBytes());
       
        packet.addInt(e.getValue().length());
        packet.addBytes(e.getValue().getBytes());
      }
      packet.addLong(save.getMuted());
      packet.addLong(save.getEventCD());
    }
    return packet.toPacket();

  }
View Full Code Here

Examples of org.moparscape.msc.ls.packetbuilder.LSPacketBuilder.addLong()

       
        packet.addInt(e.getValue().length());
        packet.addBytes(e.getValue().getBytes());
      }
      packet.addLong(save.getMuted());
      packet.addLong(save.getEventCD());
    }
    return packet.toPacket();

  }
View Full Code Here

Examples of org.moparscape.msc.ls.packetbuilder.LSPacketBuilder.addLong()

  private List<LSPacket> packets = new ArrayList<LSPacket>();

  public void alert(long user, String message) {
    LSPacketBuilder s = new LSPacketBuilder();
    s.setID(6);
    s.addLong(user);
    s.addBytes(message.getBytes());
    packets.add(s.toPacket());
  }

  public void alert(String message) {
View Full Code Here

Examples of org.moparscape.msc.ls.packetbuilder.LSPacketBuilder.addLong()

  }

  public void friendLogin(long loggingIn, long userToInform, int w) {
    LSPacketBuilder s = new LSPacketBuilder();
    s.setID(11);
    s.addLong(loggingIn);
    s.addLong(userToInform);
    s.addShort(w);
    packets.add(s.toPacket());
  }
View Full Code Here

Examples of org.moparscape.msc.ls.packetbuilder.LSPacketBuilder.addLong()

  public void friendLogin(long loggingIn, long userToInform, int w) {
    LSPacketBuilder s = new LSPacketBuilder();
    s.setID(11);
    s.addLong(loggingIn);
    s.addLong(userToInform);
    s.addShort(w);
    packets.add(s.toPacket());
  }

  public void friendLogout(long friend) {
View Full Code Here

Examples of org.moparscape.msc.ls.packetbuilder.LSPacketBuilder.addLong()

  }

  public void friendLogout(long friend) {
    LSPacketBuilder s = new LSPacketBuilder();
    s.setID(12);
    s.addLong(friend);
    packets.add(s.toPacket());
  }

  public void friendLogout(long loggingOut, long userToInform) {
    LSPacketBuilder s = new LSPacketBuilder();
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.