Package games.stendhal.server.core.engine.dbcommand

Examples of games.stendhal.server.core.engine.dbcommand.LogSimpleItemEventCommand


    Offer offer = new Offer(item, money, offerer);
    RPSlot slot = this.getSlot(OFFERS_SLOT_NAME);
    slot.add(offer);
    getZone().storeToDatabase();

    new ItemLogger().addLogItemEventCommand(new LogSimpleItemEventCommand(
        item, offerer, "slot-to-market", item.get("name"), Integer
            .toString(getQuantity(item)), "new offer",
        OFFERS_SLOT_NAME));

    return offer;
View Full Code Here


        if (item.getContainerSlot() != null) {
          slotName = item.getContainerSlot().getName();
          target = "slot";
        }
        new ItemLogger()
            .addLogItemEventCommand(new LogSimpleItemEventCommand(
                item, acceptingPlayer, "market-to-" + target,
                item.get("name"), Integer
                    .toString(getQuantity(item)),
                "accept offer", slotName));
View Full Code Here

    String target = "ground";
    if (item.getContainerSlot() != null) {
      slotName = item.getContainerSlot().getName();
      target = "slot";
    }
    new ItemLogger().addLogItemEventCommand(new LogSimpleItemEventCommand(item, p,
            "market-to-" + target, itemName, Integer
                .toString(getQuantity(item)), "remove offer",
            slotName));
  }
View Full Code Here

  public void loadOnLogin(final Player player, final RPSlot slot, final Item item) {
    if (item.has(AbstractLogItemEventCommand.ATTR_ITEM_LOGID)) {
      return;
    }
    addLogItemEventCommand(new LogSimpleItemEventCommand(item, player, "create", item.get("name"), getQuantity(item), "olditem",
        slot.getName()));
  }
View Full Code Here

    addLogItemEventCommand(new LogSimpleItemEventCommand(item, player, "create", item.get("name"), getQuantity(item), "olditem",
        slot.getName()));
  }

  public void destroyOnLogin(final Player player, final RPSlot slot, final RPObject item) {
    addLogItemEventCommand(new LogSimpleItemEventCommand(item, player, "destroy", item.get("name"), getQuantity(item), "on login",
        slot.getName()));
  }
View Full Code Here

  public void destroy(final RPEntity entity, final RPSlot slot, final RPObject item, String reason) {
    String slotName = "";
    if (slot != null) {
      slotName = slot.getName();
    }
    addLogItemEventCommand(new LogSimpleItemEventCommand(item, entity, "destroy", item.get("name"), getQuantity(item), reason,
        slotName));
  }
View Full Code Here

    addLogItemEventCommand(new LogSimpleItemEventCommand(item, entity, "destroy", item.get("name"), getQuantity(item), reason,
        slotName));
  }

  public void dropQuest(final Player player, final Item item) {
    addLogItemEventCommand(new LogSimpleItemEventCommand(item, player, "destroy", item.get("name"), getQuantity(item), "quest", null));
  }
View Full Code Here

  public void dropQuest(final Player player, final Item item) {
    addLogItemEventCommand(new LogSimpleItemEventCommand(item, player, "destroy", item.get("name"), getQuantity(item), "quest", null));
  }

  public void timeout(final Item item) {
    addLogItemEventCommand(new LogSimpleItemEventCommand(item, null, "destroy", item.get("name"), getQuantity(item), "timeout", item.getZone().getID().getID() + " " + item.getX() + " " + item.getY()));
  }
View Full Code Here

  public void timeout(final Item item) {
    addLogItemEventCommand(new LogSimpleItemEventCommand(item, null, "destroy", item.get("name"), getQuantity(item), "timeout", item.getZone().getID().getID() + " " + item.getX() + " " + item.getY()));
  }

  public void displace(final Player player, final PassiveEntity item, final StendhalRPZone zone, final int oldX, final int oldY, final int x, final int y) {
    addLogItemEventCommand(new LogSimpleItemEventCommand(item, player, "ground-to-ground", zone.getID().getID(), oldX + " " + oldY,
        zone.getID().getID(), x + " " + y));
  }
View Full Code Here

    addLogItemEventCommand(new LogSimpleItemEventCommand(item, player, "ground-to-ground", zone.getID().getID(), oldX + " " + oldY,
        zone.getID().getID(), x + " " + y));
  }

  public void equipAction(final Player player, final Entity entity, final String[] sourceInfo, final String[] destInfo) {
    addLogItemEventCommand(new LogSimpleItemEventCommand(entity, player, sourceInfo[0] + "-to-" + destInfo[0], sourceInfo[1],
        sourceInfo[2], destInfo[1], destInfo[2]));
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.core.engine.dbcommand.LogSimpleItemEventCommand

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.