Auto Voice Timing

By eyiezinc on May 31, 2009

Copy Paste In Your Remote Then "Right Click" At Channel Screen.
If No Setting It Will Set As Default

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx EyiezINC Scripting Technology xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Addons Name: Auto Voice Timing
alias MyxName return AutoVoiceTiming.txt
Created By: Lestat
Instruction
===========================================
Copy Paste In Your Remote Then "Right Click" At  Channel Screen. 
If No Setting It Will Set As Default 
===========================================
Any Error/Help/Scripts Help Please Visit Us At "Irc.Webchat.Org" Channel "#eyiezinc"
More Addons At  "http://www.eyiezinc.info/" 
You Can Post Your Own Addons At EyiezINC Forum "http://www.eyiezinc.info/" 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

menu channel {
  -
  Auto Voice Timing
  .Setting 
  ..$style(2) $+(Detect Text [,%sec,] sec [,%xchatline,] Lines [,$calc(%devoice / 60),] Minute Devoice) $+ : halt
  ..-
  .. Set Detect In Sec: {
    .set %sec $$?"User Type In ?? Sec?"
    if (!%sec) { .set %sec 120 }
  }
  ..-
  ..Set Detect Lines: {
    .set %xchatline $$?"How Many Lines To Voice?"
    if (!%xchatline) { .set %xchatline 10 }
  }
  ..-
  ..Set Timers For Devoices: {
    .set %devoice $$?"Devoice In ?? Minute" 
    if (%devoice) { .set %devoice $calc(%devoice * 60) }
    if (!%devoice) { .set %devoice 300 }
  }
  ..-  
  ..Default:.set %sec 120 | .set %xchatline 10 | .set %devoice 300
  .-
  .$iif($group(#autovoice) == on,$style(3)) ON:.enable #autovoice
  .-
  .$iif($group(#autovoice) == off,$style(3)) OFF:.disable #autovoice | .timervoice* off
  .-
  .Unload Myx Addons:.Unload -rs $script
  -
}
On 1:unload: { .timerdevoice* off | .unset %sec %devoice %xchatline }
On 1:load: { .set %sec 120 | .set %xchatline 10 | .set %devoice 300 } 
#autovoice on
On *:text:*:#: { autovoice }
On *:action:*:#: { autovoice }
On *:notice:*:#: { autovoice }
On *:part:#: if ($timer($+(devoice,$nick))) { $+(.timerdevoice,$nick) off }
On *:join:#: if ($timer($+(devoice,$nick))) { .set -u3 %voicenick $addtok(%voicenick,$nick,32) | .timervoice 1 5 mode $chan +v $nick }
On *:nick: {
  if ($timer($+(devoice,$nick))) {  $+(.timerdevoice,$newnick) 1 $timer($+(devoice,$nick)).secs .mode $gettok($timer($+(devoice,$nick)).com,2,32) -v $newnick | $+(.timerdevoice,$nick) off  }
}
alias autovoice {
  if ($me isop $chan) {
    inc -u $+ %sec $+(%,chat,$nick)
    if ($($+(%,chat,$nick),2) == %xchatline) && ($nick isreg $chan) { .mode $chan +v $nick | $+(.timerdevoice,$nick) 1 %devoice .mode $chan -v $nick }
    if ($($+(%,chat,$nick),2)) && ($nick isvo $chan) && ($nick !isop $chan) { $+(.timerdevoice,$nick) 1 %devoice .mode $chan -v $nick }
  }
}
#autovoice end

Comments

Sign in to comment.
buddy   -  Jul 22, 2009

I like this but i have a problem here...
I got :
/timerdevoiceCrucial_Victim: invalid parameters (line 62, script4.ini)
/timerdevoiceCrucial_Victim: invalid parameters (line 61, script4.ini)

Can you fix that?..Thanx..

 Respond  
miniCruzer   -  May 31, 2009

No problem! I think I've seen it on some of your other scripts, so you might want to check that ;-)

 Respond  
eyiezinc   -  May 31, 2009

upss..sorry. i forget that! :) thanks 4 remind me miniCruzer.

 Respond  
miniCruzer   -  May 31, 2009

Nice, I like it. Though your instructions on the script might mess it up, unless you've got something coded in there, which I don't see. Instead of:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx EyiezINC Scripting Technology xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Addons Name: Auto Voice Timing
alias MyxName return AutoVoiceTiming.txt
Created By: Lestat
Instruction
===========================================
Copy Paste In Your Remote Then "Right Click" At  Channel Screen. 
If No Setting It Will Set As Default 
===========================================
Any Error/Help/Scripts Help Please Visit Us At "Irc.Webchat.Org" Channel "#eyiezinc"
More Addons At  "http://www.eyiezinc.info/" 
You Can Post Your Own Addons At EyiezINC Forum "http://www.eyiezinc.info/" 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Put ; in front of each line.

;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx EyiezINC Scripting Technology ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
;Addons Name: Auto Voice Timing
;alias MyxName return AutoVoiceTiming.txt
;Created By: Lestat
;Instruction
;===========================================
;Copy Paste In Your Remote Then "Right Click" At  Channel Screen. 
;If No Setting It Will Set As Default 
;===========================================
;Any Error/Help/Scripts Help Please Visit Us At "Irc.Webchat.Org" Channel "#eyiezinc"
;More Addons At  "http://www.eyiezinc.info/" 
;You Can Post Your Own Addons At EyiezINC Forum "http://www.eyiezinc.info/" 
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 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.