mIRC Home    About    Download    Register    News    Help

Print Thread
noob remote/scripts questions #104658 07/12/04 01:54 AM
Joined: Dec 2004
Posts: 7
L
lizardthang Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2004
Posts: 7
well i've been dabbling in scripts and have a good worknig knowledge of the programming functions like for and if etc etc.

but so far getting remote scripts i've made is making me go bald. it's EXTREMELY simple.

Code:
Ping detection: {
  on *:PING: {
    /beep 5
    /echo #blueprint_games 6* Detected a Ping request from $nick 
  }
  


i put it in my Remotes section ofm my script editor dealie, used /remote on, and got somebody to ping me. nothing happened.

another question, how can i make a script stop temporarily. the WHOLE script wait on a timer? all i've gotten to work is the command inside the timer statement. for instance a snippet of what i want

Code:
/echo before timer
/timer 1 1 /echo during timer
/echo after timer  


the order it displays on my screen is before after during. how can i make it so the timer makes the whole script wait?

thanks for hearin me out cool

EDIT: i use mIRC version 6.16

Last edited by lizardthang; 07/12/04 02:00 AM.
Re: noob remote/scripts questions #104659 07/12/04 02:07 AM
Joined: Dec 2002
Posts: 60
C
coder Offline
Babel fish
Offline
Babel fish
C
Joined: Dec 2002
Posts: 60

Code:
Ping detection: {
  on *:PING: {
    /beep 5
    /echo #blueprint_games 6* Detected a Ping request from $nick 
  }
  


what is Ping detection: { ?

the correct code is
Code:
  on *^:PING: {
    /beep 5
    /echo #blueprint_games 6* Detected a Ping request from $nick 
  }
  

Re: noob remote/scripts questions #104660 07/12/04 03:59 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
  • on PING/PONG

    The on PING event triggers when a server sends you a PING message to see if you're still connected.

Code:
ctcp *:PING:{
  beep 5
  echo 6 #blueprint_games * Detected a Ping request from $nick
}