mIRC Home    About    Download    Register    News    Help

Print Thread
#84670 30/05/04 11:55 PM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
Hello..

I got this script:


on *:text:$($+($chr(63),H,$chr(63),*)):#needhelp:{
/msg $chan  $2: H is the fully automated help bot. If you've got any question regarding QuakeNet, our services or also IRC in general simply do /msg H help. H is multilingual and the supported languages are: English, Deutsch, Français, Svenska, Suomi and Dutch. You cannot request it to your channel.
}



It works fine on ?H? <nick> BUT!!!! When i type the word: oh
in the start of a text in my channel the script also trigger on that word? What can be wrond?


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#84671 31/05/04 12:31 AM
Joined: Mar 2004
Posts: 108
X
Vogon poet
Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
try changing it to a different character its reading the ? as a wild - it will also trigger off of: aha khk zh1 so on..
I changed it to !h! and it works fine, maybe there is a way to keep it "?h?", but i dont know how, just my 2 cents smile

on *:text:!h!*:*:{

hope it helps..

-cheers


sometimes these are as bad as quit messages :tongue:
#84672 31/05/04 12:46 AM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
ok but i dont know if you have seen the channel named #help thay got a bot where thay just type ?H? <nick> and there it work fine.

But thanks anyway smile

BTW can you xplayne to me what wildcard means?


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#84673 31/05/04 01:08 AM
Joined: Mar 2004
Posts: 108
X
Vogon poet
Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
I'm not certain it was a guess that it is reading the "?" as a wildcard.and no I haven't seen channels that do that not with that exact trigger most I have seen are "!" or "@" and a few "^"
(note) I changed #needhelp to * for testing purposes and forgot to change it back in my previous post... meant to post:
on *:text:!h!*:#needhelp:{
A wildcard is exactly that.. it is wild. means it can be anything.
for example *ello there could be: jello there or hello there... and so on.


sometimes these are as bad as quit messages :tongue:
#84674 31/05/04 02:02 AM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
oh well i realy home some one can help me with this script i realy need to user ?H?

But thanks anyway smile


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#84675 31/05/04 09:41 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
on *:text:?H? *:#needhelp:{
if ($1 === ?H?) {
msg $chan  $2: H is the fully automated help bot. If you've got any question regarding QuakeNet, our services or also IRC in general simply do /msg H help.
msg $chan H is multilingual and the supported languages are: English, Deutsch, Français, Svenska, Suomi and Nederlands. You cannot request it to your channel.
}
}

I have no idea what $2 is supposed to contain, but I guess this gives what you want. I also split up the message, 300+ characters may be too much for your ircd...

#84676 31/05/04 11:24 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
You can use regex matching...


on $*:text:/^\?H\?\s\S/S:#needhelp:{
  • msg #  $2: H is the fully automated help bot. If you've got any question regarding QuakeNet, our $&
    services or also IRC in general simply do /msg H help. H is multilingual and the supported languages $&
    are: English, Deutsch, Français, Svenska, Suomi and Dutch. You cannot request it to your channel.
}

It triggers on "?H? *" and is case sensitive, if you need case insensitive, use "/^\?H\?\s\S/Si"

#84677 31/05/04 01:26 PM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
okay thanks laugh


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX

Link Copied to Clipboard