egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HL2 server list

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Anthony
Voice


Joined: 12 Jan 2008
Posts: 4

PostPosted: Tue Jan 15, 2008 8:37 am    Post subject: HL2 server list Reply with quote

Hi!,

Im looking for a script that will allow me to add my HL2 servers to it and people can then type !servers and they would recive a PM, with the server IP, amount of players on and the current map.

E.g.

<user>!servers
<bot>Server #1: 123.123.123.123:27015 12/24 de_dust2
<bot>Server #2: 123.123.123.123:27025 12/24 de_dust2
etc

I was thinking the servers could be added to the bot either through PM, or even using some kind of text document on the server that it reads from.

I used to have a script like this but its for "rbot" so its coded in "ruby" (i think) but i think some protocols have been updated since then because its not working anymore Razz.

If you think there might be somthing in that script that could help here i could post it.

Thanks for any help you can give me!

P.s. I realise this might take alot of time to do, so if anyone could recommend any scripts thats kind of like this, i could probaly workout how to edit them myself (i have basic TCL knowledge).


Thanks again for any help you can give me!

Anthony.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Jan 15, 2008 11:04 am    Post subject: Reply with quote

The first part of this request is simple, just a matter of using "puthelp" to show servers from a list. Showing users/map are a different matter tho, how would we obtain that information?

Maybe someday someone will actually post the specs for these servers so we can write scripts that communicate with the server.
Back to top
View user's profile Send private message
Anthony
Voice


Joined: 12 Jan 2008
Posts: 4

PostPosted: Tue Jan 15, 2008 11:57 am    Post subject: Reply with quote

Hi, thanks for your reply!

if its not possible to directly get the map/players do you think it would be possible to get the infomation from a website? E.g. I use this script called "lgsl" which basicly shows all the infomation i need but on a webpage (you can see example http://specialattack.net/monitor/).

Thanks!
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Jan 15, 2008 5:59 pm    Post subject: Reply with quote

Thats doable. Do you want the script to just use that webpage for data, rather than have a seperate list of servers in a text file?
Back to top
View user's profile Send private message
Anthony
Voice


Joined: 12 Jan 2008
Posts: 4

PostPosted: Wed Jan 16, 2008 1:01 am    Post subject: Reply with quote

Hi,

Well i supose i could just use the webpage data now (its hosted on the same server as the bot will be, so me adding servers to it etc won't be a problem Razz).

I only mensioned the text file idea because i thought you would need to store the servers somewhere if you was going to get the infomation directly.

Thanks again!

Anthony.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed Jan 16, 2008 2:27 am    Post subject: Reply with quote

Give me a few days, been busy here this week.
Back to top
View user's profile Send private message
Anthony
Voice


Joined: 12 Jan 2008
Posts: 4

PostPosted: Wed Jan 16, 2008 3:09 am    Post subject: Reply with quote

OK thanks sooo much!
Back to top
View user's profile Send private message
Wannabe
Voice


Joined: 10 Feb 2006
Posts: 17

PostPosted: Sat Feb 09, 2008 6:49 am    Post subject: Reply with quote

Btw, since almost all the requests like this are for hl & hl:s based games, this should cover most of them

http://developer.valvesoftware.com/wiki/Server_Queries


Although you will need UDP which means getting a UDP package for tcl.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber