mIRC Home    About    Download    Register    News    Help

Print Thread
Custom query reply on and off? #92802 04/08/04 08:55 PM
Joined: Apr 2004
Posts: 10
M
mok Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Apr 2004
Posts: 10
I got this script #scripts. I was wondering if there's a way to actually make this to have an ON and OFF option. I don't really know what exactly i have to change in the coding to make this query feature to turn on whenever i am away. and turn off after i am back. Can anyone please help me with it? Thanks!


;; ---------------- CUSTOM QUERY REPLIES ------------------

on *:open:?:{
if ($query(0) == 1) {
var %queryword = query
}
else {
var %queryword = queries
}
msg $nick Hello $nick $+ , I currently have $query(0) %queryword open.
msg $nick Please don't ask me for peon or to idle anywhere.
}
;; ---------------------------------------------------------

Re: Custom query reply on and off? #92803 04/08/04 09:02 PM
Joined: Dec 2002
Posts: 774
T
theRat Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
try seeing /help groups



raw 306:*: .disable #queryreply
raw 305:*: .enable #queryreply

#queryreply on
on *:open:?:{
if ($query(0) == 1) {
var %queryword = query
}
else {
var %queryword = queries
}
msg $nick Hello $nick $+ , I currently have $query(0) %queryword open.
msg $nick Please don't ask me for peon or to idle anywhere.
}
#queryreply end



that one works if you're actually setting yourself away with /away


Code:
//if ( khaled isgod ) echo yes | else echo no