Thread: female clothing tops are showing through the chest plates and robes

Results 1 to 3 of 3
  1. #1 female clothing tops are showing through the chest plates and robes 
    Registered Member
    Join Date
    Mar 2013
    Posts
    579
    Thanks given
    684
    Thanks received
    137
    Rep Power
    217
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2012
    Posts
    191
    Thanks given
    45
    Thanks received
    87
    Rep Power
    0
    So I had a similar issue but it was actually really simple. I'm not sure if this will apply to your source but may give you an idea

    Equipment.java

    Code:
      private static String[] FULL_BODY = {"platebody"};
    And

    Code:
    public static boolean isFullBody(Item item) {
    		String itemName = item.getDefinitions().getName();
    		if (itemName == null)
    			return false;
    		itemName = itemName.toLowerCase();
    		for (int i = 0; i < NOT_FULL_BODY.length; i++)
    			if (itemName.contains(NOT_FULL_BODY[i].toLowerCase()))
    				return false;
    		for (int i = 0; i < FULL_BODY.length; i++)
    			if (itemName.contains(FULL_BODY[i].toLowerCase()))
    				return true;
    		return false;
    	}
    And

    Code:
    public static int getItemSlot(int itemId) {
    for (int i = 0; i < BODY_LIST.length; i++)
    			if (itemId == BODY_LIST[i])
    				return 4;
    		for (int i = 0; i < LEGS_LIST.length; i++)
    			if (itemId == LEGS_LIST[i])
    				return 7;
    		String item = ItemDefinitions.getItemDefinitions(itemId).getName().toLowerCase();
    		if (item == null)
    			return -1;
    		for (int i = 0; i < CAPES.length; i++)
    			if (item.contains(CAPES[i].toLowerCase()))
    				return 1;
    		for (int i = 0; i < BOOTS.length; i++)
    			if (item.contains(BOOTS[i].toLowerCase()))
    				return 10;
    		for (int i = 0; i < GLOVES.length; i++)
    			if (item.contains(GLOVES[i].toLowerCase()))
    				return 9;
    		for (int i = 0; i < SHIELDS.length; i++)
    			if (item.contains(SHIELDS[i].toLowerCase()))
    				return 5;
    		for (int i = 0; i < AMULETS.length; i++)
    			if (item.contains(AMULETS[i].toLowerCase()))
    				return 2;
    		for (int i = 0; i < ARROWS.length; i++)
    			if (item.contains(ARROWS[i].toLowerCase()))
    				return 13;
    		for (int i = 0; i < RINGS.length; i++)
    			if (item.contains(RINGS[i].toLowerCase()))
    				return 12;
    		for (int i = 0; i < WEAPONS.length; i++)
    			if (item.contains(WEAPONS[i].toLowerCase()))
    				return 3;
    		if (itemId == 4084) {
    			return 3;
    		}
    		for (int i = 0; i < HATS.length; i++)
    			if (item.contains(HATS[i].toLowerCase()))
    				return 0;
    		for (int i = 0; i < BODY.length; i++)
    			if (item.contains(BODY[i].toLowerCase()))
    				return 4;
    		for (int i = 0; i < LEGS.length; i++)
    			if (item.contains(LEGS[i].toLowerCase()))
    				return 7;
    		for (int i = 0; i < AURAS.length; i++)
    			if (item.contains(AURAS[i].toLowerCase()))
    				return SLOT_AURA;
    		return -1;
    	}
    Chances are you have this already and it's just not added in there, this works for pretty much any item that is equipping incorrectly. Credits to who ever did this on Matrix 667 base
    Reply With Quote  
     

  3. Thankful user:


  4. #3 lol 
    Registered Member
    Join Date
    Mar 2013
    Posts
    579
    Thanks given
    684
    Thanks received
    137
    Rep Power
    217
    hmmmmmmmmmmmmmm
    Last edited by MrSlayerGod; 06-10-2022 at 11:58 AM. Reason: sick here free rep love the server
    Reply With Quote  
     


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. Replies: 0
    Last Post: 03-23-2016, 06:32 PM
  2. Replies: 5
    Last Post: 07-23-2013, 10:51 PM
  3. The Sun shows through.
    By +eX.God in forum Showcase
    Replies: 0
    Last Post: 04-08-2008, 04:24 AM
  4. How to add teliports through the emote tab!
    By Idkmybfflanky in forum Tutorials
    Replies: 2
    Last Post: 03-01-2008, 09:06 PM
  5. this is wierd, no .cfg files are showing
    By Casella in forum RS2 Server
    Replies: 0
    Last Post: 02-10-2008, 04:53 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •