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!

any idea how to show item that has owner?

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?
 
Newbie Spellweaver
Joined
Nov 26, 2015
Messages
61
Reaction score
0
Set the owner name on the item:


Hmm i mean like. make a NPC that only able to show the item that has an owner tag on the item. those item that doesnt have the tag wont be show. Sorry for misunderstanding.
 
Upvote 0
Junior Spellweaver
Joined
Sep 16, 2017
Messages
156
Reaction score
36
The "owner" tag is initialized as an empty string, for an item (see )

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:
PHP:
if (!item.getOwner().isEmpty()) {
     //show the item, because it has a tag;
}
should be enough.
 
Upvote 0
Newbie Spellweaver
Joined
Nov 26, 2015
Messages
61
Reaction score
0
The "owner" tag is initialized as an empty string, for an item (see )

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:
PHP:
if (!item.getOwner().isEmpty()) {
     //show the item, because it has a tag;
}
should be enough.
So if im making an npc for like showing these item that have an owner tag what should i put?

if (status == 0) { cm.sendSimple("Pick an item to update.\r\n"+cm.EquipList(cm.getClient()));


Hmm, so where should i add in the commands above
 
Upvote 0
Back
Top