|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Novice
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
|
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. |
|
|
|
|
|
#2 (permalink) |
|
Forum Novice
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
|
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. |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
|
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. |
|
|
|
|
|
#6 (permalink) |
|
Forum Novice
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
|
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();
}
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. |
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
|
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. |
|
|
|
|
|
#10 (permalink) |
|
Forum Novice
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
|
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. |
|
|
|
|
|
#11 (permalink) | |
|
Forum Novice
Join Date: May 2004
Age: 28
Posts: 285
|
Quote:
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 |
|
|
|
|
|
|
#12 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
|
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.
|
|
|
|
|
|
#15 (permalink) | |
|
Forum Novice
Join Date: May 2005
Location: Canada
Age: 24
Posts: 536
|
Quote:
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. |
|
|
|
|
|
|
#16 (permalink) | |
|
Forum Novice
Join Date: May 2004
Age: 28
Posts: 285
|
Quote:
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 |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|