Help call to ops via bot relay.

By Cheiron on May 16, 2008

this one is a different take on a onotice via a non op command to a bot.

this was written for rooms where often you want to contact an op quietly for help or if it is a busy busy room using a method which all ops can see.

this loads into a new remote on a bot. please make sure the bot has at least AOP mode in room (+o) for this to work

the script is very very simple. it is set in motion via the trigger !assist followed by message. for example !assist i am being harrassed.

what will happen now is the bot will onotice all ops that the nick requires help.

BUT,,,,,,, if you look carefully... you will see in this case there is a second channel that this relays too in normal chat version. with my rooms i like to have a second room set to mode +s of course (secret) for my team of ops to sit in where we can talk about room issues without being seen as it happens real time) the relay will post the help call in normal chat in this room. it is done that way as the ops room is usually non active talking bar op to op chat.

that way any help will be seen and not lost in all the clutter of channel chat.

as per usual.. replace #channel with your channel name

and replace #channel2 with the second channel the bot is to relay too.

another unique script which is tested and fully working on mIRC

edited and upgraded now to include a 60 second anti-flood on each user attempting to access the command. a user can only access the command once, after which he/she has to wait 60 secs before it resets so they can use it again.

on *:TEXT:!assist *:*: {
  if ( %test. [ $+ [ $nick ] ] == $null ) {
    set %test. [ $+ [ $nick ] ] 1
  .onotice #channel $nick : $2-
  .msg #channel2 $nick : $2-
  .timer 1 60 unset %test. [ $+ [ $nick ] ]
  }
}
on *:NOTICE:!assist *:*: {
  if ( %test. [ $+ [ $nick ] ] == $null ) {
    set %test. [ $+ [ $nick ] ] 1
  .onotice #channel $nick : $2-
  .msg #channel2 $nick : $2-
  .timer 1 60 unset %test. [ $+ [ $nick ] ]
  }
}

Comments

Sign in to comment.
mentalglitch   -  Jun 13, 2008

lol aye i don\'t actually code fer mIRC in fact i don\'t even like it XD i\'m anti-windoze thus anti-mIRC h/e i do know how to fully script for this client. but i like to see people learning more about programming and script for mIRC is just as good a place to start as any so.. again gj Cheiron if ya ever have any questions i\'ll do my best help :P dun be afraid to ask mate! cheers

 Respond  
Cheiron   -  Jun 13, 2008

most likely yes, korvin. i am still at a foundation level of scripting though so my scripts will be simple from you more experienced types\' level of experience and understanding. still.. it gets the job done and more importantly... they all work. which is more than can be said for some script posters on this site posting incomplete or non working snippets. at least i have got that part rigth from word go lol..

 Respond  
Cheiron   -  Jun 13, 2008

ty mentalglitch. glad you liked it

 Respond  
mentalglitch   -  Jun 13, 2008

lol k that worx ;p gj sir!

 Respond  
Cheiron   -  May 17, 2008

there you go EL.. nice lil script now for you to play with and rate or hate lol...

 Respond  
Cheiron   -  May 17, 2008

right.. edited now to include a 60 second stop timer on each user attempting to access the command more than once. after each !assist (message) the script will stop it being activated again by that user for 60 secs.. they can type !assist (message) to their hearts content but nothing will happen untill after the 60 secs has elapsed.

 Respond  
Cheiron   -  May 17, 2008

i see your point there EL.. i assumed it would be for responsible users and not channels where there idiots. still easy fix with my anti flood though.

lemme edit this. this could be rather amusing this effort

 Respond  
EL   -  May 17, 2008

Indeed mentalglitch flood pros would have to be used in this case and even NOT using the onotice an simply mass noting all ops this way you can add a method of NONHELPING ops that can just tell the bot that they are not helping atm or are away/brb/afk etc this way they dont get the message and maybe have the commands in PM so they dont flood the room with commands etc.Interesting concept tho Cherion and can be made better if you wanted jsut a few suggestions.`-.-´

 Respond  
xplo   -  May 17, 2008

small, basic, but could be usefull for a help channel..

Keep up the good work :)

 Respond  
mentalglitch   -  May 16, 2008

lol! add flood protection i see chanops being flooded like mofos with this XD

 Respond  
SnoooP   -  May 16, 2008

no probs and good night... closing the internet explorer now lmao

 Respond  
Cheiron   -  May 16, 2008

right.. that is it for me for the night. i must get some shut eye. will upload some more photos of my new beast of a pc in the morrow in more detail. many thanks to the pair of you at this ungainly hour for us brits for your feedback and advice. i bid you all a good night :)

 Respond  
SnoooP   -  May 16, 2008

lol... most british ircers stay up late .... were all sad lol

 Respond  
Cheiron   -  May 16, 2008

nodsnods.. you should see it work though heh.. it sure is different. many thanks for the help tonight/morning/insomnia hours mountaindew. appreciate it.

 Respond  
guest598594   -  May 16, 2008
  .onotice #channel $nick : $2-

You can join an identifier to something by using $+

So in this case, you can do \"$nick $+ : $2-\" to make it show up as \"MountainDew: I need assistance\"

:)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.