Examples of equipOrPutOnGround()


Examples of games.stendhal.server.entity.RPEntity.equipOrPutOnGround()

      if (killerRPEntity.drop(oldItemType)) {
        final Item item = SingletonRepository.getEntityManager().getItem(
            itemType);

        killerRPEntity.equipOrPutOnGround(item);
      }
    }
    super.onDead(killer, remove);
  }
}
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.equipOrPutOnGround()

    final Item item = SingletonRepository.getEntityManager().getItem(
        "black book");
    assertNotNull(item);
    item.setBoundTo(pl.getName());
    pl.equipOrPutOnGround(item);
    assertEquals(3, quest.getHistory(pl).size());
    assertEquals(Arrays.asList(
          "I have met Ceryl at the library, he's the librarian there.",
          "I promised to fetch the black book from Jynath.",
          "I have talked to Jynath, and have the book."),
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.equipOrPutOnGround()

          if (item instanceof StackableItem) {
            final StackableItem stackableItem = (StackableItem) item;
            // bet + win
            stackableItem.setQuantity(2 * betInfo.amount);
          }
          player.equipOrPutOnGround(item);
        }

      }

 
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.