mIRC Home    About    Download    Register    News    Help

Print Thread
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!

Joined: Mar 2004
Posts: 457
D
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.

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

Joined: Mar 2004
Posts: 457
D
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?

Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
by a bot,

Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
how is the information given? paste an example please

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)

Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
when you type !pi does it give ping for everyone in the game?

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)

Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
does it display ( <--- he is ingame) or did you add that?

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

Joined: Mar 2004
Posts: 457
D
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:

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 ^_^

Joined: Aug 2004
Posts: 14
X
XilGlac Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Aug 2004
Posts: 14
thank yo greatly

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


Link Copied to Clipboard