mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2006
Posts: 43
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2006
Posts: 43
I am trying to think of a way to make what i am thinking to actually work maybe someone can help me I use to be very active in scripting in mirc but that was way back in the days I just started using mirc again and want to get back into scripting so can someone help me

here is what my thoughts are i would like an on text similer to this
Code:
on 1:TEXT:*cheat*:#chan1:/chan1 
on 1:TEXT:*cheat*:#chan2:/chan2

so you know in aliases is this
Code:
/chan1 /splay -p c:\sounds\chan1.mp3
/chan2 /splay -p c:\sounds\chan2.mp3

but the host says something like "This server hates cheating" like ever 5 mins or so what i am looking for is someway to ignore the cheat trigger if it says HOST in the line anyone have a clue how to do this or understand what i mean?

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
How does it say it? by notice? by pm? Or maybe you can give a sample of the actual line.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on 1:text:*cheat*:#chan1:{
if $nick != <host nick> {
chan1
}
}
 


There's the re-write of your chan1 on text event. Replace <host nick> with the appropriate nick

Joined: Sep 2006
Posts: 43
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2006
Posts: 43
Quote:
How does it say it? by notice? by pm? Or maybe you can give a sample of the actual line.

here is the line in the channel

[23:58] <SERV1BOT> HOST: THIS SERVER HATES CHEATERS!!

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Code:
 On ^*:TEXT:HOST?*:#: haltdef 


Try that


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Sep 2006
Posts: 43
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2006
Posts: 43
but how do i do the rest?

Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Code:
on *:text:*cheat*:#chan1,#chan2: if $1 != HOST: { splay -p $+(c:\sounds\,$mid(#,2),.mp3) }

^^Triggers if "cheat" is said in either channel
if $1 != HOST: { } checks first word is not "HOST:"
$mid([color:green]#,2)[/color] = "chan1" or "chan2"
If channel is #chan1, then $+(c:\sounds\,$mid(#,2),.mp3) = c:\sounds\chan1 .mp3
If channel is #chan2, then $+(c:\sounds\,$mid(#,2),.mp3) = c:\sounds\chan2 .mp3

Joined: Sep 2006
Posts: 43
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2006
Posts: 43
just tried it and it still played when host said it maybe cause i edited it? this is what i put

Code:
 on 1:text:*cheat*:#Chan1: if $1 != HOST: { splay -p c:\sounds\chan1.mp3 } 

Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Try using $strip($1) in place of $1

Or maybe changing the if statement to wildmatch
if *HOST:* !iswm $1- { splay -p c:\sounds\chan1.mp3 }

Last edited by deegee; 13/10/06 10:03 AM.
Joined: Sep 2006
Posts: 43
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2006
Posts: 43
Code:
$strip($1) 
seemd to work so it was prob cause it is in a color code Thanks allot


Link Copied to Clipboard