mIRC Homepage
Posted By: MLW please help with autovoice - 11/01/07 10:59 PM
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?
Posted By: Riamus2 Re: please help with autovoice - 11/01/07 11:37 PM
Code:
on @*:join:#yourchannel: {
  if ($nick islower) { mode $chan +v $nick }
}
Posted By: MLW Re: please help with autovoice - 11/01/07 11:38 PM
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
Posted By: MLW Re: please help with autovoice - 11/01/07 11:39 PM
thanks
Posted By: Riamus2 Re: please help with autovoice - 11/01/07 11:46 PM
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
Posted By: MLW Re: please help with autovoice - 12/01/07 12:36 AM
Cool Thank alot it works great now...
© mIRC Discussion Forums