Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 10-21-2006, 03:14 PM   #1 (permalink)
Forum Novice
 
Mideon's Avatar
 
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
Default IRC Bot To Work With Shard....

A recent post perked my interest concerning an IRC bot to work with a shard. A most generous individual posted a link to a rather nifty .NET based project which is in fact an IRC Bot....now I want to code my own Bot based off of this project....but I am uncertain on how to incorporate the bot into my shard.

It comes with a .dll..... can I simply put the .dll somewhere in the scripts folder and it'll be read properly? Or do I have to recompile the core to include it as some sort of reference?

The project can be found at...

http://thresher.sourceforge.net/

Sorry for the noobish quesiton, but I've never really done any serious coding outside of the RunUO setup.....


PS: (I also tried downloading the source scripts...and putting them into my scripts folder....but I was getting some unusual errors about the assemblies not being able to be made....)
__________________
A sense of community is the lifeblood of RunUO.
http://www.runuo.com/forums/announcements/67400-something-all-you-chew.html

Satire, man's greatest weapon (Flame Wars!)

The darkness is patient and in the end it always wins...but even the smallest light can overcome the blackest shadow.
Mideon is online now   Reply With Quote
Old 10-21-2006, 06:47 PM   #2 (permalink)
Forum Novice
 
Mideon's Avatar
 
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
Default

Nevermind I got it ;D
__________________
A sense of community is the lifeblood of RunUO.
http://www.runuo.com/forums/showthread.php?t=67400

Satire, man's greatest weapon (Flame Wars!)

The darkness is patient and in the end it always wins...but even the smallest light can overcome the blackest shadow.
Mideon is online now   Reply With Quote
Old 10-21-2006, 09:29 PM   #3 (permalink)
Forum Expert
 
Kenny164's Avatar
 
Join Date: Sep 2004
Location: Ballymena, Northern Ireland
Age: 23
Posts: 464
Send a message via MSN to Kenny164
Default

Hi, how did ya get it?

Just wondering, cos i might try something similar

Thanks!
__________________
Use the middle mouse button on Here for forum rules, if nothing happens get firefox and try again!!!
Kenny164 is offline   Reply With Quote
Old 10-21-2006, 09:34 PM   #4 (permalink)
Forum Novice
 
Mideon's Avatar
 
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
Default

I was just putting the wrong files in my scripts folder.

All you need to do....is download the source file.....take the "source" scripts and place them in your folder....and code your bot from there (or modify one of their example scripts)

There's an oddity in the Listener class...but it's an easy fix....
__________________
A sense of community is the lifeblood of RunUO.
http://www.runuo.com/forums/showthread.php?t=67400

Satire, man's greatest weapon (Flame Wars!)

The darkness is patient and in the end it always wins...but even the smallest light can overcome the blackest shadow.
Mideon is online now   Reply With Quote
Old 12-27-2006, 03:37 AM   #5 (permalink)
Forum Expert
 
Nott32's Avatar
 
Join Date: Feb 2006
Location: In front of my computer...
Age: 16
Posts: 562
Send a message via MSN to Nott32 Send a message via Yahoo to Nott32
Default

Any chance of you posting this? I am trying to figure it out now but im a newb at C#......
__________________
Everytime a puppy gets hit by a car from me smoking I take another drag, point, and laugh.
Nott32 is offline   Reply With Quote
Old 12-28-2006, 06:58 PM   #6 (permalink)
Forum Novice
 
Mideon's Avatar
 
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
Default

Ah my apologies, I totally did not see this post! lol.

What you do is.....

Download the IRC bot source files.... here.

You then need to put these source files (aka .cs files) into a folder in your scripts folder.....perhaps Scripts/IRC/ or something.....

Then you just need to add some variables and an Initialize() method to Basic.cs

Example:...

Code:
public class Basic
    {
        public static Basic IRCBot = new Basic();
        
        public static void Initialize()
        {
            IRCBot.start();
        }
This essentially creates a static instance of the Basic irc bot...and starts it up when you boot up the shard.

Filter through Basic.cs to set in your channel specific information and such. But it's a well commented file. Just read it over.

It's been so long since I actually did this from scratch...so I can't remember what the listener issue was....(just run your server on debug mode a few times and you'll find it easy).

I hope this helps somewhat.
__________________
A sense of community is the lifeblood of RunUO.
http://www.runuo.com/forums/showthread.php?t=67400

Satire, man's greatest weapon (Flame Wars!)

The darkness is patient and in the end it always wins...but even the smallest light can overcome the blackest shadow.
Mideon is online now   Reply With Quote
Old 12-29-2006, 11:55 PM   #7 (permalink)
Forum Expert
 
Nott32's Avatar
 
Join Date: Feb 2006
Location: In front of my computer...
Age: 16
Posts: 562
Send a message via MSN to Nott32 Send a message via Yahoo to Nott32
Default

Thanks for the post! I will try and get this set up as soon as I can get help with a server crash :-)
~Nott32
__________________
Everytime a puppy gets hit by a car from me smoking I take another drag, point, and laugh.
Nott32 is offline   Reply With Quote
Old 12-30-2006, 12:41 AM   #8 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

Hmmm... Then maybe you should post about crash help instead of a script you don't even have installed?
Malaperth is offline   Reply With Quote
Old 12-30-2006, 02:47 AM   #9 (permalink)
Forum Expert
 
Nott32's Avatar
 
Join Date: Feb 2006
Location: In front of my computer...
Age: 16
Posts: 562
Send a message via MSN to Nott32 Send a message via Yahoo to Nott32
Default

Fixed the crash, the save file got corrupted had to load a different one...ANYWAYS got it working just gonna figure out how I can make a gump were the user can chat on the IRC :-)
__________________
Everytime a puppy gets hit by a car from me smoking I take another drag, point, and laugh.
Nott32 is offline   Reply With Quote
Old 12-30-2006, 04:44 PM   #10 (permalink)
Forum Novice
 
Mideon's Avatar
 
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
Default

Awesome, glad to hear it.

It's a really nice bot. I was quite impressed with it...there's lots you can do! ;D

Have fun, and I hope you had a good christmas/holidays/ and will have a great new year!
__________________
A sense of community is the lifeblood of RunUO.
http://www.runuo.com/forums/showthread.php?t=67400

Satire, man's greatest weapon (Flame Wars!)

The darkness is patient and in the end it always wins...but even the smallest light can overcome the blackest shadow.
Mideon is online now   Reply With Quote
Old 12-11-2007, 01:36 PM   #11 (permalink)
Forum Novice
 
Join Date: May 2004
Age: 28
Posts: 285
Default

Quote:
Originally Posted by Mideon View Post
Ah my apologies, I totally did not see this post! lol.

What you do is.....

Download the IRC bot source files.... here.

You then need to put these source files (aka .cs files) into a folder in your scripts folder.....perhaps Scripts/IRC/ or something.....

Then you just need to add some variables and an Initialize() method to Basic.cs

Example:...

Code:
public class Basic
    {
        public static Basic IRCBot = new Basic();
        
        public static void Initialize()
        {
            IRCBot.start();
        }
This essentially creates a static instance of the Basic irc bot...and starts it up when you boot up the shard.

Filter through Basic.cs to set in your channel specific information and such. But it's a well commented file. Just read it over.

It's been so long since I actually did this from scratch...so I can't remember what the listener issue was....(just run your server on debug mode a few times and you'll find it easy).

I hope this helps somewhat.

I dont get it I followed what you saying but my shard 2.0 giving me wird errors so can you give me the info how to do this the right one? can you show me on here set ups ty
Rob24 is offline   Reply With Quote
Old 12-11-2007, 01:45 PM   #12 (permalink)
Forum Expert
 
stormwolff's Avatar
 
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
Default

The IRC Chat feture in the knives chat package is more recent and works with RunUO 2.0. With an upgrade posted in the topic it has some basic bot functions. You may want to give that a shot.
stormwolff is offline   Reply With Quote
Old 12-11-2007, 01:57 PM   #13 (permalink)
Forum Novice
 
Join Date: May 2004
Age: 28
Posts: 285
Default

Quote:
Originally Posted by stormwolff View Post
The IRC Chat feture in the knives chat package is more recent and works with RunUO 2.0. With an upgrade posted in the topic it has some basic bot functions. You may want to give that a shot.
I am looking for more with a full Bot system that is a Ai/player that do things like a player and when a real player talk to it ..it talk back like a real players and so on.....do this system do that?
Rob24 is offline   Reply With Quote
Old 12-11-2007, 02:46 PM   #14 (permalink)
Forum Expert
 
stormwolff's Avatar
 
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
Default

Quote:
Originally Posted by Rob24 View Post
I am looking for more with a full Bot system that is a Ai/player that do things like a player and when a real player talk to it ..it talk back like a real players and so on.....do this system do that?
Nope, knives chat is more or less just allows in game players to chat with irc users and irc users to chat with in game users. The only bot features I think are seen and player status.
stormwolff is offline   Reply With Quote
Old 12-11-2007, 02:50 PM   #15 (permalink)
Forum Novice
 
Mideon's Avatar
 
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
Default

Quote:
Originally Posted by Rob24 View Post
I dont get it I followed what you saying but my shard 2.0 giving me wird errors so can you give me the info how to do this the right one? can you show me on here set ups ty
This Bot is not compatible with .Net 2.0 to my knowledge. You'd have to convert it's scripts over to 2.0 which should certainly be possible. Another route would be to find an IRC bot that is based on the .Net 2.0 framework. You could also check if this bot has ever been updated to 2.0.

Hopefully you figure something out, if you do post it here so others can also share in the knowledge, I'm sure they'd love you for it

Cheers.
__________________
A sense of community is the lifeblood of RunUO.
http://www.runuo.com/forums/showthread.php?t=67400

Satire, man's greatest weapon (Flame Wars!)

The darkness is patient and in the end it always wins...but even the smallest light can overcome the blackest shadow.
Mideon is online now   Reply With Quote
Old 12-12-2007, 04:06 PM   #16 (permalink)
Forum Novice
 
Join Date: May 2004
Age: 28
Posts: 285
Default

Quote:
Originally Posted by Mideon View Post
This Bot is not compatible with .Net 2.0 to my knowledge. You'd have to convert it's scripts over to 2.0 which should certainly be possible. Another route would be to find an IRC bot that is based on the .Net 2.0 framework. You could also check if this bot has ever been updated to 2.0.

Hopefully you figure something out, if you do post it here so others can also share in the knowledge, I'm sure they'd love you for it

Cheers.
Ok if you want a update of this new Bot system for 2.0 I got 1/2 done maybe we all can give me info of things too but anyway here is the info....

Bot system .........it have to Run with Razor for the bot to do what you want that bot to do like say Mining but you dont want all the bots runing on your pc system is you dont have like say 8 bots runing is making lag on your pc Now for the things i am doing I have a system tthat I am runing for my website so its not runing on pc its runing off of the online world now the website is making the Bots login and run But the thing is we need to make it run with UO too and I am trying to make it run with in website/uo and I did that and its working good .........I will give you all more updates later on
Rob24 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5