How do you view a player's item equipment?

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

m1334
Noob
Noob
Posts: 18
Joined: 16 Oct 2010, 12:02
Noob?: Yes

How do you view a player's item equipment?

#1 Post by m1334 »

How do you get a player's equipment info with full name and item ID? I've only managed to get item ID for weapon and shield but not full name. I tried the following codes below.

This code works and returns itemID of Weapon/Shield.

Code: Select all

my $targetWeapon = $args->{player}{weapon};
my $targetShield = $args->{player}{shield};
This code works but I don't know what its returns, I'm pretty sure those are not the item IDs.

Code: Select all

my $targetHeadgearTop = $args->{player}{headgear}{top};
my $targetHeadgearMid = $args->{player}{headgear}{mid};
my $targetHeadgearLow = $args->{player}{headgear}{low};
This doesn't work and I'm not sure if you can even get view these.

Code: Select all

my $targetArmor = $args->{player}{armor};
my $targetGarment = $args->{player}{garment};
my $targetShoes = $args->{player}{shoes};
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: How do you view a player's item equipment?

#2 Post by EternalHarvest »

Data in Actor::Player object is from "actor_display" packet. For weapons and shields, there's no information but item ID, for headgears there are only sprite ID.

There is "show_eq" packet which contains all the information (if other player allowed it), it's received after using "showeq" command, but currently it doesn't save that information anywhere (maybe it should).
m1334
Noob
Noob
Posts: 18
Joined: 16 Oct 2010, 12:02
Noob?: Yes

Re: How do you view a player's item equipment?

#3 Post by m1334 »

Cool, I didn't even know there is a showeq command now. I'll look into it and hopefully find something to add to the plugin.