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

[Plugin] IRC Logger

Nuls

New Member
Joined
Jun 14, 2012
Messages
7
Reaction score
0
Probably the most unneeded plugin ever.. But oh well! :-)

IRC Logger will message the freshly picked up items to your desired irc server / channel (including some stats about the item)

Note: Yes, I know, the IRC class is very rudimentary and I should be ashamed - anyhow, I was a little bored. :-P

Instructions:

1. Download IRCLogger.cs
2. Open the file and change line 72 (pretty self explanatory I guess)
3. Create a new folder in the Plugins/ and put IRCLogger.cs in that
4. Have fun using an absolutely nonsense plugin!

ua8pc.png
 

Attachments

Last edited:
Yeah, I'm experimenting with properties right now. Some seem to be always false per default..
 
Updated the plugin a little. Items (depending on their Quality) are now colorized.
 
Thanks for this I have found it rather useful, here is something I added in.

private void _HandleRequests()
{
ThreadPool.QueueUserWorkItem(delegate {
_SendEnqueuedMessages();

var buffer = String.Empty;
try {
while ((buffer = f_StreamReader.ReadLine()) != null) {
if (buffer.ToLower().Contains("ping"))
Send(buffer.Replace("I", "O"));

// Now that's what I call RFC1459 handling! :pp
if (buffer.Contains("255") || buffer.Contains("265") || buffer.Contains("266") || buffer.Contains("422"))
Send(String.Format("JOIN {0}", f_Channel));

if (buffer.Contains(".gold"))
{
if(ZetaDia.IsInGame)
{
string gold = ZetaDia.Me.Inventory.Coinage.ToString("#,#", CultureInfo.InvariantCulture);
string GPH = Zeta.CommonBot.GameStats.GoldPerHour.ToString("#,#", CultureInfo.InvariantCulture);
string msg = String.Format("\x0003{0}{1}\x0003", 7, "Gold: " + gold + " GPH: " + GPH);

SendChannelMessage(msg);
}
}




}
} catch {
}
});
}


allows you you to say .gold and the bots will reply with current gold and gold per hour.
 
Pls update this plugin to show item lvl also :) or full stats after identify
 
THis is actually very useful, if it can tell you somehow that the bot has stopped working or crashed?

Im having alot of issues with my multple bots crashing and not restarting when needed so every few hours I need to check and remote login from work and often I see they have stopped, and they might have stopped for many hours without me knowing

Can this tell you if the bot has stopped working or anything?

Maybe just the logging will stop and that will notify?

if so ill give this a shot
 
THis is actually very useful, if it can tell you somehow that the bot has stopped working or crashed?

Im having alot of issues with my multple bots crashing and not restarting when needed so every few hours I need to check and remote login from work and often I see they have stopped, and they might have stopped for many hours without me knowing

Can this tell you if the bot has stopped working or anything?

Maybe just the logging will stop and that will notify?

if so ill give this a shot

Here's the output on mIRC, as you can see if the bot crash you'll see it right away.

my only wish is that we can see more stats such as gold per hours, items level, etc

.:10?23?12am:. ( +DB-001 ) Found new item: [Type: Weapon | Name: Vigorous Slag Hammer of Malice, Available Sockets: 0, Item Quality: Magic2, DPS: 727,65, Max Damage: 0, Attacks per Second: 0,9]
.:10?24?53am:. ( +DB-001 ) Found new item: [Type: Armor | Name: Beguiling Doom Treads of Omens, Available Sockets: 0, Item Quality: Magic2, Armor: 252,8333, Armor Bonus: 0, Armor Total: 252]
.:10?25?04am:. ( +DB-002 ) Found new item: [Type: Weapon | Name: Exsanguinating Titan Sword of Extermination, Available Sockets: 0, Item Quality: Magic2, DPS: 405,5, Max Damage: 0, Attacks per Second: 1]
.:10?25?04am:. ( +DB-002 ) Found new item: [Type: Armor | Name: Untarnished Doom Treads of the Fortress, Available Sockets: 0, Item Quality: Magic2, Armor: 263,8333, Armor Bonus: 200, Armor Total: 463]
.:10?28?17am:. ( +DB-002 ) Found new item: [Type: Armor | Name: Ring of the Mind, Available Sockets: 0, Item Quality: Magic1, DPS: 0, Max Damage: 0, Attacks per Second: 0]
.:10?28?47am:. :::: ( ? ) Quits: +DB-001 ( [email protected] ) quit IRC [ Connection closed ]
 
Back
Top