I generally use the http package for these kinds of scripts.. But sockets are not that much harder, the thing to keep in mind, is that you have to "gets" each line from a socket, whereas the "geturl" function from the http package gets the entire file at once (unless you do other things to limit how many lines you pull in) Take a look at the weather script I (re)did, it uses both sockets or http package (configurable option).
atreides wrote:
It connects to a server (CounterStrike)
It reports round scores and player kills to the channel.
URL for where to get scores?
Well I dont think you can get this information from a URL. There is a program called HLSW that can connect to servers and it has a scorebot feature of its own. I think this script would be a bit harder, and you would have to have HLSW.
telnet: Unable to connect to remote host: Connection refused
I need the address and port number you connect to to get scores from. And preferably some protocol specifications..Obviously the other software you mention understands the protocol to be able to pull the data. I have not the vaguest idea about this game thing, but if I could find out how to pull in the data, I can make a script for it. But I can't do anything without being able to connect to the right server and the right port number. The address and port number you gave me are invalid.
rosc2112 wrote:telnet: Unable to connect to remote host: Connection refused
I need the address and port number you connect to to get scores from. And preferably some protocol specifications..Obviously the other software you mention understands the protocol to be able to pull the data. I have not the vaguest idea about this game thing, but if I could find out how to pull in the data, I can make a script for it. But I can't do anything without being able to connect to the right server and the right port number. The address and port number you gave me are invalid.
I really wouldnt no then, sorry. I wouldnt sweat this. I could use the software. Thanks so much