mIRC Homepage
Posted By: XilGlac Kicking Laggers From Game Script - 11/08/04 02:38 AM
Right Ok, i play a game called C&C Renegade and i run servers along side others. I am working on a script that checks the !pi command (!playerinfo) for everyones ping and if there ping exceeds 250 (or w/e) they shall be kicked.
this is kinda what i have so far.
if !pi <name.ping> >250: /msg $chan !qkick $nick You Have An Excessive Ping And You Will Be Kicked

HELP!
Posted By: Danthemandoo Re: Kicking Laggers From Game Script - 11/08/04 03:06 AM
unless you can get a DLL to get the ping from ingame, i don't recommend it.

IRC ping can be much different to game ping, so you could be kicking someone with low ping but high irc lag.

Anyway, the only way is to ctcp ping everyone set your $ctime to a variable, then when ping reply comes in, minus ur current $ctime from that in the variable.
However, some people might not respond to ctcp ping, then you are stuck because you cannot find their ping from irc.
Posted By: XilGlac Re: Kicking Laggers From Game Script - 11/08/04 03:13 AM
so my script i have is useless?
becoz when u type !pi it gives u various things e.g name ping ip etc.
so couldnt u just check the !pi ping of everyone in game and make sure they are below 250 and if they r aabove they get ownedz0red out of the game
Posted By: Danthemandoo Re: Kicking Laggers From Game Script - 11/08/04 03:18 AM
when YOU type !pi various information is displayed...from where? by a bot, by your client?
Posted By: XilGlac Re: Kicking Laggers From Game Script - 11/08/04 03:21 AM
by a bot,
Posted By: Danthemandoo Re: Kicking Laggers From Game Script - 11/08/04 03:24 AM
how is the information given? paste an example please
Posted By: XilGlac Re: Kicking Laggers From Game Script - 11/08/04 03:26 AM
E.G:
<XilAOWBot> Host: No moderators are currently in the game
<XilAOWBot> c0mand3r7: / (<-- ingame player)
<XilAOWBot> Host: [BR] visit and Register on forums @ http://exile.no-ip.com/forum
<XilAOWBot> puffbutt: ???( <--- he is ingame)
Posted By: Danthemandoo Re: Kicking Laggers From Game Script - 11/08/04 03:32 AM
when you type !pi does it give ping for everyone in the game?
Posted By: XilGlac Re: Kicking Laggers From Game Script - 11/08/04 03:36 AM
when u do !pi on its own it gives evryone
but u can do !pi <name> (which gives single info)
Posted By: Danthemandoo Re: Kicking Laggers From Game Script - 11/08/04 03:38 AM
does it display ( <--- he is ingame) or did you add that?
Posted By: XilGlac Re: Kicking Laggers From Game Script - 11/08/04 03:39 AM
i added it rofl
Posted By: Danthemandoo Re: Kicking Laggers From Game Script - 11/08/04 03:41 AM
okey dokie.

alias pingcheck {
enable #response
msg #channelname !pi
}
#response off
on *:text:*:#channelname:{
if ($nick == botname) {
if ($2 isnum) {
if ($2 > 250) {
msg $chan !qkick $remove($1,:) You Have An Excessive Ping And You Will Be Kicked
timer 1 20 #disable response
}
}
}
}
#response end

Just type /pingcheck and as long as you've modified the red bits it should work...should
Could probably be written cleaner but it is 4:45am here :tongue:
Posted By: XilGlac Re: Kicking Laggers From Game Script - 11/08/04 03:44 AM
no no u mean 4:43am ^_^
Posted By: XilGlac Re: Kicking Laggers From Game Script - 11/08/04 03:45 AM
thank yo greatly
Posted By: XilGlac Re: Kicking Laggers From Game Script - 11/08/04 03:58 AM
eeekz0r, errrm 1 thing when i do /pingcheck it types !pi which ultimatly floods the irc chan and adds heeps of lag 0_o anyway of making it so it gets it w/o
© mIRC Discussion Forums