mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#63473 09/12/03 07:38 PM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
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 }

#63474 09/12/03 10:10 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
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.. smile i can poste my script here if you want? smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#63475 09/12/03 10:14 PM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
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.

#63476 09/12/03 10:18 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
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 smile

Last edited by sparta; 09/12/03 10:21 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#63477 09/12/03 10:22 PM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
To happen to know or can make some popup switches to add users to certain levels?

#63478 09/12/03 10:27 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
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,.) }
#63479 09/12/03 10:31 PM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
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.

#63480 09/12/03 10:33 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
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 smile

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,.) }
#63481 09/12/03 10:42 PM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
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 blush(

#63482 09/12/03 10:44 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
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,.) }
#63483 09/12/03 10:45 PM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
Ok no problem, would love for you to help me more blush)

#63484 10/12/03 02:17 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Did you get it work?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#63485 10/12/03 05:20 PM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
Nope i didn't sorry

#63486 10/12/03 06:13 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
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,.) }
#63487 10/12/03 11:54 PM
Joined: Oct 2003
Posts: 80
R
Babel fish
Offline
Babel fish
R
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
#63488 11/12/03 12:15 AM
Joined: Dec 2002
Posts: 397
A
Fjord artisan
Offline
Fjord artisan
A
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

Code:
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.
}


Need amazing web design for low price: http://www.matrixn3t.net
#63489 11/12/03 02:10 AM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
v6.12

#63490 11/12/03 02:13 AM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
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

#63491 11/12/03 02:19 AM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
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.


#63492 11/12/03 02:26 AM
Joined: Dec 2002
Posts: 397
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
sure can i will get back to u on that 2marrow i g2g _-_; srry


Need amazing web design for low price: http://www.matrixn3t.net
Page 1 of 2 1 2

Link Copied to Clipboard