mIRC Home    About    Download    Register    News    Help

Print Thread
#161922 12/10/06 11:13 AM
Joined: Oct 2006
Posts: 2
E
EBuL Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
E
Joined: Oct 2006
Posts: 2
on *:text:!msg1*:#channel: { msg #1 $1- }
on *:text:!msg2*:#channel: { msg #2 $1- }
on *:text:!msg6*:#channel: { msg #6 $1- }
on *:text:!msg7*:#channel: { msg #7 $1- }
on *:text:!msg10*:#channel: { msg #10 $1- }
on *:text:!msg11*:#channel: { msg #11 $1- }
on *:text:!msg13*:#channel: { msg #13 $1- }

when i try to !msg10 it msg #1
also it leaves to !msg in the msg

please help confused

Last edited by EBuL; 12/10/06 11:19 AM.
#161923 12/10/06 01:36 PM
Joined: Oct 2006
Posts: 11
W
Pikka bird
Offline
Pikka bird
W
Joined: Oct 2006
Posts: 11
yea it would cause of the *

on *:text:!msg1:#channel: { msg #1 $1- }
on *:text:!msg2:#channel: { msg #2 $1- }
on *:text:!msg6:#channel: { msg #6 $1- }
on *:text:!msg7:#channel: { msg #7 $1- }
on *:text:!msg10:#channel: { msg #10 $1- }
on *:text:!msg11:#channel: { msg #11 $1- }
on *:text:!msg13:#channel: { msg #13 $1- }

smile Should Help ..

#161924 12/10/06 01:56 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
on *:text:!msg1 *:#channel: { msg #1 $1- }
on *:text:!msg2 *:#channel: { msg #2 $1- }
on *:text:!msg6 *:#channel: { msg #6 $1- }
on *:text:!msg7 *:#channel: { msg #7 $1- }
on *:text:!msg10 *:#channel: { msg #10 $1- }
on *:text:!msg11 *:#channel: { msg #11 $1- }
on *:text:!msg13 *:#channel: { msg #13 $1- }

-genius_at_work

#161925 12/10/06 02:04 PM
Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
ye, the !msg1* matches "!msg10" and occurs before the other event, since events are processed from top to bottom. also, don't you want $2- in the /msg commands, since $1 = !msgN ? you could combine them all like so:

Code:
on *:text:!msg* ?*:#:{ if ($istok(1 2 6 7 10 11 13,$mid($1,5),32)) msg $(#,) $+ $mid($1,5) $2- }


or the regex alternative

Code:
on $*:text:/^!msg(1[013]?|[267]) ./i:#:{ msg $(#,) $+ $regml(1) $2- }


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
#161926 12/10/06 09:58 PM
Joined: Oct 2006
Posts: 2
E
EBuL Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
E
Joined: Oct 2006
Posts: 2
thankyou all very much smile


Link Copied to Clipboard