• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

EquipList Excluding (Shoes etc.)

Joined
Jan 28, 2010
Messages
517
Reaction score
32
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();
    }
 
Custom Title Activated
Loyal Member
Joined
Mar 14, 2010
Messages
5,363
Reaction score
1,343
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 ...
 
Upvote 0
Back
Top