• 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.

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