mIRC Home    About    Download    Register    News    Help

Print Thread
#113509 06/03/05 01:16 AM
A
ambient
ambient
A
Ok, well i have been looking everywhere for a simple Private Message blocker code, i don't want one that won't let me get the persons pm.. i want one so when someone private messages me, it says about 3 lines or 4 i had one before that i had made but i can't remember now.. just wondering if anyone can like setup a little code of one for me, that would be nice crazy

#113510 06/03/05 01:33 AM
Joined: Dec 2002
Posts: 143
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 143
Quote:
Ok, well i have been looking everywhere for a simple Private Message blocker code, i don't want one that won't let me get the persons pm .. i want one so when someone private messages me, it says about 3 lines or 4 ...


You want a blocker which doesn't block ??? Can you better explain yourself? What do you want the snippet to do?

#113511 06/03/05 01:40 AM
A
ambient
ambient
A
Well ok, i had a private message blocker, it blocks and i don't know people pm me, the one i want is so when people pm me, its like says something in the pm like im not here or something like that, so where i still get the pm but it tells them a line..

#113512 06/03/05 01:42 AM
Joined: Feb 2005
Posts: 193
A
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
Code:
on *:open:?: {
  msg $nick <message>
}
Here is a complete blocker. It does what I thought you had originally requested, which is to close the pm after they say 3 or 4 lines. Here it is just in case:
Code:
on *:open:?: {  
  set -s %pm.block $nick
} 
on *:text:*:?: {
  if (%pm.block = $nick) {
    inc %lines 1
    if (%lines > 3) {
      close -m $nick
    }
  }
}
It may not be the most efficiant. I didnt put much thought into it. LOL. Then again, that is probably my best anyway. :tongue:

#113513 06/03/05 01:53 AM
A
ambient
ambient
A
yay, thank you alhammer that works perfectly, now all i have to do is change the code around a little bit smile

#113514 06/03/05 01:57 AM
Joined: Feb 2005
Posts: 193
A
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
No problem. I was just really suprised I could actually answer someone's question. :tongue:

#113515 06/03/05 04:44 AM
R
ricky_knuckles
ricky_knuckles
R
so am i
where did u get it

#113516 06/03/05 05:00 AM
D
DaveC
DaveC
D
lol, why?. Are you looking for a source for scripts? <snicker snicker>

#113517 06/03/05 05:27 AM
Joined: Feb 2005
Posts: 193
A
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
Im not sure what you are talking about. You may have been sarcastic about the simple whisper reply. However, if your talking about the other one, lol, i did do that. I didnt get it from anything else except memory. LOL. I'm learning...It's just taking forever! :tongue:

#113518 06/03/05 05:44 AM
R
ricky_knuckles
ricky_knuckles
R
did you just punctuate a sentence with ?.
in any case no in fact i dont use anything i havent written
wink

#113519 06/03/05 05:50 AM
R
ricky_knuckles
ricky_knuckles
R
so what happens if two people query them in roughly the same time span?

im allowed to be skeptical last i checked you didn't know how to write an alias.

It seems your finally making progress, so good for you.
Congratulations on your new found grasp of scripting. (it's a good bit of code)

Last edited by ricky_knuckles; 06/03/05 05:52 AM.
#113520 06/03/05 06:59 AM
Joined: Feb 2005
Posts: 193
A
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
Well, this one works for up to 2 people. Other than that, i dont know how. I'm sure it would involve some $calc stuff, which I havent learned yet. Hope your satisfied. smirk
Code:
on *:open:?: {  
  if (%pm.block = $null) { set -s %pm.block $nick | timer 1 30 set -s %pm.block $null }
  else { set -s %pm.block2 $nick | timer 1 30 set -s %pm.block2 $null } 
}
on *:text:*:?: {
  if (%pm.block = $nick) { inc %lines.block 1 { if (%lines.block = 3) { close -m $nick | set -s %lines.block 0 } } }
  elseif (%pm.block2 = $nick) { inc %lines.block2 1 { if (%lines.block2 = 3) { close -m $nick | set -s %lines.block2 0 } }
    else { return }
  }
}

#113521 06/03/05 09:03 AM
R
ricky_knuckles
ricky_knuckles
R
i was just giving you a hard time
im fairly impressed with your code
that might make me easily impressed but so be it

my gripe with your code if any it that it merely closes the query window in which case msgs will still either open subsequent query windows or still reach the user
and the use of return(probably because im just simple)

but the person who requested the code seemed happy enough

Last edited by ricky_knuckles; 06/03/05 09:06 AM.
#113522 06/03/05 02:09 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
A hard time you've just pretty much humiliated him, course the guy can write an alias. I don't know about anyone else but that was just damn right rude especially as its coming from you Ricky.

The guy has wrote a couple of dialogs, and you go and say something like that after not knowing how to write a dialog yourself and everything else you come out with is the dogs <enter some comment here> how does it feel being in the spotlight Ricky?

#113523 06/03/05 02:44 PM
Joined: Feb 2005
Posts: 193
A
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
:tongue: Hey guys, don't worry about it. I was really tired and my post may have come across a bit serious. I wasnt doing that second code for ricky, i was doin it for me. lol. I just wanted to see if i could do it. Took me forever though. By the way, i'm working on a log for the whisper block. I'm trying to solve most of the bugs. I'm hoping to make it log those 3 lines before it closes, then alert the user things have been logged. Then, insted of having to open the .txt file to view the log, i'm going to try to make an alias that will play only the last 3 lines entered. However, if more than 1 people enter content in the log, i'll have to make some way to get around that. :tongue: -- play as an echo. I've never done it before, so i'm curious to see what i come up with.

#113524 06/03/05 06:53 PM
R
ricky_knuckles
ricky_knuckles
R
what is ediquette but a bunch of gestures we dont mean

look he goes to my server
he turned #mirc into a trivia room

I've written a few things for him and so has everyone else on here

and he would just popup it in and then if there was a problem hed have to run back to someone and find out what it is

because he didnt bother comprehending anything

and now hes writting things on his own

so youthink whatever you want but i am just giving him a hard time and i am proud of him for doing things alot faster than i could do them

obiviously its hard to convey a particular emotion through type (you can just about forget sarcasm)

anyways if i offended Inevitable I'm sorry
all in jest and keep up the good work

p.s. this should be a closed thread id hate to see this turn into an arguement and even more to have to dig up the logs of him saying he doesnt know how to write an alias.

Last edited by ricky_knuckles; 06/03/05 07:03 PM.
#113525 06/03/05 08:23 PM
Joined: Feb 2005
Posts: 193
A
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
By the way, I didnt turn #mIRC into a trivia room. I downloaded it and tested it for 2 days. I haven't had the trivia turned on for more than a week now.

#113526 06/03/05 08:43 PM
D
DaveC
DaveC
D
Quote:
did you just punctuate a sentence with ?.
in any case no in fact i dont use anything i havent written


Thats just sad, nothing to reply with so you looked at my punctuation, its just mildly less than hitting at someone spelling.

Oh and yes I had gathered you never use anything but what you have written yourself, your coding demonstrates it quite often.
(Now thats a snakie reply and i didnt have to mention typos or punctuation.)

#113527 06/03/05 08:45 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
* Andy takes a good look at Ricky and sighs...

Jealousy is one of the strongest and dangerous emotions that one can face.

#113528 06/03/05 08:45 PM
Joined: Jun 2003
Posts: 4,670
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 4,670
Quote:
this should be a closed thread


I agree.

Regards,


Link Copied to Clipboard