mIRC Home    About    Download    Register    News    Help

Print Thread
#92939 05/08/04 11:29 PM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
on ^1:open:?: {

what is $1 and what is $1- in this case ?
same goes for $2 $2- and how many are there (for this event)?


add:

and what is everything included in ACTION text in mirc colors
i only know for server info and /me /ame reply
is there else ?

Last edited by ShinZon; 05/08/04 11:37 PM.
#92940 05/08/04 11:45 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
1. $1- is the text that the person said ("the person" being whoever opened a query with you).

2. Action text is for /me, /ame, /describe, /action and on action.


New username: hixxy
#92941 05/08/04 11:58 PM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
so if i dont want to see users text (to block PM)
this should be the code ?

on ^1:OPEN:?: {
if (%pmpro == On) {
if (* $+ $1- $+ * iswm $1-) { /.notice $nick Your message is ignored
halt
}
}
}

but it dont work at me frown

#92942 06/08/04 12:29 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on ^1:open:?:{
  if (%pmpro) { 
    if (!%flood.protection) { 
      .notice $nick Your message is ignored.
      inc -u5 %flood.protection
    }
    halt 
  }
}


New username: hixxy
#92943 06/08/04 12:37 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
i removed ^ coz it messes my script in general, but it still opens my PM window frown and doesnt notice the user

Last edited by ShinZon; 06/08/04 12:38 AM.
#92944 06/08/04 12:41 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Remember you won't see the notice since you're using the . prefix for the notice command. The ^ event prefix is necessary to prevent the window from opening.

Code:
on ^*:open:?:{
  if (%pmpro) {
    .notice $nick Your message is ignored.
    halt 
  }
}


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#92945 06/08/04 12:51 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
1 more thing, i know that i bug too much but please view this code:

(reason why i cant use ^)

on me:^*:OPEN:?:Lagt*: {
if (%lagt = $null) return
var %lag = $calc(($ticks -$2) /1000)
/set %lags %lag
haltdef
}

aliases:
/lagtest if ($server = $null) { halt } | .raw -q pong $server $server | .msg $me Lagt $ticks
/lagnow { .timerlag 0 12 lagtest }
/lagstop { .timerlag off | .timerlags off }


author made this for lag calculating so if i use ^ every time
i got myself Noticed

(02:57) ¤ (Shinzon@notice) Your message is ignored.
(02:58) ¤ (Shinzon@notice) Your message is ignored.
(02:58) ¤ (Shinzon@notice) Your message is ignored.
(02:58) ¤ (Shinzon@notice) Your message is ignored.
(02:58) ¤ (Shinzon@notice) Your message is ignored.
(02:59) ¤ (Shinzon@notice) Your message is ignored.

own spam smirk
any way to fix this ?

#92946 06/08/04 02:11 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

combine your two on open events in one, and then use:

if $nick == me {
my stuff
}
else {
query stopper stuff
}

Greets


Gone.
#92947 06/08/04 02:14 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
something like this?

^*:OPEN:?: {
if ($nick == $me) {
if (%lagt = $null) return
var %lag = $calc(($ticks -$2) /1000)
/set %lags %lag
haltdef
}
else {
if (%pmpro) {
.notice $nick Your message is ignored.
halt
}
}
}

#92948 06/08/04 02:16 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Yes,

that'll do.

Greets


Gone.
#92949 06/08/04 02:17 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
doesnt work smirk

#92950 06/08/04 02:19 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
doesnt work smirk

i am spammed by myself

Lagt 13178279
Lagt 32479324
etc..
in PM
and blockade dont work

#92951 06/08/04 02:28 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Works here...

You do know that you have to close your query first before testing, cuz once its already opened, obviously it won't trigger the on open event.

Greets


Gone.
#92952 06/08/04 02:35 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
oh, i am so so sorry, i missed ON event smirk (i'm tired)
my bad, it works PERFECT now
i dont know how to thank you and tidy_trax
you both made my day better smile

#92953 06/08/04 02:39 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
You're welcome smile


Gone.

Link Copied to Clipboard