mIRC Home    About    Download    Register    News    Help

Print Thread
#168658 11/01/07 10:59 PM
Joined: Jan 2007
Posts: 6
M
MLW Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2007
Posts: 6
Ok i have been useing mirc for as long as i can remmber, and i never did any kind of changeing seteing or scripting.. I have started my on channel now and i was wondering how do i create or download a script that will autovoice just lowercase nicks?

Last edited by MLW; 11/01/07 11:36 PM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on @*:join:#yourchannel: {
  if ($nick islower) { mode $chan +v $nick }
}


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2007
Posts: 6
M
MLW Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2007
Posts: 6
ok i got this so far tell me if i am write or wrong..
#voice on

on @*:JOIN:#:{
;+v lower
if (%autovoice == 2) && ($asc($remove($nick,$chr(123),$chr(125),`,',[,_,^,|)) > 96) { /mode # +v $nick }
;+v caps
if (%autovoice == 1) && ($asc($remove($nick,$chr(123),$chr(125),`,',[,_,^,|)) < 96) { /mode # +v $nick }
}
#voice end


Now after that i load it and it still dont work..hmmmm

Joined: Jan 2007
Posts: 6
M
MLW Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2007
Posts: 6
thanks

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
That's not a bad start, but you don't really need a group unless there is a specific reason for having one. Also, the islower check works regardless of any symbols in the nick, so you don't need to use $remove.

a#df3^'afd will be voiced just fine using islower.

To voice uppercase nicks, use isupper.

If you want only upper/lower nicks that have no symbols/numbers in them, use something like:

if ($nick islower && $nick isalpha) { }

As a last note, I'm unsure why you had the $asc part in there. $asc only tells you the ascii value of the first character.

$asc(wet) == 119
$asc(w) == 119
$asc(w245345634572dgakjhlgh3894y6) == 119


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2007
Posts: 6
M
MLW Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2007
Posts: 6
Cool Thank alot it works great now...


Link Copied to Clipboard