Auto ping on connect

By Lingo on Aug 14, 2008

Hi, this is my first work, i made this for a friend, so i will put here, this auto ping on u wend u conected to the server, so i hope it working for u all =)

;-----------------------------;
;Auto ping made Lingo -DALnet-;
;-----------------------------; 
on *:connect: {  .timerping 0 10 pings }
alias pings { .ctcp $me ping }
on *:ctcpreply:ping*: {
  if ( $nick = $me ) {
    %ping = $ctime - $2
    set %ping.theme $rand(2,15)
    .timer 1 2 echo -s 4 ..:: I have -> $duration($calc(%ping)) of lag:in server $+ $server  ((AUTO PING MADE BY Lingo))::..

  } 
}

Comments

Sign in to comment.
Eugenio   -  Aug 15, 2008

The only bit you code was:

((AUTO PING MADE BY Lingo))::..
 Respond  
IFHTT   -  Aug 15, 2008

You also ideally don't need $calc(%ping) with the way you're using the script, since mIRC automatically calculates equations stored in local variables (although you aren't setting a local variable, you really should for scripts of this nature.).

Also as napa182 pointed out, it appears you ripped the code from another script... :/

Ex:

var %ping = $ctime - $2
.timer 1 2 echo -s 4 ..:: I have -> $duration(%ping)of lag:in server $+ $server  ((AUTO PING MADE BY Lingo))::..
 Respond  
napa182   -  Aug 14, 2008

um thats about the most annoying thing..
you seem to have things setting that you are not useing like ur %ping.theme it looks like this was taken and redone from another snippet http://www.hawkee.com/snippet/464/

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.