mIRC Home    About    Download    Register    News    Help

Print Thread
#10000 06/02/03 09:47 PM
Joined: Feb 2003
Posts: 2
B
bca Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Feb 2003
Posts: 2
hi guys,

i have here a little script wich should be do a msg to a user that query me but only the away modus works correct and i dont know where the mistake is, pls help me:

on *:OPEN:*:{
if (%ign == 1) { msg $nick 0,1|-9N8o.9Q8ueryS.9P8lease0,1-|-9I8'm.9N8/A.9Q8uerylog:ON0,1-| }
if (%ign == 1) { /closemsg $nick }
if (%ign == 1) { /write query.txt $nick am $date um $time Uhr }
if (%ign == 1) { /write query.txt $1- }
if (%ign == 0) { msg $nick 3::: 14Query14 N°3 $query(0) 3::: 14(14NOTE:03 Please wait 14/3 if I don't answer I'm away14) 3::: }
else { halt }
}
menu channel {
Query.Ignore
.on:/set %ign 1
.off:{ /set %ign 0
/run query.txt
}
}

so long

#10001 06/02/03 11:30 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
You can color this however you like; I removed the color codes to make the script easier to read.
Code:

on ^*:OPEN:?:{
  if (%ign == 1) {
    msg $nick |- No Querys Please -|- I'm N/A -|- Querylog:ON -|
    write query.txt $nick am $date um $time Uhr
    write query.txt $1- 
    halt
  }
  else msg $nick ::: Query N° $query(0) ::: (NOTE: Please wait / if I don't answer I'm away) :::
}
menu channel {
  $iif(%ign,$style(1)) Query Ignore:{
    if (%ign) { set %ign 0 | run query.txt }
    else set %ign 1
  }
}


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard