|
Joined: Nov 2007
Posts: 6
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Nov 2007
Posts: 6 |
DEAR ALL,
I would like to ignore some part of join/left from channel messages. I don't want to turn off all.
Here is example.
I have channel with 100 users then a lot of people joing and lefting from the channel. Ok that is nice but i want to filter some part of that people. For example i want to filter only male and just to left females on the channel :-) then i can see very fast who joing on the channel.
i try to use /ignore command but that is fine just to ignore messages on the channel but that is not enouf for ignoring CTPT messages.
PLEASE HELP
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
How would mirc know if it's a male or a female using it? it's not like mirc see the people behind the keyboard.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Nov 2007
Posts: 6
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Nov 2007
Posts: 6 |
because i will do ignoring each person who joining on the channel ;-))
i just option for /ignore ALL (to ignore also information messages who join/left from the channel).
any help on this?
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
i was bored... :P Here's a small little dialog to add/delete/save users to ignore to list. What it does is it matches users in the list if so then the part and JOIN is totally ignored of those users. You will never notice the users coming in or out of the channel if they are in your list. MAKE SURE TO (SAVE) in order for it to work. MAKE SURE TO CHANGE #YOURCHANNEL IN THE SCRIPT TO YOUR CHANNEL ELSE IT WONT WORKSyntax: /jpar
dialog jpar {
title "JOIN PARSE"
size -1 -1 63 74
option dbu
list 1, 1 1 61 58, size vsbar
button "Add", 2, 2 60 17 12, flat
button "Delete", 3, 21 60 20 12, flat
button "Save", 4, 43 60 18 12, flat
}
alias jpar {
if ($exists(jpar.txt)) { dialog -m jpar jpar }
else { .write jpar.txt r | dialog -m jpar jpar | .timer 1 3 /did -r jpar 1 }
}
on *:dialog:jpar:*:*:{
if ($devent == INIT) {
var %x = 1
while (%x <= $lines(jpar.txt)) {
did -a $dname 1 $read(jpar.txt,%x)
inc %x
}
}
elseif ($devent == sclick) {
if ($did == 2) { did -a $dname 1 $$?="Name:?" }
elseif ($did == 3) { did -d $dname 1 $did($dname,1).sel }
elseif ($did == 4) {
.remove jpar.txt
var %f = 1
while (%f <= $did($dname,1).lines) {
.write jpar.txt $did($dname,1,%f) $crlf
inc %f
}
}
}
}
on ^*:JOIN:#YourChannel:{
if ($read(jpar.txt,w,$+(*,$nick,*))) { halt }
else { return }
}
on ^*:PART:#YourChannel:{
if ($read(jpar.txt,w,$+(*,$nick,*))) { halt }
else { return }
}
:P Cheers
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
|
|
|
|
Joined: Nov 2007
Posts: 6
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Nov 2007
Posts: 6 |
Thanks for Replay!!!!
Can you please explain me how to use this code?
I copy/paste into one file example.txt and then try to load into scripts editor but nothing happend.
Please just few words about that how to use.
THANKS AGAIN!!!
|
|
|
|
Joined: Jul 2006
Posts: 4,150
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,150 |
var %x = 1 while (%x <= $lines(jpar.txt)) { did -a $dname 1 $read(jpar.txt,%x) inc %x } and var %f = 1 while (%f <= $did($dname,1).lines) { .write jpar.txt $did($dname,1,%f) $crlf inc %f }
You can use : loadbuf -o $dname 1 jpar.txt and savebuf -o $dname 1 jpar.txt
Last edited by Wims; 18/11/07 10:55 PM.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Nov 2007
Posts: 6
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Nov 2007
Posts: 6 |
yes Wims but can you please explain step by step. What i do. Copy this code dialog jpar { title "JOIN PARSE" size -1 -1 63 74 option dbu list 1, 1 1 61 58, size vsbar button "Add", 2, 2 60 17 12, flat button "Delete", 3, 21 60 20 12, flat button "Save", 4, 43 60 18 12, flat }
alias jpar { if ($exists(jpar.txt)) { dialog -m jpar jpar } else { .write jpar.txt r | dialog -m jpar jpar | .timer 1 3 /did -r jpar 1 } }
on *:dialog:jpar:*:*:{ if ($devent == INIT) { var %x = 1 while (%x <= $lines(jpar.txt)) { did -a $dname 1 $read(jpar.txt,%x) inc %x } } elseif ($devent == sclick) { if ($did == 2) { did -a $dname 1 $$?="Name:?" } elseif ($did == 3) { did -d $dname 1 $did($dname,1).sel } elseif ($did == 4) { .remove jpar.txt var %f = 1 while (%f <= $did($dname,1).lines) { .write jpar.txt $did($dname,1,%f) $crlf inc %f } } } }
on ^*:JOIN:#tinejdzeri:{ if ($read(jpar.txt,w,$+(*,$nick,*))) { halt } else { return } }
on ^*:PART:#tinejdzeri:{ if ($read(jpar.txt,w,$+(*,$nick,*))) { halt } else { return } }
then paste into some file like jpar.txt After that i open MIRC and with tools >> Scripts editor I just load that file but nothing happend. What i missing?
Last edited by davla; 18/11/07 11:06 PM.
|
|
|
|
Joined: Jul 2006
Posts: 4,150
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,150 |
In the mirc script editor (alt + r), paste this in a new remote file (file > new) : dialog jpar {
title "JOIN PARSE"
size -1 -1 63 74
option dbu
list 1, 1 1 61 58, size vsbar
button "Add", 2, 2 60 17 12, flat
button "Delete", 3, 21 60 20 12, flat
button "Save", 4, 43 60 18 12, flat ok cancel
}
alias jpar dialog $iif($dialog(jpar),-v,-m) jpar jpar
on *:dialog:jpar:*:*:{
if ($devent == INIT) loadbuf -o $dname 1 jpar.txt
elseif ($devent == sclick) {
if ($did isin 23) did $iif($did == 2,-a,-d) $dname 1 $iif($did == 2,$$?="Name:?",$$iif($did(1).sel,$v1))
elseif ($did == 4) savebuf -o $dname 1 jpar.txt
}
}
on ^*:JOIN:#channel:if ($read(jpar.txt,w,$+(*,$nick,*))) haltdef
on ^*:PART:#channel:if ($read(jpar.txt,w,$+(*,$nick,*))) haltdef then just type in any windows /jpar to configure it
Last edited by Wims; 18/11/07 11:32 PM.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Nov 2007
Posts: 6
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Nov 2007
Posts: 6 |
ok thanks it WORKSS Now!!!
But can you tell me how to stop also other system messages?
and also now i must do first IGNORE (because i want to ignore also normal channel messages from that user)
then /jpar to add user in ignore list for JOIN/LEFT from the channels...
that is two times....it is ok but complicated if i want to put 2000 users on that list ;-)
is there any chance to do IGNORE only one for all from that user????
|
|
|
|
Joined: Jul 2006
Posts: 4,150
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,150 |
But can you tell me how to stop also other system messages? You should read the help file before asking here : /help halting default text /help /ignore
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
If you noticed the original script when i wrote /jpar was the syntax that would of allowed you to have the script working,
But yeah to halt all from a special use then /ignore $nick
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
|
|
|
|
Joined: Nov 2007
Posts: 6
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Nov 2007
Posts: 6 |
ok ok thanks for all of this.This is good enouf for me.
Someone in future need to write some advance Ignore option. ;-)
|
|
|
|
Joined: Jul 2006
Posts: 4,150
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,150 |
If you noticed the original script when i wrote /jpar was the syntax that would of allowed you to have the script working, I'm not sure that I understand what you mean because your alias /jpar and mine do exactly the same thing, i've just re-wrote it better (better in my point of view)
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
Thanks for Replay!!!!
Can you please explain me how to use this code?
I copy/paste into one file example.txt and then try to load into scripts editor but nothing happend.
Please just few words about that how to use.
THANKS AGAIN!!! I was talking to him about this area. I told him Syntax: was /jpar
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
|
|
|
|
|