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

[Plugin] BasicLog - Simple Chat to Log

Tricen

Community Developer
Joined
Jan 21, 2010
Messages
331
Reaction score
6
BasicLog

Welcome, this is my first official release on the forums. It's nothing major at all. I had a project back in the day that was, to say the least, more complex. However, after taking a extended break from the computer I'm getting back into the swing of things. Relearning the way Honorbuddy works and allows the plugins to handle certain capabilities. Glad to see how much this software has progressed since I first started using it.


The plugin

The idea behind this plugin is simple. A lot of users run 1 character are typically are casual players. For the ones who don't baby sit the bot, nor care to setup a more complex monitoring suite this will work perfect for them. This take's 70% of the chatter and writes it to a file which can be easily reviewed at anytime to see what chatter events took place, who said what, and exactly what time and day this was.

Version 1.01 (TXT FILE)

Revamped (just alittle)​
Now supports Multi botting with RealmName & character text files for each plugin ran. This allows easy access to each different chat to review.

Version 1.51 (Beta) (HTM WEB FILE)

I rewrote the way the original logs to include a different path / directory structure to support multiple botting. So instead of it writing to one centralized text file, it creates a RealmName Folder and a HTML file under the characters name. This allows you to directly select each character you wish to view log files allowing you to simplify what bot received what.

When the bot receives a event trigger (refer to core features), it will log that event to the HTML file while color coding the message for easier viewing.

The directory setup looks like the following (Example)
PHP:
C:HonorBuddyPluginsBasicLogHakkarSomename.htm

Everything thing is stored within the plugin folder "BasicLog".

Core Features

TXT IS NOT COLOR CODED
Currently supports (HTM IS COLOR CODED):


  • [*=1]Whisper
    [*=1]Yell
    [*=1]Say
    [*=1]Guild
    [*=1]Party


File location

Currently non-modifiable unless you know how to change the variables to what you desire. No support will be provided for that.

All files are currently located within the BasicLog plugin folder.

Error reporting & improvements

If you receive any errors please attach a log file. I have ran this plugin quite often without failure, but things change quickly. As well just like any other developer, I would love feedback. I understand this is a simple plugin, and not much expected from it. But this is a learning tool for me. And improving what is here, will get me further along.



Credits

Jimmy06 for NameNotify, I reused most of his code to tweak it for what I wanted it to do.
https://www.thebuddyforum.com/honorbuddy-forum/plugins/monitoring/75358-plugin-namenotify.html

mrsunday1986 for a different approach to the way it writes.

Also, huge credit to every developer, staff member, and member for the continued support that keeps this bot running. I've used this bot for some time, and never have I see something come this far. This bot has completely changed the game, which can be attributed to the countless hours the core developers, community developers, and forum staff put in to this. There are way to many names to write. Just know that I recognize all of you.



Change Log

V1.51 (HTM)

PHP:
Change Log version 1.5
- Now creates a subfolder within BasicLog with the name of the realm
- Now creates a HTM file under the name of the character for web browser viewing
- Color Codes all messages received for easier viewing 
- Reduced amount of messages shown to HB Log output.
- Fixed a error with Party and Yell

V1.01 (TXT)
PHP:
Change Log version 1.01
- Now creates a subfolder within BasicLog with the name of the realm
- Now creates a TXT file under the name of the character for web browser viewing

 

Attachments

Last edited:
Good Job!
it's better to modify log file location like this:
PHP:
      string file = @"plugins\BasicLog\"+ StyxWoW.Me.RealmName + @"\" +StyxWoW.Me.Name + ".txt";
 
Good Job!
it's better to modify log file location like this:
PHP:
      string file = @"plugins\BasicLog\"+ StyxWoW.Me.RealmName + @"\" +StyxWoW.Me.Name + ".txt";

Thank you for that. Actually pretty smart. Wasn't really thinking about multiple bots using this, but that would actually make it work. Specially down to character and realm. I will put that into the next release as well. Got more going into it soon.
 
i recommend to generate a html file,and show chat with different colors,so we can easily find whispers and other type chat,like this:

PHP:
string file = @"plugins\BasicLog\"+ StyxWoW.Me.RealmName + @"\" +StyxWoW.Me.Name + ".html";  

private void dowhisper(Chat.ChatWhisperEventArgs whp)
        {
			string doWrite = "<p style='color:red'>"+DateTime.Now + "[BasicLog Whisper] " + whp.Author +": " + whp.Message + "</p>" +Environment.NewLine;
			Logit(doWrite);
        }

it will be perfect if the newest chat would be writed in first line.
 
Version 1.5 Beta (HTM)

PHP:
Change Log version 1.5
- Now creates a subfolder within BasicLog with the name of the realm
- Now creates a HTM file under the name of the character for web browser viewing
- Color Codes all messages received for easier viewing 
- Reduced amount of messages shown to HB Log output.

Thanks again!

Please let me know how this works, have not tested it fully other then making sure it correctly logs.
 
Last edited:
Version 1.01 (TXT)

PHP:
Change Log version 1.01
- Now creates a subfolder within BasicLog with the name of the realm
- Now creates a TXT file under the name of the character for web browser viewing
 
Version 1.51
PHP:
Change Log
- Fixed a error with Party and Yell
 
Back
Top