Examples of addLong()


Examples of lineage2.gameserver.network.serverpackets.SystemMessage2.addLong()

        SystemMessage2 sm;
        if (itemId == 57)
        {
          sm = new SystemMessage2(SystemMsg.C1_HAS_DIED_AND_DROPPED_S2_ADENA);
          sm.addName(this);
          sm.addLong(item.getCount());
        }
        else
        {
          sm = new SystemMessage2(SystemMsg.C1_DIED_AND_DROPPED_S3_S2);
          sm.addName(this);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.SystemMessage2.addLong()

        else
        {
          sm = new SystemMessage2(SystemMsg.C1_DIED_AND_DROPPED_S3_S2);
          sm.addName(this);
          sm.addItemName(itemId);
          sm.addLong(item.getCount());
        }
        broadcastPacket(sm);
      }
      lastAttacker.doAutoLootOrDrop(item, this);
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.SystemMessage2.addLong()

      SystemMessage2 sm;
      if (item.getItemId() == 57)
      {
        sm = new SystemMessage2(SystemMsg.C1_HAS_DIED_AND_DROPPED_S2_ADENA);
        sm.addName(this);
        sm.addLong(item.getCount());
      }
      else
      {
        sm = new SystemMessage2(SystemMsg.C1_DIED_AND_DROPPED_S3_S2);
        sm.addName(this);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.SystemMessage2.addLong()

      else
      {
        sm = new SystemMessage2(SystemMsg.C1_DIED_AND_DROPPED_S3_S2);
        sm.addName(this);
        sm.addItemName(item.getItemId());
        sm.addLong(item.getCount());
      }
      broadcastPacket(sm);
    }
    lastAttacker.doAutoLootOrDrop(item, this);
  }
View Full Code Here

Examples of org.jivesoftware.database.CachedPreparedStatement.addLong()

                }
                else {
                    query.append(" AND");
                }
                query.append(" ofConversation.startDate >= ?");
                cachedPstmt.addLong(search.getDateRangeMin().getTime());
            }
            if (search.getDateRangeMax() != null) {
                if (!whereSet) {
                    query.append(" WHERE");
                    whereSet = true;
View Full Code Here

Examples of org.jivesoftware.database.CachedPreparedStatement.addLong()

                }
                else {
                    query.append(" AND");
                }
                query.append(" ofConversation.startDate <= ?");
                cachedPstmt.addLong(search.getDateRangeMax().getTime());
            }
        }

        // Check if conversations have to happen at a given point in time
        if (filterTimestamp) {
View Full Code Here

Examples of org.jivesoftware.database.CachedPreparedStatement.addLong()

            }
            else {
                query.append(" AND");
            }
            query.append(" ofConversation.startDate <= ?");
            cachedPstmt.addLong(search.getIncludeTimestamp().getTime());

            query.append(" AND");
            query.append(" ofConversation.lastActivity >= ?");
            cachedPstmt.addLong(search.getIncludeTimestamp().getTime());
        }
View Full Code Here

Examples of org.jivesoftware.database.CachedPreparedStatement.addLong()

            query.append(" ofConversation.startDate <= ?");
            cachedPstmt.addLong(search.getIncludeTimestamp().getTime());

            query.append(" AND");
            query.append(" ofConversation.lastActivity >= ?");
            cachedPstmt.addLong(search.getIncludeTimestamp().getTime());
        }

        // Filter by room
        if (filterRoom) {
            if (!whereSet) {
View Full Code Here

Examples of org.moparscape.msc.gs.builders.RSCPacketBuilder.addLong()

    player.setClassName(p.readString().trim());
    long serverKey = Formulae.generateSessionKey(userByte);
    player.setServerKey(serverKey);
    RSCPacketBuilder pb = new RSCPacketBuilder();
    pb.setBare(true);
    pb.addLong(serverKey);
    session.write(pb.toPacket());
  }
}
View Full Code Here

Examples of org.moparscape.msc.gs.builders.RSCPacketBuilder.addLong()

    if (with == null) { // This shouldn't happen
      return;
    }
    RSCPacketBuilder s = new RSCPacketBuilder();
    s.setID(147);
    s.addLong(with.getUsernameHash());
    s.addByte((byte) with.getDuelOffer().size());
    for (InvItem item : with.getDuelOffer()) {
      s.addShort(item.id);
      s.addInt(item.amount);
    }
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.