Jump to content
TrinityCore

.debug getitemvalue etc.


TecDian
 Share

Recommended Posts

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.

Link to comment
Share on other sites

It's a pretty wide variety of values., the specific command (getvalue) to the handler (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.
 

  • Upvote 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...