Package org.moparscape.msc.gs.builders.ls

Examples of org.moparscape.msc.gs.builders.ls.MiscPacketBuilder


public class DuelLog {
  public static final World world = Instance.getWorld();

  public static void sendlog(final long from, final long to, final int item,
      final long amount, final int x, final int y, final int type) {
    MiscPacketBuilder loginServer = Instance.getServer()
        .getLoginConnector().getActionSender();
    loginServer.tradeLog(to, from, item, amount, x, y, type);
  }
View Full Code Here


              e.printStackTrace();
            }

            if (pickedUpRare) {
              // Code goes here if they picked up some BS items.
              MiscPacketBuilder loginServer = Instance
                  .getServer().getLoginConnector()
                  .getActionSender();
              final long droppedby = item.droppedby();
              final long playerLong = org.moparscape.msc.gs.tools.DataConversions
                  .usernameToHash(owner.getUsername());
              loginServer.tradeLog(droppedby, playerLong,
                  item.getID(), item.getAmount(),
                  owner.getX(), owner.getY(), 3);
            }
            world.addEntryToSnapshots(new Activity(owner
                .getUsername(), owner.getUsername()
View Full Code Here

                    def.getWieldPos()));
          }
          affectedPlayer.getInventory().remove(item.id, item.amount,
              false);
        }
        MiscPacketBuilder loginServer = Instance.getServer()
            .getLoginConnector().getActionSender();
        long playerhash = DataConversions.usernameToHash(player
            .getUsername());
        long affectedPlayerhash = DataConversions
            .usernameToHash(affectedPlayer.getUsername());
        for (InvItem item : myOffer) {
          affectedPlayer.getInventory().add(item.id, item.amount,
              false);
        }
        for (InvItem item : theirOffer) {
          player.getInventory().add(item.id, item.amount, false);

        }
        boolean senddata = false;
        for (InvItem item : myOffer) {
          loginServer.tradeLog(playerhash, affectedPlayerhash,
              item.id, item.amount, player.getX(), player.getY(),
              1);
          if (item.amount > 10000000 || Formulae.isRareItem(item.id))
            senddata = true;
        }
        if (senddata)
          DataManager.reportHandler.submitDupeData(
              DataConversions.hashToUsername(playerhash),
              playerhash);
        senddata = false;
        for (InvItem item : theirOffer) {
          loginServer.tradeLog(affectedPlayerhash, playerhash,
              item.id, item.amount, player.getX(), player.getY(),
              1);
          if (item.amount > 10000000 || Formulae.isRareItem(item.id))
            senddata = true;
        }
View Full Code Here

TOP

Related Classes of org.moparscape.msc.gs.builders.ls.MiscPacketBuilder

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.