imported_PHATBASS
11-04-2003, 05:11 PM
I want to send some messages by the console or anything else on the server at all 10 minutes . I don't want to use any autokick or 3rd party software because my computer is not always online .
Anyone know how?
imported_BludGeonT-EQ
11-05-2003, 09:12 PM
Yes,
If you have a linux box, you can do it quite easily assuming you have a little scripting background. A simple shell script can do this for you with also using an external rcon-command program such as kkrcon, or webrcon. Do a search on these names on google and you will find them.
What they do is run from a linux command line, you specify the server IP, the port, the rconpassword and what you want it to do.
For example,
webrcon -i IPADDRESS -p 27980 -rcon RCONPW say "Thank you for playing on our server"
These are the exact arguments, but you seen that the example above makes it quite easy to run.
So you could create a text file in linux using VI or some other edit, and on each line have what you want it to say, such as
messages.txt (example name)
-----------------
Your are playing on my server
Visit our website at www.earthquakegaming.com
Cheaters will be banned for life
no racism
check out our other servers online
we are recruiting, see website for details
so then, you can create a small sh script that basically says
while :
do
for i in `cat messages.txt`
do
webrcon -i <YOURIP> -p <YOURPORT> -rcon <YOUR RCONPW> say \"$i\"
sleep 10
done
done
What this does is basically reads the messages.txt file line by line and feeds each of these lines into the webrcon program which then sends the command to the game server, and then waits 10 seconds before sending it again, and then starts over again from the top. It works like a charm.
you dont exactly need this in a shell script, you can either run it using screen, or just off of the command line and dont logout.
Also, the arguments I used for hte webrcon command, I cant
recall off hand what the argv's are for IP, or PORT, or RCONPW, but they are well documented in the packages. There might need to be minor tweeks and things done to the above, but I use it all the time with EarthQuake servers for all games. These programs will work for all Quake3 based engine games that I have found so far with a fwe exceptions.
Using this technique, you can create all kinds of mayhem or cool things in servers, externally. For instance we run what is called the Matrix mod, where gravity, speed, and knockback values are randomized and fed to the server using these programs, with help from a little perl program.
I hope this opens up ideas to anyone that is curious on how to do this. By the way, you can insert the color codes into that text file, as you normally would when coloring your names or typing colored text.
There also may be utilities that do this same thing in windows, I do not know.
Good luck!
imported_Eroc
11-06-2003, 12:02 AM
Can you help me out a little... where do I find the webrcon at?
I am getting this message:
"./cod2.sh: line 5: webrcon: command not found"
I have the script done but it's saying this part.... any ideas?
Eroc
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.