Valhalla Legends Forums Archive | General Programming | IRC Bot / Script

AuthorMessageTime
Krush
I don't know where exactly to post this.  But I'm attempting to either find a irc bot that I can get the code for to look at, or scripts to run through Your-Bot that can help me check in real-time the status of a World of Warcraft server so players can just check with the bot to see if the server is up or down.

Anyone got ideas where to start me out at?
January 14, 2005, 1:38 AM
hismajesty
pscode.com for the irc stuff
maybe ping the server? You might have to do it a certain way though, I'm not sure if the WoW servers react to being pinged the same as regular bnet servers.
January 14, 2005, 1:46 AM
Krush
[quote author=hismajesty[yL] link=topic=10189.msg95147#msg95147 date=1105667165]
pscode.com for the irc stuff
maybe ping the server? You might have to do it a certain way though, I'm not sure if the WoW servers react to being pinged the same as regular bnet servers.
[/quote]

That's what I was thinking, but according to Blizzard they don't know of a way to check the server status with a bot.  I emailed them about ping and no response yet.

Where on pscode.com am I supposed to be looking for the mirc stuff?
January 14, 2005, 1:58 AM
R.a.B.B.i.T
Search for "mirc" -.-
January 14, 2005, 2:50 AM
Krush
[quote author=R.a.B.B.i.T link=topic=10189.msg95152#msg95152 date=1105671057]
Search for "mirc" -.-
[/quote]

That gave me alot of useless junk.  I didn't see anything that stuck out as a real use.
January 14, 2005, 2:54 AM
Stealth
AIRC might be what you're looking for, if you're writing in Visual Basic.
January 14, 2005, 4:11 AM
Krush
[quote author=Stealth link=topic=10189.msg95168#msg95168 date=1105675886]
AIRC might be what you're looking for, if you're writing in Visual Basic.
[/quote]

I'm not too familar with vb could you tell me if there is a function in there that is parsing the chat already?
January 14, 2005, 7:06 AM
Krush
I've got some code to handle the pinging of the server.  Is there anyway short of asking Blizzard for me to get the ip of the servers?
January 14, 2005, 8:00 AM
Kp
Sure.  Ask WoW's binary. :)  More specifically, monitor the servers it contacts when you get online to play.
January 14, 2005, 4:44 PM
Krush
[quote author=Kp link=topic=10189.msg95218#msg95218 date=1105721079]
Sure.  Ask WoW's binary. :)  More specifically, monitor the servers it contacts when you get online to play.
[/quote]

Ya i got it through netstats.

I only need to add 3 things at the moment:
Another button after DCC (that starts the server pinging).
And 2 options in Perferances, one that lets you type in things to Perform on connect, and another that lets you input the WoW server IP to ping.

If someone that knows vb could help me out that'd be great, i'm mostly a c/c++ guy :(
January 14, 2005, 6:56 PM
Krush
Reply from blizz

Hello,

Our servers do not respond to communications attempts by programs other then our own, pings fail and traceroutes time out.

We are making head way in improving the server status page and how it relays information so that might be an angle to pursue.

Anyone have an idea of how I could check http://www.worldofwarcraft.com/serverstatus/ for a specific servers status through a bot?
January 15, 2005, 1:42 AM
j0k3r
[quote author=Krush[LM] link=topic=10189.msg95266#msg95266 date=1105753364]
Anyone have an idea of how I could check http://www.worldofwarcraft.com/serverstatus/ for a specific servers status through a bot?
[/quote]
I've never done this before and have little programming experience, but what the hell. Get the HTML code for the page, parse through it to find which server you want to check (serverStatus1 goes with Agrammar, goes on), and look at the gif image associated with it (the first cell).

[code]<td class = "serverStatus1" align = "center"><img src = "/shared/wow-com/images/icons/serverstatus/uparrow.gif" width = "18" height = "18"></td>
<td class = "serverStatus1" NOWRAP><b class = "smallBold" style = "color: #234303;">Aggramar</b></span></td>
<td class = "serverStatus1" NOWRAP><small style = "color: #234303;">Normal</small></td>
<td class = "serverStatus1" align = "left"><small style = "color: #535600;">Medium</small></td>
[/code]
Agrammar is serverStatus1, uparrow.gif would be the status (downarrow.gif would be down I presume), and the normal/medium is the other two things.
HTH.
January 15, 2005, 2:40 AM
hismajesty
There's a way to get around Blizzard not replying to ping on regular bnet servers, I don't recall how though. I know LoRd did it so maybe he'll see this thread and post. :)
January 15, 2005, 2:58 AM
Krush
[quote author=j0k3r link=topic=10189.msg95268#msg95268 date=1105756837]
[quote author=Krush[LM] link=topic=10189.msg95266#msg95266 date=1105753364]
Anyone have an idea of how I could check http://www.worldofwarcraft.com/serverstatus/ for a specific servers status through a bot?
[/quote]
I've never done this before and have little programming experience, but what the hell. Get the HTML code for the page, parse through it to find which server you want to check (serverStatus1 goes with Agrammar, goes on), and look at the gif image associated with it (the first cell).

[code]<td class = "serverStatus1" align = "center"><img src = "/shared/wow-com/images/icons/serverstatus/uparrow.gif" width = "18" height = "18"></td>
<td class = "serverStatus1" NOWRAP><b class = "smallBold" style = "color: #234303;">Aggramar</b></span></td>
<td class = "serverStatus1" NOWRAP><small style = "color: #234303;">Normal</small></td>
<td class = "serverStatus1" align = "left"><small style = "color: #535600;">Medium</small></td>
[/code]
Agrammar is serverStatus1, uparrow.gif would be the status (downarrow.gif would be down I presume), and the normal/medium is the other two things.
HTH.
[/quote]

You'd think that at first look but serverStatus1 is just the color of the row in the table it alternates between that and serverStatus2
January 15, 2005, 3:12 AM
j0k3r
Ah, well you get the idea I'm sure.
January 15, 2005, 4:57 AM
Krush
[quote author=j0k3r link=topic=10189.msg95273#msg95273 date=1105765057]
Ah, well you get the idea I'm sure.
[/quote]

I'm assuming you want me to parse that webpage and see if the picture is up or down for my server?

I still really don't know how to work through this VB code, if someone has a c/c++ version of a irc thing that would be great.  And I tried eggdrop and i couldn't figure out how to get it to compile.
January 15, 2005, 5:05 AM
hismajesty
http://pscode.com/vb/scripts/ShowCode.asp?txtCodeId=7316&lngWId=3

The IRC protocol is essentially text based, as long as you have knowledge of sockets in your chosen language, it shouldn't be hard at all to do it yourself. Here's a link to all the information on the protocol:

http://www.irchelp.org/irchelp/rfc/
January 15, 2005, 6:21 AM
mynameistmp
Instead of writing an entire IRC front end you should consider writing a plugin for an existing interface. For example the XChat client. They distribute binaries for Windows or Linux so you're good on either platform. The client's C-Plugin interface is in C which you say you know, and it gives you full control over the client's GUI, any incoming text events, any outgoing text events, context, etc. The API is very transparent and discoverable. With it you can write flexible, functional plugins in about 25-40 lines of C code. Writing an entire irc client will take you a considerable amount of effort and time. Especially one as feature-rich and intensively bugtested as XChat. I think this would more than suffice.

http://www.xchat.org/docs/
January 17, 2005, 4:48 AM
UserLoser.
[quote author=hismajesty[yL] link=topic=10189.msg95269#msg95269 date=1105757894]
There's a way to get around Blizzard not replying to ping on regular bnet servers, I don't recall how though. I know LoRd did it so maybe he'll see this thread and post. :)
[/quote]

All you do is make an attempt to connect to one of the servers and calculate the difference of the starting and ending time
January 17, 2005, 5:17 AM
j0k3r
[quote author=Krush[LM] link=topic=10189.msg95274#msg95274 date=1105765506]
I'm assuming you want me to parse that webpage and see if the picture is up or down for my server?
[/quote]
I don't want you to, it's a suggestion.
January 17, 2005, 11:58 AM
Krush
[quote author=UserLoser link=topic=10189.msg95488#msg95488 date=1105939062]
[quote author=hismajesty[yL] link=topic=10189.msg95269#msg95269 date=1105757894]
There's a way to get around Blizzard not replying to ping on regular bnet servers, I don't recall how though. I know LoRd did it so maybe he'll see this thread and post. :)
[/quote]

All you do is make an attempt to connect to one of the servers and calculate the difference of the starting and ending time
[/quote]

could you show me a quick code example?
January 18, 2005, 1:25 AM
Kp
[quote author=Krush[LM] link=topic=10189.msg95570#msg95570 date=1106011533][quote author=UserLoser link=topic=10189.msg95488#msg95488 date=1105939062][quote author=hismajesty[yL] link=topic=10189.msg95269#msg95269 date=1105757894]There's a way to get around Blizzard not replying to ping on regular bnet servers, I don't recall how though. I know LoRd did it so maybe he'll see this thread and post. :)[/quote]All you do is make an attempt to connect to one of the servers and calculate the difference of the starting and ending time[/quote]could you show me a quick code example?[/quote]

[code]
$now = time();
&connect_to_WoW();
$then = time();
print "Took " . ($then - $now) . " seconds.";[/code]
January 18, 2005, 3:14 AM
Krush
So what do i need to connect to the server?

btw: the bot is up and running on irc.us.gamesurge.net in #kiljaeden #kil'jaeden for now and it just parses the webpage blizzard has, but i'd like to have another form of checking
January 18, 2005, 11:59 AM

Search