Top

Call of Duty 4 server checker


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  8.8
Scores Submitted  4
Date Added  Feb 18, 2008
Last Updated  Feb 18, 2008
Tags  4  call  checker  duty  of  server 

Introduction

I recently started playing call of duty 4, so I thought, why not make a mirc script for it? Might come in handy.
I got the idea from this guy: http://www.hawkee.com/snippet/3708/
This is simply my version of this :)

Command referance:

/codchk [-astc] <ip:port> [alias] [nickname] [Delay]

the -a switch will return the values to an alias, if you want to use this in a channel or similar, you get the point.
the -s switch will "Search" for a user and highlight him in the user list.
the -t switch will enable a delay, which is optional. If no number was specified, 10 seconds will be used.
the -c switch is a simple lookup with echoing.

The script will highlight the user with the lowest ping and show additional information about the server itself and the players.

Examples:

/codchk -c 66.135.53.77:28960
/codchk -cs 66.135.53.77:28960 Lindrian
/codchk -ct 66.135.53.77:28960 50
/codchk -cst 66.135.53.77:28960 Lindrian 50

/codchk -a 66.135.53.77:28960 cod_alias
/codchk -as 66.135.53.77:28960 cod_alias Lindrian
/codchk -at 66.135.53.77:28960 cod_alias 50
/codchk -ast 66.135.53.77:28960 cod_alias Lindrian 50

Screenshot:




I have avoided all usage of pure color codes, cause I hate that shit. So im using aliases to return the $chr(), much cleaner imo.

Please report any bugs or suggestions you may have, I havent been working on this very much. I did some vague testing but thats it!

----------------------------------------

Updates:
The sript has been updated, channel triggers has been added. Be sure to change "#channel" into your channel name for it to work.

Enjoy! :-)

Grab the Code

Comments

  (13)  RSS
bourneident
Comments: 26
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 18, 2008 7:33 am
hey bro i like this and it works great maybe throw in a !trigger for use in cod4 channel if you can and a save favorites so private servers can be recalled in the chan with the same info with password to connecti know this would be great for the server i\'m on as we run multiple cod4 100mbit servers
Lindrian
Comments: 729
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 18, 2008 7:38 am
Thanks. I will look into that. I made the alias support redirection to other aliases (-a switch) for the usage of !trigger, so the user would have to code that himself. But I\'ll work on that, and I\'ll also work on the thing to save favorites.

But please elaborate, how do you wan\'t it to work? I need a little more information. What I have in mind atm is:

!cod add <name> <ip:port>
!cod del <name>
!cod info <name>
!cod list

Is that alright?

So basically, !cod info <name> will run a check and return the info to the channel it was triggered in.
bourneident
Comments: 26
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 18, 2008 9:38 am
perfect :)
Lindrian
Comments: 729
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 18, 2008 10:12 am
Where can I get in contact with you? Im done with the script (i think), and I would like some proper test before releasing :)

I am at irc.deltaanime.net @ #Lindrian, if you join, just highlight me and i\'ll hopefully be around.
juhapuha
Comments: 70
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 18, 2008 2:18 pm
The script looks useful.:)
Lindrian
Comments: 729
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 18, 2008 3:29 pm
Thanks juhapuha - wait for the new version, im sure you\'ll like it even more! :)
Lindrian
Comments: 729
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 18, 2008 5:00 pm
Script has been updated, check it out.
dave666
Comments: 3
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 19, 2008 4:51 am
What about doing more on it, like able to see what players are in what slots and able to kick ban from irc and send messages to the server.
Lindrian
Comments: 729
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 19, 2008 5:19 am
Im not entirely sure you can do that, dave666. Ive used all info I can get from a server.
dave666
Comments: 3
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 19, 2008 7:07 am
It can be done I have a bot that will do all that from irc accept the send a message to the server does not seem to work. I am still trying to work why it wont.

It all involves using sockets and parsing. I would like it if someone could work out how to parse the mplog so you could have all chat relayed back to irc.
dave666
Comments: 3
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 19, 2008 7:17 am
This is what I get when i query the server or servers.

[13:16:06] [@``Dave``] !ki
[13:16:07] [@ki|slave] »»{Server IP}«« 85.236.101.123:29660 »»{Ping}«« 16 »»{Players}«« 0/24 »»{Server Name}«« ki | All Out War www.ki-squad.co.uk »»{Current Map}«« mp_crossfire »»{Game}«« Call Of Duty »»{Mod}«« Call of Duty 4
Lindrian
Comments: 729
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 19, 2008 10:03 am
You seem to have modified the script. It works perfectly fine for me.
Lindrian
Comments: 729
 
mIRC Snippet:  Call of Duty 4 server checker
Posted on Feb 19, 2008 11:54 am
Any reason for the \"low\" score (a 6, whoever did that.)

Please Register or Login to start posting comments.
Bottom