|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
I just found out that my query blocker i think someone made for me on here doesn't seem to be working anymore, not sure if it's cos the latest mirc doesn't support it or what but wondering if someone could help me fix it and also help add a few optional features for me, as some servers have added ! now and even % i was thinking of adding some extras codes on there to either let all % or ! be able to bypass the query blocker so they can pm me or even turn it off so they can't pm me, not sure if it's easier to make an extra popup menu for that or simply just manually put a ; in the code.
But here's what i got so far if someone could help me, i would be most grateful.
#query.blocker off on ^1:OPEN:?: { ; Send the notice .msg $nick 9,1Auto Message:8 I am using a secure query script, please ask in channel for permission to query me or simply /dcc chat me. n4= ; Ignore all new query windows for five seconds to prevent flooding .ignore -pu5 $wildsite ; Halt the new query window from opening halt } #query.blocker end
menu menubar { Query Blocker ( %Query.Blocker ) .On: { set %Query.Blocker On | .enable #query.blocker | echo -s 8 • 14Query Blocker is now9 Enabled } .Off: { set %Query.Blocker Off | .disable #query.blocker | echo -s 8 • 14Query Blocker is now9 Disabled }
menu nicklist { Control Menu .Friend ..Add: { .auser friend $$1 $+ !*@* | echo -a 14Added9 $$1 14to the Friends List. } ..Remove: { .ruser friend $$1 $+ !*@* | echo -a 14Removed9 $$1 14from the Friends List. } ..- ..List: { ulist friend }
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
try add the user with user levels instead.. now you dont tell mirc that it should allow serten users to chat with you.. on ^1:OPEN:?:{ if ($ulevel == 1) { goto ignore } if ($ulevel == 50) { goto end } just a small example, thats how i made it.. but i made it: on 1:TEXT:*:?:{ instead of open... works the same way tho.. i can poste my script here if you want?
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
Hmm so is that a seperate script or do i add that to mine, as i quite liked the format on how mine worked but quite upset that it stopped working, i liked the idea that if someone PM's me it gave a message to them or could add people to a friend's list and allow them to PM me
But if you know a better way that can function like mine then please would love the help i can get, i basically would love to have extra functions as i mentioned before where i can choose on and off switches for ! % + and regulars to PM me or not.
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
on 1:TEXT:*:?:{
if ($ulevel == 1) { goto ignore }
if ($ulevel == 50) { goto end }
else { goto end }
halt
:ignore
.ignore -u30 $nick
.notice $nick I'm currently on AutoIgnore. You arent in my friend list so I'll not see this message. try talk to me in a channel!
echo $chr(91) $+ $nick $+ $chr(93) messaged you, saying » $chr(91) $1- $chr(93)
.timer 1 1 close -m $nick
set %tempnick $nick
echo Press $chr(91) $+ F2 $+ $chr(93) to Allowed this User be able to msg you as a FRIEND | halt
:end
}
with this you are able to use userlevel on hosts or nick, depends on how you add the user in user list.. and you can make exeptions for your levels in your script.. by the way, the timer is for my spam blocker/graber.. so i dont think you need that in this function.. just that i want to keep querys open a litle while befor they closing
Last edited by sparta; 09/12/03 10:21 PM.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
To happen to know or can make some popup switches to add users to certain levels?
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
Popup
Friend List
.Add $snick($chan,1):{ .guser 50 $$1 3 | echo Now added $chr(91) $+ %tempnick $+ $chr(93) to Friend list }
[color:red]}[/color]
[color:red]}[/color]
Alias (F2)
F2 {
if (%tempnick == $null) { echo No nick to add in list. | halt }
elseif (%tempnick != $null) { .guser 50 %tempnick 3 | echo Now added $chr(91) $+ %tempnick $+ $chr(93) to Friend list }
}
the red } is just to seperate the text here.. so you dont need them..
Last edited by sparta; 09/12/03 10:28 PM.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
Hmm script seems buggy for few reasons,
1. people can still PM me even though the script is loaded. 2. And when i press F2 it gives me a message saying No nick to add in list.
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
set %tempnick $nick <<-- That set the nick for the F2 key .. and they can message you.. but the query will close after 1 sec "if you left the timer".. but try chanhe the texxt to open instead.. hould work the same.. and remove the :*: if you do so It works with on 1:OPEN:?: { tryed it now..
Last edited by sparta; 09/12/03 10:43 PM.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
I'm so used to the way my script worked, could do with that being fixed, i even tried changing the on open part too on text and still didn't work (
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
I can help you more tomorow if u want.. have to ZzZz now..
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
Ok no problem, would love for you to help me more )
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
what version of mirc are you using ?
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Oct 2003
Posts: 80
Babel fish
|
Babel fish
Joined: Oct 2003
Posts: 80 |
you might try remove all coding and just use this to see if it is the code.
on ^1:OPEN:?: { halt }
if nobody can message you when this is used alone then something in the code was changed.
Also another thing that might have happened is you could be missing a closing bracket aomewhere allowing the script to let everyone message you.
RockHound
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 397 |
if u trying to stop priv messages from reaching u i got a neat lil script that lets u accept or decline the PM
on *^:open:?: {
.beep 5 100
.msg $nick $me is using a Secure Query Window script
set -u %halt 1
.timerhalt. $+ $nick 1 0 if ($?!=" $nick has queried you would you like to accept the query?") unset %halt
.timerhalt. $+ $nick -e
if %halt { .msg $nick $me Has Declined your query try again later. | halt }
msg $nick $me Has Accepted your query.
}
|
|
|
|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
|
|
|
|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
No that didn't work, could still message through it, and no don't think i have missing brackets i haven't touched the script when i used it with other mircs, it's just seemed to stop working since i upgraded, but i'm going to check all my scripts to see if i got other sections saying on ^1:OPEN:?: on it or something, might be conflicting
|
|
|
|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
Ok ATMA i just installed that script you pasted up and it worked but do have a few questions if you could help me add a few things to it so it can look near the same as the one i had which sadly isn't working anymore.
1. Is it possible to have a unaffected user list so certain nicknames that i add to my list can PM me without having to wait for my authorization first.
2. Also is it possible to add an on and off switch so i can choose whether all ops or voices can PM me at my own choosing.
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 397 |
sure can i will get back to u on that 2marrow i g2g _-_; srry
|
|
|
|
Joined: Oct 2003
Posts: 80
Babel fish
|
Babel fish
Joined: Oct 2003
Posts: 80 |
ok i just did a test on 6.12 using:
------------------------------------------ on *^:open:?: { halt } ------------------------------------------ it does not seem to be mirc
RockHound
|
|
|
|
Joined: Dec 2002
Posts: 174
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 174 |
I don't understand what it could be, i looked at my other scripts and doesn't look like any possible conflicts stopping it from working
|
|
|
|
Joined: Oct 2003
Posts: 80
Babel fish
|
Babel fish
Joined: Oct 2003
Posts: 80 |
Ive always found my mistake in the last place i look. probably a small typo.
RockHound
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
try put the line in a empty remote file.. and see if that helps.. but i would do it with a echo instead, then you can see if it works and still get the msg..
on *^:open:?: { echo -a Working OK }
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
|