EquipList Excluding (Shoes etc.)

Results 1 to 3 of 3
  1. #1
    TranquilityStory JarrYD is offline
    MemberRank
    Jan 2010 Join Date
    764Posts

    EquipList Excluding (Shoes etc.)

    Would there be an easier way to exclude item types from this.
    Like if I wanted to exclude shoes from showing? And can I define nx or non nx or does it have to be the whole shoes category?
    Thanks!

    Code:
    public String EquipList(MapleClient c) {
            StringBuilder str = new StringBuilder();
               MapleInventory equip = c.getPlayer().getInventory(MapleInventoryType.EQUIP);
                    List<String> stra = new LinkedList<String>();
                        for (IItem item : equip.list()) {
                             if(item.getItemId() == 1002140 || item.getItemId() == 1042003 || item.getItemId() == 1062007 || item.getItemId() == 1122005 || item.getItemId() == 1122000 || item.getItemId() == 1122007) {
                                 //don't show
                              } else {
                            stra.add("#L"+item.getPosition()+"##v"+item.getItemId()+"##l");
                 }
                        }
                        for (String strb : stra) {
                    str.append(strb);
                }
            return str.toString();
        }


  2. #2
    Account Upgraded | Title Enabled! jadeling is offline
    MemberRank
    Jul 2008 Join Date
    706Posts

    Re: EquipList Excluding (Shoes etc.)

    I suppose it's
    Code:
    public static boolean isShoe(int itemId) {
        return (itemId / 10000) == 107;
    }
    
    and 
    getEquipStats(itemId).get("cash") != null;

  3. #3
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,109Posts

    Re: EquipList Excluding (Shoes etc.)

    example, not the best but meh

    Code:
    if (item.getitemId() == id) {
    	continue;
    }
    will exclude that item id

    so like using what's above

    Code:
    if (isShoe(item.getItemId())) {
    	continue;
    }
    will exclude shoes


    If you plan to exclude shoes that are nx or none nx, make ur own bool to define what you're looking to either keep or remove ...



Advertisement