mIRC Home    About    Download    Register    News    Help

Print Thread
Ping Pong #57601 26/10/03 10:55 AM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
i have a question reffering pong action,

on quakenet it says:
(11:52) >> To connect, type /QUOTE PONG 1737985765

and i read somewhere that it must be specific pong code,
so if you are admin or ircop, how can you know what
specific code it must be ?

Re: Ping Pong #57602 26/10/03 10:57 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I guess that comes with the source of the irc.. so it is written in som file when u compiled the server.. or maybe just sent to you aotomatic.. not shure


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Ping Pong #57603 26/10/03 11:14 AM
Joined: Feb 2003
Posts: 143
N
naki Offline
Vogon poet
Offline
Vogon poet
N
Joined: Feb 2003
Posts: 143
I think what that means is the $ctime value. Sometimes when you connect to a server you lag and are unable to send a pong to the server when it sends you a ping. Seeing how most servers send connecting users a ping before it sends the motd. The message probably tells you to do that so you can connect to the server if the client was unable to respond to the connection ping.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Re: Ping Pong #57604 26/10/03 12:02 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
is there any way through scriptimg to make a small script that will automatically respond with pong when it recives that message?

Re: Ping Pong #57605 26/10/03 12:33 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
How do you get that message? is it a notice? need to know if i should be able to make a script.. i never get that so i dont know smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Ping Pong #57606 26/10/03 01:32 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
it could be server notice but i am not 100% shure

Re: Ping Pong #57607 26/10/03 01:34 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Post the /debug line with the text in.

Re: Ping Pong #57608 26/10/03 01:45 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
i would but the problem is that i dont get that msg anymore on connect frown

Re: Ping Pong #57609 26/10/03 02:55 PM
Joined: Dec 2002
Posts: 349
S
Skip Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 349
If your using mIRC you shouldn't need to know, that notice is sent in parrallel to a PING request from the server, mIRC automatically replies with a matching PONG request. You would only be pinging out if you or the server are extremely lagged or something is broken (a psybnc maybe).

The ping/pong on startup exists to prevent ip (and consequently host) spoofing from occuring and also stop some of the more stupid drones, if the ping didn't exist the entire client registration process to the server would be one-way, allowing kiddies to forge packets from any ip address. For this reason the ping is made very hard to predict.

Hope that helps. smile

Re: Ping Pong #57610 26/10/03 03:18 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
It's a server notice.. and only appears when the server have allot of work.. "many users", so i dont think it will happen to often, and it's not hard to just copy abnd paste the line they asking for.. but if you still need a script for it, then i make one, it's siple but nothin i belive you need cos it will only happen like 1 time out of 100 smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Ping Pong #57611 26/10/03 03:26 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
well if you have time for that i would be very gratefull if you could make it please .

Re: Ping Pong #57612 26/10/03 03:33 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
on *:SNOTICE:*: {
  if (/QUOTE isin $1-) { quote PONG 1737985765 }
}


the code goes in to remote "ALT + R"

Last edited by sparta; 26/10/03 03:35 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Ping Pong #57613 26/10/03 03:53 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
hmm, good try, but not always is the same pong message, thatz why i said IF it can be detected by script
like on snotice something %temppong = %thatnumber

and then

on *:SNOTICE:*: {
if (/QUOTE isin $1-) { quote PONG %thatnumber }
}

can you do it somehow?

Re: Ping Pong #57614 26/10/03 03:54 PM
Joined: Dec 2002
Posts: 62
lonesome Offline
Babel fish
Offline
Babel fish
Joined: Dec 2002
Posts: 62
just a thought....
does the number change randomly all the time?
if it does, it's better to get the whole line from $?-
Haven't received the message b4, so I'm not sure if it should be $4- or $5- .. You get the idea... grin

--Edit--

Looking at his first post, i would try using this code:

Code:
on *:SNOTICE:*: {
if (/QUOTE isin $1-) { $4- }
} 

Re: Ping Pong #57615 26/10/03 04:40 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
yeh, number changes each time, but thanx for this, i will try it (but dunno how will i know is that correct tho)

Re: Ping Pong #57616 27/10/03 02:12 PM
Joined: Dec 2002
Posts: 266
Z
zack Offline
Fjord artisan
Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 266
I had problems with my socket bot I created on Undernet because of this reason, so I just created a script that would reply the exact PONG command it gave... *shrug*


You won't like it when I get angry.