.debug getitemvalue etc.

Can anyone please enlighten me what #field in the following commands mean?

.debug getitemvalue (Syntax: .debug getitemvalue #itemguid #field [int|hex|bit|float])

.debug getvalue (Syntax: .debug getvalue #field [int|hex|bit|float])

Where are the values from, which table, db? I would be very grateful.

It’s a pretty wide variety of values., the specific command (getvalue) to the handler ([COLOR=rgb(51,51,51)]HandleDebugGetValueCommand) and then returns the target’s value of the key you specified. Similar to .npc info, but for specific values. Though the .debug has a wider scope than .npc info.

https://github.com/TrinityCore/TrinityCore/blob/master/src/server/scripts/Commands/cs_debug.cpp

If you google ".debug getvalue mangos" you get quite a log of hits, [good example](http://webcache.googleusercontent.com/search?q=cache:00wthBmQWX4J:www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-emulator-servers/wow-emu-guides-tutorials/283544-macros-mangos-using-debug-modifying-your-character.html+&cd=2&hl=en&ct=clnk&gl=us).

Well, the example was surprising.^^

Thanks for the answer, it’ll help me to find out more. Nonetheless I wonder if there shouldn’t be a thorough documentation for this (and other stuff). There you have powerful tools for development and testing, but you can’t use them properly because you don’t know what they are for and how to operate them. Seems a bit nuts.

.debug getvalue expects the #field parameter to be the numeric value of these https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Entities/Object/Updates/UpdateFields.h

different in 3.3.5 and master, getitemvalue might not work on master

Thanks a lot - exactly what I was looking for!