Thread: Anguish dropped stackable items dont show up in camelot area

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11  
    Registered Member
    Join Date
    Dec 2015
    Posts
    42
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Bump
    Reply With Quote  
     

  2. #12  
    Registered Member
    Join Date
    Dec 2015
    Posts
    42
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Still having this problem
    Reply With Quote  
     

  3. #13  
    Registered Member
    Join Date
    Jan 2017
    Posts
    119
    Thanks given
    7
    Thanks received
    19
    Discord
    View profile
    Rep Power
    9
    go into ItemHandler.java and search for this:

    Code:
     
    	public void createGroundItem(Player player, int itemId, int itemX, int itemY, int height, int itemAmount,
    			int playerId) {
    remove that entire method and add this instead of it:

    Code:
    	public void createGroundItem(Player player, int itemId, int itemX, int itemY, int height, int itemAmount,
    			int playerId) {
    		if (playerId < 0 || playerId > PlayerHandler.players.length - 1) {
    			return;
    		}
    		Player owner = PlayerHandler.players[playerId];
    		if (owner == null) {
    			return;
    		}
    		if (itemId > 0 && itemAmount > 0) {
    			if (itemId >= 2412 && itemId <= 2414) {
    				player.sendMessage("The cape vanishes as it touches the ground.");
    				return;
    			}
    			/**
    			 * Lootvalue
    			 */
    			if (player.lootValue > 0) {
    				if (ShopAssistant.getItemShopValue(itemId) >= player.lootValue) {
    					player.getPA().stillGfx(1177, itemX, itemY, height, 5);
    					player.sendMessage("@[email protected] lootvalue senses a drop valued at or over "
    							+ Misc.getValueWithoutRepresentation(player.lootValue) + " coins.");
    				}
    			}
    			/**
    			 * Bone crusher
    			 */
    			boolean crusher = player.getItems().playerHasItem(13116);
    			Optional<Bone> bone = Prayer.isOperableBone(itemId);
    			if (crusher && bone.isPresent()) {
    				double experience = player.getRechargeItems().hasItem(13114) ? 0.75 : player.getRechargeItems().hasItem(13115) ? 1 : 0.50;
    				if (itemId == bone.get().getItemId()) {
    					player.getPA().addSkillXP((int) (bone.get().getExperience() * (player.getMode().getType().equals(ModeType.OSRS) ? 1 : Config.PRAYER_EXPERIENCE) * experience),
    							Skill.PRAYER.getId(), true);
    				}
    				return;
    			}
    			
    			if (!Item.itemStackable[itemId] && itemAmount > 0) {
    				if (itemAmount > 28) {
    					itemAmount = 28;
    				}
    				for (int j = 0; j < itemAmount; j++) {
    					player.getItems().createGroundItem(itemId, itemX, itemY, 1);
    					GroundItem item = new GroundItem(itemId, itemX, itemY, height, 1, HIDE_TICKS, owner.playerName);
    					items.add(item);
    				}
    			} else {
    				player.getItems().createGroundItem(itemId, itemX, itemY, itemAmount);
    				GroundItem item = new GroundItem(itemId, itemX, itemY, height, itemAmount, HIDE_TICKS,
    						owner.playerName);
    				items.add(item);
    			}
    		}
    	}
    Reply With Quote  
     

  4. Thankful user:


Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Items not showing up in inventory after a trade?
    By OneCrazyPanda in forum Help
    Replies: 2
    Last Post: 02-05-2015, 11:48 AM
  2. New Ranks Dont Show Up In Public Chat
    By tabnana in forum Help
    Replies: 0
    Last Post: 12-01-2013, 12:57 AM
  3. Replies: 8
    Last Post: 08-25-2011, 05:29 PM
  4. Replies: 1
    Last Post: 11-27-2009, 05:30 AM
  5. items dont show in invy for trade
    By zach. in forum Help
    Replies: 3
    Last Post: 03-04-2009, 05:12 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •