mIRC Homepage
Posted By: EBuL on text msg :/ - 12/10/06 11:13 AM
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
Posted By: WarlockTheWeary Re: on text msg :/ - 12/10/06 01:36 PM
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 ..
Posted By: genius_at_work Re: on text msg :/ - 12/10/06 01:56 PM
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
Posted By: jaytea Re: on text msg :/ - 12/10/06 02:04 PM
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- }
Posted By: EBuL Re: on text msg :/ - 12/10/06 09:58 PM
thankyou all very much smile
© mIRC Discussion Forums