Find The Items Id Of The Players' Equipment

Hello,

I’m searching for a function which returns the equipment list of a character to get the id’s of each equipment piece.

I suppose that this is a member function of class Player but I don’t find it /emoticons/default_wink.png

Thanks in advance /emoticons/default_smile.png

Energizer.

Hi!

You can checkout the Player::Create function (src/server/game/Entities/Player/Player.cpp)

Line 1151 loops through inventory items

https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Entities/Player/Player.cpp#L1151

Hope it helps!

Thank you !

It was what I needed /emoticons/default_wink.png

Thanks for your help,

have a good day !

You’re welcome!

Have a good day too!