blackvenomm666 commented on a Page, OpMe v3 With AOP Added  -  Nov 21, 2011

ok slight edit of your coding did some grouping and changed your menu <<<< using menu can interfere with other scripts and therefore is not suggested. also i didnt remove it but your on load event is pretty much useless because people are going to be just copying and pasting right into mirc scripts editor therefore it will not be activated they would have to put it in a txt file then load it manually which would take them longer so i don't see people doing it that way. another thing to keep in mind is that ini's are not the best thing to use for nicks because of the fact that an ini doesnt read certain characters properly like []'s it will turn those into `'s and so on and so forth

on *:load:{
  if ($version > 6.0) { echo -a 15,2Opme_v3 (With AOP Added) by 2,7Max Evans15,2 was successfully loaded. | echo -a 15,2Check the menubar for owner and channel set options. }
  else { echo -a 8,1Sorry. This addon requires mIRC 6.0+. Please download the latest version from www.mirc.com | .unload -rs " $+ $script $+ " } 
}
on *:text:*:%chan:{
  if ($1 == !addopme) {
    if ($nick == %admin) { writeini opme.ini $2 opme $address($2,2) | msg $chan 15,2Added 2,15 $2 15,2 to Opme List }
    else { msg $chan 15,2Command Ignored (Must be Admin)
    }
  }
  elseif ($1 == !addhopme) {
    if ($nick == %admin) { writeini hopme.ini $2 hopme $address($2,2) | msg $chan 15,2Added 2,15 $2 15,2 to Hopme List }
    else { msg $chan 15,2Command Ignored (Must be Admin)
    }
  }
  elseif ($1 == !addvoiceme) {
    if ($nick == %admin) { writeini voiceme.ini $2 voiceme $address($2,2) | msg $chan 15,2Added 2,15 $2 15,2 to Voiceme List }
    else { msg $chan 15,2Command Ignored (Must be Admin)
    }
  }
  elseif ($1 == !addaop) {
    if ($nick == %admin) { writeini autoop.ini $2 autoop $address($2,2) | msg $chan 15,2Added 2,15 $2 15,2 to AutoOp List }
    else { msg $chan 15,2Command Ignored (Must be Admin)
    }
  }
  elseif ($1 == !addhop) {
    if ($nick == %admin) { writeini autohop.ini $2 autohop $address($2,2) | msg $chan 15,2Added 2,15 $2 15,2 to AutoHop List }
    else { msg $chan 15,2Command Ignored (Must be Admin) 
    }
  }
  elseif ($1 == !addvop) {
    if ($nick == %admin) { writeini autovoice.ini $2 autovoice $address($2,2) | msg $chan 15,2Added 2,15 $2 15,2 to AutoVoice List }
    else { msg $chan 15,2Command Ignored (Must be Admin) 
    }
  }
  elseif ($1 == !opme) {
    if ($readini(opme.ini,$nick,opme) == $address($nick,2)) { mode $chan +o $nick }
    else { msg $chan 15,2Sorry, only trusted people can use this feature.
    }
  }
  elseif ($1 == !hopme) {
    if ($readini(hopme.ini,$nick,hopme) == $address($nick,2)) { mode $chan +h $nick }
    else { msg $chan 15,2Sorry, only trusted people can use this feature. 
    }
  }
  elseif ($1 == !voiceme) {
    if ($readini(voiceme.ini,$nick,voiceme) == $address($nick,2)) { mode $chan +v $nick }
    else { msg $chan 15,2Sorry, only trusted people can use this feature. 
    }
  }
  elseif ($1 == !delopme) {
    if ($nick == %admin) { remini opme.ini $2 | msg $chan 15,2Removed 2,15 $2 15,2 From Opme List }
    else { msg $chan 15,2Command Ignored (Must be Admin)
    }
  }
  elseif ($1 == !delhopme) {
    if ($nick == %admin) { remini hopme.ini $2 | msg $chan 15,2Removed 2,15 $2 15,2 From Hopme List }
    else { msg $chan 15,2Command Ignored (Must be Admin)
    }
  }
  elseif ($1 == !delvoiceme) {
    if ($nick == %admin) { remini voiceme.ini $2 | msg $chan 15,2Removed 2,15 $2 15,2 From Voiceme List }
    else { msg $chan 15,2Command Ignored (Must be Admin)
    }
  }
  on elseif ($1 == !delaop) {
    if ($nick == %admin) { remini autoop.ini $2 | msg $chan 15,2Removed 2,15 $2 15,2 from AutoOp List }
    else { msg $chan 15,2Command Ignored (Must be Admin) 
    }
  }
  elseif ($1 == !delhop) {
    if ($nick == %admin) { remini autohop.ini $2 | msg $chan 15,2Removed 2,15 $2 15,2 from AutoHop List }
    else { msg $chan 15,2Command Ignored (Must be Admin)
    }
  }
  on elseif ($1 == !delvop) {
    if ($nick == %admin) { remini autovoice.ini $2 | msg $chan 15,2Removed 2,15 $2 15,2 from AutoVoice List }
    else { msg $chan 15,2Command Ignored (Must be Admin) 
    }
  }
}

on *:join:%chan: {
  if ($readini(autoop.ini,$nick,autoop) == $address($nick,2)) { mode $chan +o $nick }
  if ($readini(autohop.ini,$nick,autohop) == $address($nick,2)) { mode $chan +h $nick }
  if ($readini(autovoice.ini,$nick,autovoice) == $address($nick,2)) { mode $chan +v $nick }
}
On @*:text:*:%chan: {
  if ($1 == !deopme) {
    mode $chan -o $nick
  }
  elseif ($1 == !dehopme) {
    mode $chan -h $nick
  }
  elseif ($1 == !devoiceme) {
    mode $chan -v $nick
  }
}

menu nicklist,menubar,channel {
  .Opme_v3 set up
  ..Set Opme_v3 Admin: { set %admin $?="What Nick Would You Like As Opme_v3 Admin?" | echo -a 15,2Opme_v3 Admin Is Now Set As %admin }
  ..Set Opme_v3 Channel: { set %chan $?="What Channel Would You Like Set For Opme_v3?" | echo -a 15,2Opme_v3 Channel Is Now Set As %chan }
}
 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.