Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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