Guest X-Fusion Posted February 19, 2008 Report Share Posted February 19, 2008 It should work fine. If it still gives you the insufficient parameters error, add else halt to it. Link to comment Share on other sites More sharing options...
Daniel_gr Posted February 19, 2008 Author Report Share Posted February 19, 2008 It should work fine. If it still gives you the insufficient parameters error, add else halt to it. it works fine, when someone else says the trigger, but when the bot says it it doesnt respond only difference between the 2 is is that the bot uses a red color. and i changed the * in the if for 'New Shit' (without the ' ) cause there are some other responses on the server that use [] Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted February 19, 2008 Report Share Posted February 19, 2008 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- } } Link to comment Share on other sites More sharing options...
Guest Travis Posted February 20, 2008 Report Share Posted February 20, 2008 You dont see your own text. Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted February 20, 2008 Report Share Posted February 20, 2008 Huh? Link to comment Share on other sites More sharing options...
Guest Travis Posted February 20, 2008 Report Share Posted February 20, 2008 (edited) 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 February 20, 2008 by Travis Link to comment Share on other sites More sharing options...
Daniel_gr Posted February 20, 2008 Author Report Share Posted February 20, 2008 (edited) 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 February 20, 2008 by Daniel_gr Link to comment Share on other sites More sharing options...
hixxy Posted February 24, 2008 Report Share Posted February 24, 2008 you need to use the $chr for [ and ] if ($chr(91) $+ * $+ $chr(93) iswm $1-) etc No you don't. //if ([*] iswm [x]) { echo -a WEJKDIKSDJH } Link to comment Share on other sites More sharing options...
Ozzy10 Posted February 25, 2008 Report Share Posted February 25, 2008 from mirc help file The [ ] evaluation brackets If you want greater control over the order of evaluation of identifiers, you can use the [ ] brackets. Identifiers within these brackets will be evaluated first, from left to right. You can nest brackets. /say % [ $+ [ $1 ] ] You can also force a previously evaluated identifier to be re-evaluated by using extra [ ] brackets. /set %x %y /set %y Hiya! /echo [ [ %x ] ] this is why you need to use chr codes if ($chr(91) $+ * $+ $chr(93) iswm $1-) or someone could slip in some code into an echo (not in this case) so its good practice to use the $chr when you dont want to use the [ ] evaluation brakets Link to comment Share on other sites More sharing options...
Guest Travis Posted February 25, 2008 Report Share Posted February 25, 2008 I have found I only need to use the $chr for the opening bracket. menu item $chr(91) * ]:command 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