Examples of changeLock()


Examples of games.stendhal.server.entity.mapstuff.portal.HousePortal.changeLock()

     
      try {
        final int id = Integer.parseInt(claimedHouse);
        final HousePortal portal = HouseUtilities.getHousePortal(id);
        // change the lock
        portal.changeLock();
        // make a new key for the player, with the new locknumber
        final String doorId = portal.getDoorId();
        final Item key = SingletonRepository.getEntityManager().getItem("house key");
        final int locknumber = portal.getLockNumber();
View Full Code Here

Examples of games.stendhal.server.entity.mapstuff.portal.HousePortal.changeLock()

      final StackableItem money = (StackableItem) SingletonRepository.getEntityManager().getItem("money");
      money.setQuantity(refund);
      player.equipOrPutOnGround(money);
 
      portal.changeLock();
      portal.setOwner("");
      // the player has sold the house. clear the slot
      player.removeQuest(questSlot);
      raiser.say("Thanks, here is your " + Integer.toString(refund)
             + " money owed, from the house value, minus any owed taxes. Now that you don't own a house "
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.