Daniel_gr Posted February 19, 2008 Report Share Posted February 19, 2008 (edited) 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 February 19, 2008 by Daniel_gr Link to comment Share on other sites More sharing options...
Orus Posted February 19, 2008 Report Share Posted February 19, 2008 did you try with $chr(91) and $chr(93) ? Link to comment Share on other sites More sharing options...
Daniel_gr Posted February 19, 2008 Author Report Share Posted February 19, 2008 i tried that, but i think im doing something wrong i kept getting this error : * /if: insufficient parameters so i gave up for now till i have more time. or a better suggestion Link to comment Share on other sites More sharing options...
Ozzy10 Posted February 19, 2008 Report Share Posted February 19, 2008 you need to use the $chr for [ and ] if ($chr(91) $+ * $+ $chr(93) iswm $1-) etc Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted February 19, 2008 Report Share Posted February 19, 2008 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! Link to comment Share on other sites More sharing options...
Daniel_gr Posted February 19, 2008 Author Report Share Posted February 19, 2008 i certainly hope so, i can use an insomniac that i can bug often ill try the code later, as im off for food etc now Link to comment Share on other sites More sharing options...
Orus Posted February 19, 2008 Report Share Posted February 19, 2008 why don't you post your code ? Link to comment Share on other sites More sharing options...
Daniel_gr Posted February 19, 2008 Author Report Share Posted February 19, 2008 im going to feel real stupid i bet. my code : on *:text:*:* { if ($chr(91) $+ * $+ $chr(93) iswm $1-) echo @info $1- } the error: * /if: insufficient parameters (line 2, script2.mrc) im probably doing something reall easy, wrong Link to comment Share on other sites More sharing options...
Guest Travis Posted February 19, 2008 Report Share Posted February 19, 2008 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- } } Link to comment Share on other sites More sharing options...
Daniel_gr Posted February 19, 2008 Author Report Share Posted February 19, 2008 (edited) 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 February 19, 2008 by Daniel_gr Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now