What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Plugin - Dev] HBConsole - a plugin that allows you use C#/Lua directly from a plugin

highvoltz

Well-Known Member
Joined
Mar 22, 2010
Messages
1,729
Reaction score
141
Attachment removed in preparation for new release but unable to upload new release because of server issues...Will try again sometime later.

This will run C# or lua directly from a text edit box.
Able to plug stuff directly from HB.

Short-cuts/Wrappers

  • Log() - Prints to the Output Log
  • Api (string TypeName); - dumps all the different types from typeName e.g. Api("WoWAura");
  • Me - ObjectManager.Me
  • F5 key - Executes the C# code.
  • ClearLog() - clears the log
  • Units - returns list of all WoWUnits
  • Objects - Returns a list of all WoWObjects
  • Items - Returns a list of all WoWItems
  • GameObjects - Returns a list of all WoWGameObjects
  • DynamicObjects - Returns a list of all WoWDynamicObjects
  • Players - Returns a list of all WoWPlayers
- credits to CnG for the plugin name.
HB Console_2013-02-12_15-25-20.webp

HBConsole 1.4

  • bug fix - thanks to x11r6

HBConsole 1.3

  • The Gui is no longer shown as a modal dialog box.
HBConsole 1.2

  • The Error output now uses better formatting.
  • Added reference to GB2 and AB
  • The wrappers should work again. e.g Log()
  • ObjectManager.Update() is called if HB isn't running

Credits


  • mastahg - Log(format.ToString(),.. change suggestion.
 

Attachments

Last edited:
Awesome mate, this will definitely be handy! +rep

EDIT: Oh ok, need to spread some rep first. :(

EDIT2: Would be sweet for something like this which doesn't need you to login to WoW/Honorbuddy first because that can be a pain in the arse. Some form of stand alone app.
 
Last edited:
Awsome, really good work. +rep for your work
 
Sorry it was late at night and I forgot to upload it :). I updated original post with link.
 
I have a feeling this was made after my help requests :P
 
Update
Renamed plugin and added features,. see 1st post for details.
 
cool, ive been meaning to write a beanshell clone for HB, now no need :)
 
can u please import common namespaces such as those containing IEnumerable etc
 
HBConsole 1.1

  • Included more common namespaces.
  • Added reference Tripper.Tools.dll as well as System.Core.dll (for linq support)
 

Attachments

Call ObjectManager.Update() before you run the c# eval imo, I wasn't running a bot and it was confusing the hell out of me when I was getting weird results.

Also you should ask to have this included in HB, absolute lifesaver.
 
I know this is a little offtopic but is there any chance someone could code a script to just dump nearby objects by name and id?
Some of them arnt on wowhead for whatever reason
 
HBConsole 1.2

  • The Error output now uses better formatting.
  • Added reference to GB2 and AB
  • The wrappers should work again. e.g Log()
  • ObjectManager.Update() is called if HB isn't running
 
Last edited:
HBConsole 1.3

  • The Gui is no longer shown as a modal dialog box.
 
I keep getting this error:
0) Impossibile trovare il file di metadati 'Honorbuddy.exe'
0) Impossibile trovare il file di metadati 'Tripper.Tools.dll'

I really wanted a tool like this :(

EDIT:
Changed
Code:
System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe",
"Tripper.Tools.dll",

TO:
Code:
"./" + System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe",
"./Tripper.Tools.dll",

and it now works :)
 
Last edited:
Got tired of adding .Tostring() to everything, and added
Code:
            "static public void Log ( object format, params object[] arg)" +
            "{" +
                "HighVoltz.HBConsole.Log(format.ToString(),arg);" +
            "}" +
to the plugin so i wouldnt have to anymore
 
Got tired of adding .Tostring() to everything, and added
Code:
            "static public void Log ( object format, params object[] arg)" +
            "{" +
                "HighVoltz.HBConsole.Log(format.ToString(),arg);" +
            "}" +
to the plugin so i wouldnt have to anymore

Change is now in current version. thanks for the suggestion.
 
Was trying log vectors, and it was not happy with me.

Code:
"using Tripper.Tools.Math;" +

and within public static void Log(System.Drawing.Color c, string text, params object[] arg)
Code:
            if (arg.Any())
            {
                text = string.Format(text, arg);
            }
 
HBConsole 1.5. includes some big changes
* new UI.
* now supports saving snippets of code.

Added the following shortcuts.


  • ClearLog() - clears the log
  • Units - returns list of all WoWUnits
  • Objects - Returns a list of all WoWObjects
  • Items - Returns a list of all WoWItems
  • GameObjects - Returns a list of all WoWGameObjects
  • DynamicObjects - Returns a list of all WoWDynamicObjects
  • Players - Returns a list of all WoWPlayers
 
Back
Top