Newbie Spellweaver
- Joined
- Nov 26, 2015
- Messages
- 61
- Reaction score
- 0
Anyone has an idea on how to show item that has an owner TAG on the item?
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!Set the owner name on the item:
You must be registered to see links
if (!item.getOwner().isEmpty()) {
//show the item, because it has a tag;
}
So if im making an npc for like showing these item that have an owner tag what should i put?The "owner" tag is initialized as an empty string, for an item (seeYou must be registered to see links)
This means that if String.isEmpty() is true, the item won't have an owner tag.
Looping though all the equipment tab items, with a check like:
should be enough.PHP:if (!item.getOwner().isEmpty()) { //show the item, because it has a tag; }