mIRC Home    About    Download    Register    News    Help

Print Thread
Kicking Laggers From Game Script #93608 11/08/04 02:38 AM
Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
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!

Re: Kicking Laggers From Game Script #93609 11/08/04 03:06 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
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.

Re: Kicking Laggers From Game Script #93610 11/08/04 03:13 AM
Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
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

Re: Kicking Laggers From Game Script #93611 11/08/04 03:18 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
when YOU type !pi various information is displayed...from where? by a bot, by your client?

Re: Kicking Laggers From Game Script #93612 11/08/04 03:21 AM
Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
by a bot,

Re: Kicking Laggers From Game Script #93613 11/08/04 03:24 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
how is the information given? paste an example please

Re: Kicking Laggers From Game Script #93614 11/08/04 03:26 AM
Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
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)

Re: Kicking Laggers From Game Script #93615 11/08/04 03:32 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
when you type !pi does it give ping for everyone in the game?

Re: Kicking Laggers From Game Script #93616 11/08/04 03:36 AM
Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
when u do !pi on its own it gives evryone
but u can do !pi <name> (which gives single info)

Re: Kicking Laggers From Game Script #93617 11/08/04 03:38 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
does it display ( <--- he is ingame) or did you add that?

Re: Kicking Laggers From Game Script #93618 11/08/04 03:39 AM
Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
i added it rofl

Re: Kicking Laggers From Game Script #93619 11/08/04 03:41 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
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:

Re: Kicking Laggers From Game Script #93620 11/08/04 03:44 AM
Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
no no u mean 4:43am ^_^

Re: Kicking Laggers From Game Script #93621 11/08/04 03:45 AM
Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
thank yo greatly

Re: Kicking Laggers From Game Script #93622 11/08/04 03:58 AM
Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
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