TecDian Posted February 1, 2017 Report Share Posted February 1, 2017 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 More sharing options...
Ibeatdungeon Posted February 2, 2017 Report Share Posted February 2, 2017 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. 1 Link to comment Share on other sites More sharing options...
TecDian Posted February 2, 2017 Author Report Share Posted February 2, 2017 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 More sharing options...
Shauren Posted February 2, 2017 Report Share Posted February 2, 2017 .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 1 Link to comment Share on other sites More sharing options...
TecDian Posted February 2, 2017 Author Report Share Posted February 2, 2017 Thanks a lot - exactly what I was looking for! Link to comment Share on other sites More sharing options...
Recommended Posts