Top

Simple op - voice modes For A bot

Please Register to submit score.
Average Score  7.9
Scores Submitted  10
Date Added  Mar 09, 2008
Last Updated  May 20, 2008
Tags  bot  halfop  modes  op  user  voice 

Introduction

place in your Bot's remotes and set your self as owner by typing /owner nick . commands are +q +a +o +h +v -q -a -o -h -v with no nick after will mode ur self with a nick after will mode that nick..

Grab the Code

Comments

  (13)  RSS
jonesy44
Comments: 679
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Mar 9, 2008 6:42 am
*wishes he had a clue wtf regex's are*

And yup, i've read the help file ;-)
Lindrian
Comments: 694
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Mar 9, 2008 6:48 am
Code:
if ($regex($left($1,1),/^[+-]$/)) && ($regex($right($1,1),/^[qaovh]$/)) {


replace with

Code:

$regex($1,/^[+-][qaovh]$/)
Cheiron
Comments: 129
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Mar 9, 2008 6:50 am
hehe.. i hear you on that one Jonesy. i am confuzzled myself and looks like it did the same with my last script "Unique Auto Voicer" to Lindrian. but anyways.... nice script napa, clean and simple and works nice. gets a 7 from me :)
jonesy44
Comments: 679
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Mar 9, 2008 7:13 am
lol, Cheiron xD

But yeah, weorks well, nice simple script, i think i'll second that 8. bcos .. im now using it ;-)
jonesy44
Comments: 679
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Mar 9, 2008 7:14 am
Grrr, hawkee should add edit post.
Hehe, changed my mind whilst typing, was gonna go 7,. but since i use it and it's pretty dam usefull. 8 ;-)
napa182
Comments: 797
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Mar 9, 2008 1:58 pm
@Lindrian ah thanks.

This was ment to be an update on one of my old scripts but for some reason it made it as a new post =/


EL
Comments: 914
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Mar 10, 2008 3:07 am
Holy hell im not awake(3:27am)...not the code i tested lol waws thinkin your bot dialog(!say,!act) yeah you know the one.Ok tested this its actully not bad,the use of regex makes it a small ass code so thats nice big plus there,maybe some additions,makin it target $2 an such.

@ joesy44
Code:

$regex($1,/^[+-][qaovh]$/)
;useing Lindrian's example

You know the $1 = first thing in a string obviously,now im no expert on $regex but i ll try to explain if anyone else corrects me thats fine to.Ok the $regex statment is lookin for a few things within the $1 that has to match,that is "- or + and qaovh",But $regex is specific and is lookin for the begining character to start with + or - thats wat the ^ tagged to firs start if the /^[+-] part of the statment meaning that data within the first set of brackets must come first an it is case it's looking for either or here "+ or -"( you can not have +-).The $ part of the statement is tagged to the last set of brackets [qaovh]$/ ,means your last character and has to be one of those with in the brackets or it wont trigger,Its exact you have to have you first character + or - an your last character one of qaovh or it won't work.So its a cleaner an more effecient way of the statemnt "if (+v == $1) { mode $chan +v $nick then stacking the if statments on top of one another plus its exact.Oh an the $iif statement makes it even more exact meaning that you cant have anything after +v (+v Nemesis wont work),altho like i said in my mess up comment that i rather it target both oneself an you an target others.Hope i didnt confuse you on that explination of this small $regex statment,if so im sure some one can clarify better.`-.-´
Anti
Comments: 302
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Mar 10, 2008 10:41 am
EL who are you talking about OhGoody? EndlessEnds? ring a ding or a bell.. < got carried away :D
EL
Comments: 914
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Mar 10, 2008 3:26 pm
Er i need fricken spell check,my little rant on regex was to jonesy44.

@ Anti,....smart ass.

@ Napa182,Er yeah sorry about the $2 again i typoed my own fricken nickname..again XD,tested it after you ask about wtf i was on in chat lol.Works fine.`-.-´
A Hylian Human
Comments: 3
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Apr 26, 2008 6:27 pm
Just a quick question, can this also work for ban? (+/- b)
EL
Comments: 914
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on Apr 26, 2008 7:21 pm
Yea it will but u would need to modify it a bit.
napa182
Comments: 797
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on May 20, 2008 9:17 pm
also if you dont want to use a bot and have it as an on input
just copy/paste into a new remote
Code:
on *:load: {
  echo 12 -a You Have Just Loaded Napa182's User Modes
  echo 12 -a A Script0rs Inc. Production
  echo -a 14,1(14,1¯15,1¯0,1¯0,1º $+($chr(171),$chr(164),$chr(88),$chr(167),$chr(199),$chr(174),$chr(238),$chr(254),$chr(116),$chr(48),$chr(174),$chr(167),$chr(88),$chr(164),$chr(187)) º0,1¯15,1¯14,1¯) $+ $chr(153)
}
on *:input:*: {
  if ($regex($1,/^[+-][qaovh]$/)) { mode $chan $1 $iif(!$2,$nick,$2) }
}
SnoooP
Comments: 348
 
mIRC Snippet:  Simple op - voice modes For A bot
Posted on May 20, 2008 10:18 pm
i prefer the on input tbh :P nice though :D

Please Register or Login to start posting comments.
Bottom