mIRC Homepage
Posted By: born2ball in desperate need of an addon/bot - 10/06/05 06:05 PM
Does anyone know where I can get an alert type addon or bot that when certain keywords are typed like 911 it will alert everyone in the channel. I play an online game and our alliance in it could really use something like this to alert others of invaders. Wed like it to notify everyone and that anyone in chan can use it by just typeing 911 (gangname).

Any ideas or suggestions for what we could use? Are there any addons or bots out there? We all run the anaconda script if that helps any, tia. confused
Posted By: IR_n00b Re: in desperate need of an addon/bot - 10/06/05 06:14 PM
Since i have nothing to do, ill make it for you just tell me what it needs and ill have it done in a few mins- a few days depending on what i do cool
Posted By: born2ball Re: in desperate need of an addon/bot - 10/06/05 06:20 PM
Thanks a ton man!

Heres what I would like it to do, I want it so when anyone in our channel types 911 (and the choosen word here) it will send an alert to the channel as well as page every single person in the channel. Everyone should be able to use it as long as their in our channel and to make it real colorful but not too colorful would be cool to.

IE. I type 911 "gangname" this will triger a page sent to everyone saying 911 "gangname" is invading our country! as well as post this in the channel as a notice. Thanks a ton man if you can do this you have no idea how much we appreciate it. smile

*edit* AccessIRC is the server if this helps any :tongue:
Posted By: xDaeMoN Re: in desperate need of an addon/bot - 10/06/05 06:56 PM
Here's a simple code you could use

Code:
 on *:TEXT:911 &:[color:blue]#Channel[/color]: notice $chan 4 911! $2 is invading our country! 


**Change #Channel

Anybody in your channel can use this by typing "911 <word>". You could add colors and change the message.
Posted By: IR_n00b Re: in desperate need of an addon/bot - 10/06/05 07:23 PM
Code:
on $*:text:/911 (\w+)/g:#&lt;CHANNEL&gt;:/notice # 4WARINING!2 $regml(1) 4is invading our country!!

this would work better in my opininon,
if someone says ,911 its.wqe it would say
WARINIG! its is invading our country!!
it would also work if someone says "hello my name is n00b. omfg! 911 blah!!"
it would say
warning! blah is invaiding our country!!"
anything else, ill make too
replace #<CHANNEL> with your channel :tongue:
Posted By: tidy_trax Re: in desperate need of an addon/bot - 10/06/05 07:45 PM
Quote:
it would also work if someone says "hello my name is n00b. omfg! 911 blah!!"


That would just be annoying.
Posted By: born2ball Re: in desperate need of an addon/bot - 10/06/05 09:05 PM
so which code is the 1 im wanting and how do i run 2 verisions of mirc 1 to use as a bot and 1 for reg use?

with the above scripts will it send a msg to the channel as well as page every single person in the room?

If I said "911 n00b" and nothing else i want it to say "911 n00b is invading our country"! in channel as well as page everyone in channel with it thx for the help guys.

I just need the exact remote script for what I want and how to run 2 versions of mirc to use 1 as a bot thx!

btw the channel is #CHI if you could include that in the code :tongue:
Posted By: xDaeMoN Re: in desperate need of an addon/bot - 10/06/05 09:20 PM
You could use the code I posted which will do exactly what you wanted. Below is the revision of it which I added a message to the channel

Code:
 on *:TEXT:911 &amp;:#CHI: { 
  .msg $chan 4 911! $2 is invading our country! 
  .notice $chan 4 911! $2 is invading our country! 
}
 
Posted By: born2ball Re: in desperate need of an addon/bot - 10/06/05 10:56 PM
ok this is the exact code that will send it to channel and send everyone a page in the channel as well when someone types 911?

on *:TEXT:911 &:#CHI: {
.msg $chan 4 911! $2 is invading our country!
.notice $chan 4 911! $2 is invading our country!
}

I put this under remote im sure now how do I run 2 mirc programs 1 for my bot and 1 for regular use?
Posted By: born2ball Re: in desperate need of an addon/bot - 10/06/05 10:59 PM
i just tried it man it dont work..
Posted By: xDaeMoN Re: in desperate need of an addon/bot - 10/06/05 11:01 PM
You have to put the above code in your bot (ALT-R -> FILE -> NEW) then you could trigger the code with "911 <word>" by using another client(for regular use).
Posted By: xMIRCd Re: in desperate need of an addon/bot - 10/06/05 11:02 PM
on *:TEXT:911*:#CHI: {
.msg $chan 4 911! $2 is invading our country!
.notice $chan 4 911! $2 is invading our country!
}
Posted By: xDaeMoN Re: in desperate need of an addon/bot - 10/06/05 11:04 PM
That would work too, though with or without the 2nd parameter...
Posted By: born2ball Re: in desperate need of an addon/bot - 10/06/05 11:06 PM
well im tryin to get it to work with the mirc im on now i put it under a new remote file and typed 911 n00b and it does nothing
Posted By: xDaeMoN Re: in desperate need of an addon/bot - 10/06/05 11:16 PM
Quote:
well im tryin to get it to work with the mirc im on now i put it under a new remote file and typed 911 n00b and it does nothing


It cannot trigger your own text. It can only be triggered by others or by another client, that's why it has to be used on a bot.
Posted By: IR_n00b Re: in desperate need of an addon/bot - 10/06/05 11:20 PM
Code:
on $*:text:/^911 +$/g:#: .notice # $+(4,$2,2) is invading our country! | .msg # $+(4,$2,2) is invading our country!

That should work, but someone else has to say 911 <stuff>
Posted By: tidy_trax Re: in desperate need of an addon/bot - 10/06/05 11:25 PM
That will match 911 followed by one or more spaces (which is wrong), but you don't need a regex at all here:

Code:
on *:text:911 &amp;:#:{
  .notice $chan 04 $+ $202 is invading our country! 
  .msg $chan 04 $+ $202 is invading our country!
}
Posted By: born2ball Re: in desperate need of an addon/bot - 10/06/05 11:35 PM
it still dont work thats the exact code im puttin in it dont work.
Posted By: tidy_trax Re: in desperate need of an addon/bot - 10/06/05 11:39 PM
Put it in a new file in remote (Alt+R > File > New) and make sure remote is turned on (type /!remote on in any window)
Also make sure none of your other on text events (if any) have a /halt command in them.
Posted By: born2ball Re: in desperate need of an addon/bot - 10/06/05 11:54 PM
well im running the anaconda script would that interfer with it?
Posted By: born2ball Re: in desperate need of an addon/bot - 10/06/05 11:56 PM
(19:53) · @sizz0rz · 911 djskldj
(19:54) ¤ @sizz0rz slaps Teknique- around a bit with a large
(19:54) ¤ @sizz0rz slaps killdemall around a bit with a large
(19:54) · @sizz0rz · are you guys getting anything?
(19:54) · @Teknique- · it works when i tried
(19:55) · @sizz0rz · i never got paged
(19:55) · @sizz0rz · or notified
(19:55) · @sizz0rz · did you get paged or notified when kill did it?
(19:55) · @Teknique- · no
(19:56) · @Teknique- · it shows in screen but doesnt page

Its not working at all for me no ones getting anything some are saying they are seeing stuff when they type but only the people typeing it are seeing what they type i need it to notifty the channel and page everyone in the channel. i dont understand whats goin on i put it in a new remote file the code is letter for letter space by space pefectly copied nothing is happening.
Posted By: tidy_trax Re: in desperate need of an addon/bot - 11/06/05 12:15 AM
It definitely could interfere with it.
Try the script in a blank mIRC and if it works you know the script is to blame.
If the script is to blame then the best thing you can do is ask the author if he'll help you add your code to his script.
Posted By: IR_n00b Re: in desperate need of an addon/bot - 11/06/05 12:23 AM
Code:
on $*:text:/^911 \S+$/g:#chi: .notice # $+(4,$2,2) is invading our country! | .msg # $+(4,$2,2) is invading our country![

and i know i dont need a regex, i just love them
smirk
instructions:
Make a file named Script.mrc
Open it with wordpad
Write the code above to it (quote what im saying and copy, then paste it)
in the FRESH mIRC (install a new one in a different dir like on C:\...\...\desktop\bot)
open the mIRC
fill in the stuff for your bot (use a different nick than your own)
type in /load -rs Script.mrc
if it fails, make sure you named the file Script.mrc and that its in the bots directory
if it works, make the bot join the channels you want it to join.
#EOP
Posted By: IR_n00b Re: in desperate need of an addon/bot - 11/06/05 12:26 AM
Just to make sure, do you want it to open a query with all the people in the channel? also tell me what network and ill come there and help
Posted By: tidy_trax Re: in desperate need of an addon/bot - 11/06/05 12:47 AM
You might love using regular expressions, but it's not a good idea to use them when they're not needed if you're helping someone as that just passes on your bad coding habits to them.
Posted By: IR_n00b Re: in desperate need of an addon/bot - 11/06/05 12:49 AM
Good point, but imo i would rather have started coding using regexes, it took me a few hours to learn the basics of them
Posted By: born2ball Re: in desperate need of an addon/bot - 11/06/05 05:26 AM
I need it to send a message in the main window as a channel notice then page everyone in the room with it at the same time.

The server is accessirc the channel is #CHI im sizz0rz in there ill be on from 3-9pm EST if you could stop by and help out id appreciate it if you enter the channel and send me a pm ill get a popup letting me know someones tryin 2 get my attn thanks
Posted By: IR_n00b Re: in desperate need of an addon/bot - 12/06/05 12:06 AM
pice of my log:
-> Sandiego.CA.US.AccessIRC.Net JOIN #CHI
<- laugharc!~Darc@c-66-31-46-95.hsd1.ma.comcast.net JOIN :#CHI
-> Sandiego.CA.US.AccessIRC.Net MODE #CHI
<- :Sandiego.CA.US.AccessIRC.Net 332 Darc #CHI :OUCH!!!
<- :Sandiego.CA.US.AccessIRC.Net 333 Darc #CHI IROBOT\WHITENOISE 1118480110
<- :Sandiego.CA.US.AccessIRC.Net 353 Darc = #chi laugharc @popeye @LuNaTicFriNgE @Teknique- @Proletaryat @sizz0rz|a^f^k @C3LLBL0CK
<- :Sandiego.CA.US.AccessIRC.Net 366 Darc #CHI :End of /NAMES list.
<- :Sandiego.CA.US.AccessIRC.Net 324 Darc #chi +tn
<- :Sandiego.CA.US.AccessIRC.Net 329 Darc #chi 1118487449
<- :Sandiego.CA.US.AccessIRC.Net 319 Darc Darc :#chi
<- :Sandiego.CA.US.AccessIRC.Net 319 Darc sizz0rz|a^f^k :@#chi
<- :Sandiego.CA.US.AccessIRC.Net 319 Darc Darc :#chi
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :who
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :r u
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :5
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :4
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :3
-> Sandiego.CA.US.AccessIRC.Net PRIVMSG #CHI :im here to help sizz0rz|a^f^k
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :2
-> Sandiego.CA.US.AccessIRC.Net PRIVMSG #CHI :with a script
-> Sandiego.CA.US.AccessIRC.Net PRIVMSG #CHI :...
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :i c
-> Sandiego.CA.US.AccessIRC.Net PRIVMSG #CHI :the 911 one
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :ACTION slaps sizz0rz|a^f^k around a bit with a large trout
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :ACTION bitchslaps sizz0rz around wit a water weight bat
-> Sandiego.CA.US.AccessIRC.Net PRIVMSG #CHI :ACTION knows how to use /me, too
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :lol
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :well one would hope so
-> Sandiego.CA.US.AccessIRC.Net PRIVMSG #CHI :ACTION also knows how to use /kickass
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :again one would hope so
-> Sandiego.CA.US.AccessIRC.Net PRIVMSG #CHI :heh
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :but rlly
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com PRIVMSG #chi :who tha [censored] r u
-> Sandiego.CA.US.AccessIRC.Net PRIVMSG #CHI :who i am
-> Sandiego.CA.US.AccessIRC.Net PRIVMSG #CHI :thats the #1 answer youre gona get
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com MODE #chi +b Darc!*Darc@c-66-31-46-95.hsd1.ma.comcast.net
<- :C3LLBL0CK!FuckOFF@ACC2D3FC.ipt.aol.com KICK #chi Darc :Banned for 1 hour
#EOF
i would recomment that you 1: get better frends, watch who you give ops to, because these are the things that kind of piss me off.
Posted By: born2ball Re: in desperate need of an addon/bot - 12/06/05 03:06 AM
On behalf of them I would like to apologize and thank you so much for taking the time to stop by and help out I didnt know i would be afk something came.

We use this channel for a game we all play and from time to time get spies who will come in our channel and take screenshots of convos so i asked everyone be kicked that is not auto op'd once again I apologise and hope you can still help me out I have informed all what the deal is and that particular person feels dumb.
Posted By: defiant Re: in desperate need of an addon/bot - 12/06/05 09:26 AM
lol.. spies can be easy avoided by a
Code:
mode #channel +k keyword
Posted By: RusselB Re: in desperate need of an addon/bot - 12/06/05 04:07 PM
then you have to make sure the all the people that you do want in have the correct keyword. Additionally it will prevent people that might be looking for a new channel to be part of from being able to join.

One way around this, if you have a bot that's in 24/7, is to allow all to join, but if they don't enter a passcode to the bot within 5-10 seconds of entering the room, then they are kicked or banned for a while.

If you would like a script as described above, reply to this message letting me know and I'll do one up
Posted By: IR_n00b Re: in desperate need of an addon/bot - 13/06/05 12:38 AM
heres the script
Code:
on *:text:911 *:#chi: {
  var %u = $nick($chan,0)
  while (%u) {
    set %n $iif(%n == $null,$nick($chan,%u) $+ $chr(44),$+(%n,$nick($chan,%u),$chr(44)))
    dec %u
    if ($gettok(%n,0,44) &gt; 9) {
      .msg $+(%n,#chi) $+(4,$2,5) Is invading our country!!
      unset %n
    }
  }
  .msg $+(%n,#chi) $+(4,$2,5) Is invading our country!!
  unset %n
}
on *:join:#CHI:/msg #CHI $+(15,$mid($nick,1,1),14,$mid($nick,2),15's) 2assets now belong to 14CHI

cool
© mIRC Discussion Forums