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] [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! :-)
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.
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
!cod del
!cod info
!cod list
Is that alright?
So basically, !cod info will run a check and return the info to the channel it was triggered in.
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