heres another on text question for you
heres the sentence
<+FFBot> [New Shit] blah blah blah
the [New Shit] part is the only constant
i tried isin , i tried iswm.
either im doing something wrong or the [ is throwing me off
i just want a trigger to activate on the new shit part so i can echo it to another window
edit: the full format is in the form of [New Shit] name [description] @ link
i asume i have to learn regex to get the seperate parts of the sentence so i can store am in a dbase or hash table i asume??
Edited Feb 19, 2008 10:23 AM by Daniel_gr
X-Fusion
Historical / Guest
you need to use the $chr for [ and ]
if ($chr(91) $+ * $+ $chr(93) iswm $1-)
etc
I think Ozzy is poised for a mIRC comeback! 

Travis
Historical / Guest
you need to put the echo on the same line.
If you actually enclosed your commands in brackets this would have been pretty apparent.
You were also missing the last colon in the on event.
if (this matches) { do this }
on *:text:*:*:{
if ($+($chr(91),*,$chr(93),*) iswm $1-) { echo @info $1- }
}
you need to put the echo on the same line.
If you actually enclosed your commands in brackets this would have been pretty apparent.
You were also missing the last colon in the on event.
if (this matches) { do this }
on *:text:*:*:{
if ($+($chr(91),*,$chr(93),*) iswm $1-) { echo @info $1- }
}
told you guys i was gona feel real stupid
ok. so im not really well at the moment and cant really concentrate..
thanks all you guys, it works now
now off to learn regex to catch the specific parts of that line 
edit: i had a friend say those lines for testing purpose. and it worked fine.
however when the bot finally came with a line it didnt work.
is it possible that the color makes it not work?? the bot uses red text for the "[New Shit] part, and other colors for the other parts
Edited Feb 19, 2008 9:17 PM by Daniel_gr
X-Fusion
Historical / Guest
It should work fine. If it still gives you the insufficient parameters error, add else halt to it.
X-Fusion
Historical / Guest
Tools > Options > IRC menu > Messages submenu > Strip codes from bold and color.
Just a wild guess.
Also, for the server messages that come in, this might work
on *:text:*:*:{
if ($+($chr(91),*,$chr(93),*) iswm $1-) && ($nick == FFBot) { echo @info $1- }
}
Edited Feb 19, 2008 11:46 PM by X-Fusion
Travis
Historical / Guest
You dont see your own text.
X-Fusion
Historical / Guest
Travis
Historical / Guest
it works fine, when someone else says the trigger,
but when the bot says it it doesnt respond
You dont see your own text.
Edited Feb 20, 2008 2:59 AM by Travis
the bot is not me.
if i was the bot. i would have had it echo to the info screen at the same time id send the msg 
i added your code btw, and tried with the old one: it picks up on texts that look like this : [ blah blah blah]
but somehow it still doesnt pick up on the [New Shit]
only difference i see between what it picks up and what it doesnt is the space between [ and the text
Edited Feb 20, 2008 8:22 PM by Daniel_gr
Travis
Historical / Guest
I have found I only need to use the $chr for the opening bracket.
menu item $chr(91) * ]:command