Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

PETIT ADDONS POUR BOT SERT A S'IDENTIFYER AU BOT


Information sur la source

Catégorie :AddOns Niveau : Débutant Date de création : 12/09/2003 Date de mise à jour : 14/09/2003 13:36:25 Vu : 2 566

Note :
Aucune note

Commentaire sur cette source (11)
Ajouter un commentaire et/ou une note

Description

se code sert a vous identifyer a votre bot .
il es en popup
mais marche .....
addons facile d'emploie es tres simple
je suis  debutant  ( je sais , ces pas une excuse ), voila
mettez moi vos appreciation merci  
 

Source

  • menu menubar {
  • access admin
  • .admin( $+ %master $+ ):/set %master $$?="quel speudo" | /set %password1 $$?"quel pass"
  • .admin( $+ %nickk2 $+ ):/set %nickk2 $$?="quel speudo" | /set %password2 $$?"quel pass"
  • .admin( $+ %nickk3 $+ ):/set %nickk3 $$?="quel speudo" | /set %password3 $$?"quel pass"
  • .admin( $+ %nickk4 $+ ):/set %nickk4 $$?="quel speudo" | /set %password4 $$?"quel pass"
  • .admin( $+ %nickk5 $+ ):/set %nickk5 $$?="quel speudo" | /set %password5 $$?"quel pass"
  • .admin( $+ %nickk6 $+ ):/set %nickk6 $$?="quel speudo" | /set %password6 $$?"quel pass"
  • .admin( $+ %nickk7 $+ ):/set %nickk7 $$?="quel speudo" | /set %password7 $$?"quel pass"
  • .admin( $+ %nickk8 $+ ):/set %nickk8 $$?="quel speudo" | /set %password8 $$?"quel pass"
  • .admin( $+ %nickk9 $+ ):/set %nickk9 $$?="quel speudo" | /set %password9 $$?"quel pass"
  • .admin( $+ %nickk10 $+ ):/set %nickk10 $$?="quel speudo" | /set %password10 $$?"quel pass"
  • }
  • #identifycation on
  • on *:text:identify*:?:{
  • if ($nick == %master && %password1 == $2) { /notice $nick Bienvenue $nick au toi mon maitre prefere,si ces la premiere que tu es avec moi tape !listeop | /set %access1 oui }
  • if ($nick == %nickk2 && %password2 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access2 oui }
  • if ($nick == %nickk3 && %password3 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access3 oui }
  • if ($nick == %nickk4 && %password4 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access4 oui }
  • if ($nick == %nickk5 && %password5 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access5 oui }
  • if ($nick == %nickk6 && %password6 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access6 oui }
  • if ($nick == %nickk7 && %password7 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access7 oui }
  • if ($nick == %nickk8 && %password8 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access8 oui }
  • if ($nick == %nickk9 && %password9 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access9 oui }
  • if ($nick == %nickk10 && %password10 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access10 oui }
  • if (%password1 != $2 && %password2 != $2 && %password3 != $2 && %password4 != $2 && %password5 != $2 && %password6 != $2 && %password7 != $2 && %password8 != $2 && %password9 != $2 %password10 != $2) { /notice $nick 4Password incorrect !!!! }
  • if (%password1 != $2 ) { /set %access1 non }
  • if (%password2 != $2 ) { /set %access2 non }
  • if (%password3 != $2 ) { /set %access3 non }
  • if (%password4 != $2 ) { /set %access4 non }
  • if (%password5 != $2 ) { /set %access5 non }
  • if (%password6 != $2 ) { /set %access6 non }
  • if (%password7 != $2 ) { /set %access7 non }
  • if (%password8 != $2 ) { /set %access8 non }
  • if (%password9 != $2 ) { /set %access9 non }
  • if (%password10 != $2 ) { /set %access10 non }
  • }
  • on *:connect:{
  • if ($me == $nick) { /set %access1 non | /set %access2 non | /set %access3 non | /set %access4 non | /set %access5 non | /set %access6 non | /set %access7 non | /set %access8 non | /set %access9 non | /set %access10 non }
  • }
  • on *:text:*:#:{
  • if (!o isin $left($1-,2)) {
  • if ($2 == $null) {
  • if (%access1 == oui) { /mode $chan +oooo %nickk1 }
  • if (%access2 == oui) { /mode $chan +oooo %nickk2 }
  • if (%access3 == oui) { /mode $chan +oooo %nickk3 }
  • if (%access4 == oui) { /mode $chan +oooo %nickk4 }
  • if (%access5 == oui) { /mode $chan +oooo %nickk5 }
  • if (%access6 == oui) { /mode $chan +oooo %nickk6 }
  • if (%access7 == oui) { /mode $chan +oooo %nickk7 }
  • if (%access8 == oui) { /mode $chan +oooo %nickk8 }
  • if (%access9 == oui) { /mode $chan +oooo %nickk9 }
  • if (%access10 == oui) { /mode $chan +oooo %nickk10 }
  • }
  • if (%access1 == oui) { /mode $chan +oooo $2 }
  • if (%access2 == oui) { /mode $chan +oooo $2 }
  • if (%access3 == oui) { /mode $chan +oooo $2 }
  • if (%access4 == oui) { /mode $chan +oooo $2 }
  • if (%access5 == oui) { /mode $chan +oooo $2 }
  • if (%access6 == oui) { /mode $chan +oooo $2 }
  • if (%access7 == oui) { /mode $chan +oooo $2 }
  • if (%access8 == oui) { /mode $chan +oooo $2 }
  • if (%access9 == oui) { /mode $chan +oooo $2 }
  • if (%access10 == oui) { /mode $chan +oooo $2 }
  • }
  • if (!do isin $left($1-,3)) {
  • if ($2 == $null) {
  • if (%access1 == oui) { /mode $chan -oooo %nickk1 }
  • if (%access2 == oui) { /mode $chan -oooo %nickk2 }
  • if (%access3 == oui) { /mode $chan -oooo %nickk3 }
  • if (%access4 == oui) { /mode $chan -oooo %nickk4 }
  • if (%access5 == oui) { /mode $chan -oooo %nickk5 }
  • if (%access6 == oui) { /mode $chan -oooo %nickk6 }
  • if (%access7 == oui) { /mode $chan -oooo %nickk7 }
  • if (%access8 == oui) { /mode $chan -oooo %nickk8 }
  • if (%access9 == oui) { /mode $chan -oooo %nickk9 }
  • if (%access10 == oui) { /mode $chan -oooo %nickk10 }
  • }
  • if (%access1 == oui) { /mode $chan -oooo $2 }
  • if (%access2 == oui) { /mode $chan -oooo $2 }
  • if (%access3 == oui) { /mode $chan -oooo $2 }
  • if (%access4 == oui) { /mode $chan -oooo $2 }
  • if (%access5 == oui) { /mode $chan -oooo $2 }
  • if (%access6 == oui) { /mode $chan -oooo $2 }
  • if (%access7 == oui) { /mode $chan -oooo $2 }
  • if (%access8 == oui) { /mode $chan -oooo $2 }
  • if (%access9 == oui) { /mode $chan -oooo $2 }
  • if (%access10 == oui) { /mode $chan -oooo $2 }
  • }
  • if (!v isin $left($1-,2)) {
  • if ($2 == $null) {
  • if (%access1 == oui) { /mode $chan +vvvv %nickk1 }
  • if (%access2 == oui) { /mode $chan +vvvv %nickk2 }
  • if (%access3 == oui) { /mode $chan +vvvv %nickk3 }
  • if (%access4 == oui) { /mode $chan +vvvv %nickk4 }
  • if (%access5 == oui) { /mode $chan +vvvv %nickk5 }
  • if (%access6 == oui) { /mode $chan +vvvv %nickk6 }
  • if (%access7 == oui) { /mode $chan +vvvv %nickk7 }
  • if (%access8 == oui) { /mode $chan +vvvv %nickk8 }
  • if (%access9 == oui) { /mode $chan +vvvv %nickk9 }
  • if (%access10 == oui) { /mode $chan +vvvv %nickk10 }
  • }
  • if (%access1 == oui) { /mode $chan +vvvv $2 }
  • if (%access2 == oui) { /mode $chan +vvvv $2 }
  • if (%access3 == oui) { /mode $chan +vvvv $2 }
  • if (%access4 == oui) { /mode $chan +vvvv $2 }
  • if (%access5 == oui) { /mode $chan +vvvv $2 }
  • if (%access6 == oui) { /mode $chan +vvvv $2 }
  • if (%access7 == oui) { /mode $chan +vvvv $2 }
  • if (%access8 == oui) { /mode $chan +vvvv $2 }
  • if (%access9 == oui) { /mode $chan +vvvv $2 }
  • if (%access10 == oui) { /mode $chan +vvvv $2 }
  • }
  • if (!dv isin $left($1-,3)) {
  • if ($2 == $null) {
  • if (%access1 == oui) { /mode $chan -vvvv %nickk1 }
  • if (%access2 == oui) { /mode $chan -vvvv %nickk2 }
  • if (%access3 == oui) { /mode $chan -vvvv %nickk3 }
  • if (%access4 == oui) { /mode $chan -vvvv %nickk4 }
  • if (%access5 == oui) { /mode $chan -vvvv %nickk5 }
  • if (%access6 == oui) { /mode $chan -vvvv %nickk6 }
  • if (%access7 == oui) { /mode $chan -vvvv %nickk7 }
  • if (%access8 == oui) { /mode $chan -vvvv %nickk8 }
  • if (%access9 == oui) { /mode $chan -vvvv %nickk9 }
  • if (%access10 == oui) { /mode $chan -vvvv %nickk10 }
  • }
  • if (%access1 == oui) { /mode $chan -vvvv $2 }
  • if (%access2 == oui) { /mode $chan -vvvv $2 }
  • if (%access3 == oui) { /mode $chan -vvvv $2 }
  • if (%access4 == oui) { /mode $chan -vvvv $2 }
  • if (%access5 == oui) { /mode $chan -vvvv $2 }
  • if (%access6 == oui) { /mode $chan -vvvv $2 }
  • if (%access7 == oui) { /mode $chan -vvvv $2 }
  • if (%access8 == oui) { /mode $chan -vvvv $2 }
  • if (%access9 == oui) { /mode $chan -vvvv $2 }
  • if (%access10 == oui) { /mode $chan -vvvv $2 }
  • }
  • if (!b isin $left($1-,2)) {
  • if (%access1 == oui) { /mode $chan +b $2 }
  • if (%access2 == oui) { /mode $chan +b $2 }
  • if (%access3 == oui) { /mode $chan +b $2 }
  • if (%access4 == oui) { /mode $chan +b $2 }
  • if (%access5 == oui) { /mode $chan +b $2 }
  • if (%access6 == oui) { /mode $chan +b $2 }
  • if (%access7 == oui) { /mode $chan +b $2 }
  • if (%access8 == oui) { /mode $chan +b $2 }
  • if (%access9 == oui) { /mode $chan +b $2 }
  • if (%access10 == oui) { /mode $chan +b $2 }
  • }
  • if (!k isin $left($1-,2)) {
  • if (%access1 == oui) { /kick $chan $2 }
  • if (%access2 == oui) { /kick $chan $2 }
  • if (%access3 == oui) { /kick $chan $2 }
  • if (%access4 == oui) { /kick $chan $2 }
  • if (%access5 == oui) { /kick $chan $2 }
  • if (%access6 == oui) { /kick $chan $2 }
  • if (%access7 == oui) { /kick $chan $2 }
  • if (%access8 == oui) { /kick $chan $2 }
  • if (%access9 == oui) { /kick $chan $2 }
  • if (%access10 == oui) { /kick $chan $2 }
  • }
  • if (!kb isin $left($1-,3)) {
  • if (%access1 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  • if (%access2 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  • if (%access3 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  • if (%access4 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  • if (%access5 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  • if (%access6 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  • if (%access7 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  • if (%access8 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  • if (%access9 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  • if (%access10 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  • }
  • if (!listeop isin $left($1-,8)) { /notice $nick la liste des commade est !o (pour te op) , !o "pseudo" , !do (pour te deop) , !do "pseudo" , !v (pour te voice) , !v "pseudo" , !dv (pour te devoice) , !dv "pseudo" , !k "speudo" pour kicker , !b "pseudo" pour ban , !kb "pseudo" pour kick ban }
  • }
  • }
  • #identifycation end
menu menubar {
  access admin
  .admin( $+ %master $+ ):/set %master $$?="quel speudo" | /set %password1 $$?"quel pass"
  .admin( $+ %nickk2 $+ ):/set %nickk2 $$?="quel speudo" | /set %password2 $$?"quel pass"
  .admin( $+ %nickk3 $+ ):/set %nickk3 $$?="quel speudo" | /set %password3 $$?"quel pass"
  .admin( $+ %nickk4 $+ ):/set %nickk4 $$?="quel speudo" | /set %password4 $$?"quel pass"
  .admin( $+ %nickk5 $+ ):/set %nickk5 $$?="quel speudo" | /set %password5 $$?"quel pass"
  .admin( $+ %nickk6 $+ ):/set %nickk6 $$?="quel speudo" | /set %password6 $$?"quel pass"
  .admin( $+ %nickk7 $+ ):/set %nickk7 $$?="quel speudo" | /set %password7 $$?"quel pass"
  .admin( $+ %nickk8 $+ ):/set %nickk8 $$?="quel speudo" | /set %password8 $$?"quel pass"
  .admin( $+ %nickk9 $+ ):/set %nickk9 $$?="quel speudo" | /set %password9 $$?"quel pass"
  .admin( $+ %nickk10 $+ ):/set %nickk10 $$?="quel speudo" | /set %password10 $$?"quel pass"
}
#identifycation on

on *:text:identify*:?:{
  if ($nick == %master && %password1 == $2) { /notice $nick Bienvenue $nick au toi mon maitre prefere,si ces la premiere que tu es avec moi tape !listeop | /set %access1 oui }
  if ($nick == %nickk2 && %password2 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access2 oui }
  if ($nick == %nickk3 && %password3 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access3 oui }
  if ($nick == %nickk4 && %password4 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access4 oui }
  if ($nick == %nickk5 && %password5 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access5 oui }
  if ($nick == %nickk6 && %password6 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access6 oui }
  if ($nick == %nickk7 && %password7 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access7 oui }
  if ($nick == %nickk8 && %password8 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access8 oui }
  if ($nick == %nickk9 && %password9 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access9 oui }
  if ($nick == %nickk10 && %password10 == $2) { /notice $nick Bienvenue $nick , presque toute mes commandes sont à ta disposition | /set %access10 oui }
  if (%password1 != $2 && %password2 != $2 && %password3 != $2 && %password4 != $2 && %password5 != $2 && %password6 != $2 && %password7 != $2 && %password8 != $2 && %password9 != $2 %password10 != $2)  { /notice $nick 4Password incorrect !!!! }
  if (%password1 != $2 ) { /set %access1 non }
  if (%password2 != $2 ) { /set %access2 non }
  if (%password3 != $2 ) { /set %access3 non }
  if (%password4 != $2 ) { /set %access4 non }
  if (%password5 != $2 ) { /set %access5 non }
  if (%password6 != $2 ) { /set %access6 non }
  if (%password7 != $2 ) { /set %access7 non }
  if (%password8 != $2 ) { /set %access8 non }
  if (%password9 != $2 ) { /set %access9 non }
  if (%password10 != $2 ) { /set %access10 non }
}

on *:connect:{ 
  if ($me == $nick) { /set %access1 non | /set %access2 non | /set %access3 non | /set %access4 non | /set %access5 non | /set %access6 non | /set %access7 non | /set %access8 non | /set %access9 non | /set %access10 non }
}
on *:text:*:#:{
  if (!o isin $left($1-,2)) {
    if ($2 == $null) {
      if (%access1 == oui) { /mode $chan +oooo %nickk1 }
      if (%access2 == oui) { /mode $chan +oooo %nickk2 }
      if (%access3 == oui) { /mode $chan +oooo %nickk3 }
      if (%access4 == oui) { /mode $chan +oooo %nickk4 }
      if (%access5 == oui) { /mode $chan +oooo %nickk5 }
      if (%access6 == oui) { /mode $chan +oooo %nickk6 }
      if (%access7 == oui) { /mode $chan +oooo %nickk7 }
      if (%access8 == oui) { /mode $chan +oooo %nickk8 }
      if (%access9 == oui) { /mode $chan +oooo %nickk9 }
      if (%access10 == oui) { /mode $chan +oooo %nickk10 }
    }
    if (%access1 == oui) { /mode $chan +oooo $2 }
    if (%access2 == oui) { /mode $chan +oooo $2 }
    if (%access3 == oui) { /mode $chan +oooo $2 }
    if (%access4 == oui) { /mode $chan +oooo $2 }
    if (%access5 == oui) { /mode $chan +oooo $2 }
    if (%access6 == oui) { /mode $chan +oooo $2 }
    if (%access7 == oui) { /mode $chan +oooo $2 }
    if (%access8 == oui) { /mode $chan +oooo $2 }
    if (%access9 == oui) { /mode $chan +oooo $2 }
    if (%access10 == oui) { /mode $chan +oooo $2 }
  }
  if (!do isin $left($1-,3)) {
    if ($2 == $null) {
      if (%access1 == oui) { /mode $chan -oooo %nickk1 }
      if (%access2 == oui) { /mode $chan -oooo %nickk2 }
      if (%access3 == oui) { /mode $chan -oooo %nickk3 }
      if (%access4 == oui) { /mode $chan -oooo %nickk4 }
      if (%access5 == oui) { /mode $chan -oooo %nickk5 }
      if (%access6 == oui) { /mode $chan -oooo %nickk6 }
      if (%access7 == oui) { /mode $chan -oooo %nickk7 }
      if (%access8 == oui) { /mode $chan -oooo %nickk8 }
      if (%access9 == oui) { /mode $chan -oooo %nickk9 }
      if (%access10 == oui) { /mode $chan -oooo %nickk10 }
    }
    if (%access1 == oui) { /mode $chan -oooo $2 }
    if (%access2 == oui) { /mode $chan -oooo $2 }
    if (%access3 == oui) { /mode $chan -oooo $2 }
    if (%access4 == oui) { /mode $chan -oooo $2 }
    if (%access5 == oui) { /mode $chan -oooo $2 }
    if (%access6 == oui) { /mode $chan -oooo $2 }
    if (%access7 == oui) { /mode $chan -oooo $2 }
    if (%access8 == oui) { /mode $chan -oooo $2 }
    if (%access9 == oui) { /mode $chan -oooo $2 }
    if (%access10 == oui) { /mode $chan -oooo $2 }
  }
  if (!v isin $left($1-,2)) {
    if ($2 == $null) {
      if (%access1 == oui) { /mode $chan +vvvv %nickk1 }
      if (%access2 == oui) { /mode $chan +vvvv %nickk2 }
      if (%access3 == oui) { /mode $chan +vvvv %nickk3 }
      if (%access4 == oui) { /mode $chan +vvvv %nickk4 }
      if (%access5 == oui) { /mode $chan +vvvv %nickk5 }
      if (%access6 == oui) { /mode $chan +vvvv %nickk6 }
      if (%access7 == oui) { /mode $chan +vvvv %nickk7 }
      if (%access8 == oui) { /mode $chan +vvvv %nickk8 }
      if (%access9 == oui) { /mode $chan +vvvv %nickk9 }
      if (%access10 == oui) { /mode $chan +vvvv %nickk10 }
    }
    if (%access1 == oui) { /mode $chan +vvvv $2 }
    if (%access2 == oui) { /mode $chan +vvvv $2 }
    if (%access3 == oui) { /mode $chan +vvvv $2 }
    if (%access4 == oui) { /mode $chan +vvvv $2 }
    if (%access5 == oui) { /mode $chan +vvvv $2 }
    if (%access6 == oui) { /mode $chan +vvvv $2 }
    if (%access7 == oui) { /mode $chan +vvvv $2 }
    if (%access8 == oui) { /mode $chan +vvvv $2 }
    if (%access9 == oui) { /mode $chan +vvvv $2 }
    if (%access10 == oui) { /mode $chan +vvvv $2 }
  }
  if (!dv isin $left($1-,3)) {
    if ($2 == $null) {
      if (%access1 == oui) { /mode $chan -vvvv %nickk1 }
      if (%access2 == oui) { /mode $chan -vvvv %nickk2 }
      if (%access3 == oui) { /mode $chan -vvvv %nickk3 }
      if (%access4 == oui) { /mode $chan -vvvv %nickk4 }
      if (%access5 == oui) { /mode $chan -vvvv %nickk5 }
      if (%access6 == oui) { /mode $chan -vvvv %nickk6 }
      if (%access7 == oui) { /mode $chan -vvvv %nickk7 }
      if (%access8 == oui) { /mode $chan -vvvv %nickk8 }
      if (%access9 == oui) { /mode $chan -vvvv %nickk9 }
      if (%access10 == oui) { /mode $chan -vvvv %nickk10 }
    }
    if (%access1 == oui) { /mode $chan -vvvv $2 }
    if (%access2 == oui) { /mode $chan -vvvv $2 }
    if (%access3 == oui) { /mode $chan -vvvv $2 }
    if (%access4 == oui) { /mode $chan -vvvv $2 }
    if (%access5 == oui) { /mode $chan -vvvv $2 }
    if (%access6 == oui) { /mode $chan -vvvv $2 }
    if (%access7 == oui) { /mode $chan -vvvv $2 }
    if (%access8 == oui) { /mode $chan -vvvv $2 }
    if (%access9 == oui) { /mode $chan -vvvv $2 }
    if (%access10 == oui) { /mode $chan -vvvv $2 }
  }
  if (!b isin $left($1-,2)) {
    if (%access1 == oui) { /mode $chan +b $2 }
    if (%access2 == oui) { /mode $chan +b $2 }
    if (%access3 == oui) { /mode $chan +b $2 }
    if (%access4 == oui) { /mode $chan +b $2 }
    if (%access5 == oui) { /mode $chan +b $2 }
    if (%access6 == oui) { /mode $chan +b $2 }
    if (%access7 == oui) { /mode $chan +b $2 }
    if (%access8 == oui) { /mode $chan +b $2 }
    if (%access9 == oui) { /mode $chan +b $2 }
    if (%access10 == oui) { /mode $chan +b $2 }
  }
  if (!k isin $left($1-,2)) {
    if (%access1 == oui) { /kick $chan $2 }
    if (%access2 == oui) { /kick $chan $2 }
    if (%access3 == oui) { /kick $chan  $2 }
    if (%access4 == oui) { /kick $chan  $2 }
    if (%access5 == oui) { /kick $chan  $2 }
    if (%access6 == oui) { /kick $chan  $2 }
    if (%access7 == oui) { /kick $chan  $2 }
    if (%access8 == oui) { /kick $chan  $2 }
    if (%access9 == oui) { /kick $chan  $2 }
    if (%access10 == oui) { /kick $chan $2 }
  }
  if (!kb isin $left($1-,3)) {
    if (%access1 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
    if (%access2 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
    if (%access3 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
    if (%access4 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
    if (%access5 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
    if (%access6 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
    if (%access7 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
    if (%access8 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
    if (%access9 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
    if (%access10 == oui) { /timer1 1 1 /kick $chan $2 | /timer2 1 1 /mode $chan +b $2 }
  }
  if (!listeop isin $left($1-,8)) { /notice $nick la liste des commade est !o (pour te op) , !o "pseudo" , !do (pour te deop) , !do "pseudo" , !v (pour te voice) , !v "pseudo" , !dv (pour te devoice) , !dv "pseudo" , !k "speudo" pour kicker , !b "pseudo" pour ban , !kb "pseudo" pour kick ban }
}
}
#identifycation end
  

Conclusion

au revoir !!! :)  
 

Commentaires et avis

signaler à un administrateur
Commentaire de Alerion le 12/09/2003 20:13:08

bonjour, excellente idée,
puis-je te suggérer un petit truc pour simplifier la chose
mets "carrément le $nick au lieu de %nickkxx, ainsi
tu ne limites pas t accès à 10 pseudos, et tu vérifies sur sur une seule ligne
de plus tu peux même ajouter sur quel #chan il y a droit. aux accès
genre :

    if (%password [ $+ [ $nick ] ] [ $+ [ $2 ] ] == $3) { /notice $nick Bienvenue $nick , presque toutes mes commandes sont à ta disposition | /set %access2 oui }
; $2 étant passé pour le #chan, et $3 le pass

pour mieux garder les accès, sauvegardes les dans un fichier .ini
:o)

signaler à un administrateur
Commentaire de SornDrixer le 12/09/2003 20:42:04 administrateur CS

Je te conseille d'apprendre à utiliser les boucles, cela t'évitera de faire autant de conditions quasi-identitique .

Et une petite erreur :
if (%access3 == oui) { /kick $chan +b $2 }

là sa tentera de kicker la personne "+b" avec pour raison, le texte contenu dans la 2ème chaine de caractère.
Donc , correction :
if (%access3 == oui) { /kick $chan $2 }


Et maintenant, une petite leçon d'orthographe, je sais que je suis chiant mais bon :
on écrit pas identifyer mais identifier.
identify = identifier mais en anglais
et toi tu mixes le français avec de l'anglais , genre J-C vandamne :P

Voilà , bonne continuation dans le mIRC Scripting ( et dans l'orthographe ! lol ) =)

signaler à un administrateur
Commentaire de thyb le 14/09/2003 11:10:53

lol, sorn, je vois pas pk tu parle de boucle dans un ident de bot lol mais bon c pas grave :) et puis pour ton ident je te conseil de te mettre sois au htable (un peu compliquer au debut) ou au writeini c qui est plus simple.
la syntaxe pour ecrire: writeini fichier.ini chapitre item data
ex: writeini access.ini $chan $nick 80
car ajoutera un access a $nick sur $chan de niveau 80
et pour le verifier: if ($readini(access.ini,$chan,$nick) >= 80) { ... }
voila, ce que je t'ai dis est pas super comme systeme d'access car si qq1 prend mon pseudo, bah t dans la mer**.
sinon g trouver un faute dans     if (!kb isin $left($1-,2)) {
faut que tu mette     if (!kb isin $left($1-,3)) {
ptite faute de calcule lol et puis aussi sa serai mieu de $strip $left($1-,3) sur toutes les condition
if (!kb isin $strip($left($1-,3))) {
$strip sert a enlever la couleur, les majuscule des text, comme sa tout le monde pourra utiliser t commande :)

voila bonne continuation :)

signaler à un administrateur
Commentaire de SornDrixer le 14/09/2003 11:57:09 administrateur CS

thyb : je parle de boucle pour tout les :
if (%access4 == oui) { /mode $chan +b $2 }
    if (%access5 == oui) { /mode $chan +b $2 }
    if (%access6 == oui) { /mode $chan +b $2 }
    if (%access7 == oui) { /mode $chan +b $2 }
etc etc ...

Une boucle suffit à faire toutes ces vérifications en 10 fois moins de lignes.

signaler à un administrateur
Commentaire de thyb le 14/09/2003 19:44:06

sorn, oué mais le probleme c que le nombre de pseudo est tjs limiter lol, enfin c vrai que c plus rapide avec un ptit while :p

signaler à un administrateur
Commentaire de thyb le 14/09/2003 19:44:07

sorn, oué mais le probleme c que le nombre de pseudo est tjs limiter lol, enfin c vrai que c plus rapide avec un ptit while :p

signaler à un administrateur
Commentaire de thyb le 14/09/2003 19:44:50

arg ... g double clicker sur le button ajouter le commentaire lol :/

signaler à un administrateur
Commentaire de Alerion le 14/09/2003 21:17:09

Merci thyb pour le $strip que je ne connaissais pas!!
j'avais validé les strip code directement en option sur mirc...
:)
Mais je crois aussi que le mieux étant l'identification avec une variable utilisant le pseudo et le chan ainsi plus besoin de boucler et c très localisé, de plus avec mon bot, g utilisé une attente de 1minute 10 s. pour être sûr que la personne soit identifiée auprès de chanserv... sur irix je ne c pas comment ça fonctionne à l'issue de la demande d'identification...
:)
Et Quidni

signaler à un administrateur
Commentaire de thyb le 18/09/2003 19:41:15

un conseil pour les bot, (juste pour les bots lol) laisse tomber les variable... moi sur mon bot g qu'une dizaine de variable ... le reste c des htable que je hsave -so a chaque sockclose :) -(je le mettrai bientot a dl :p)-

si tu ve de l'aide pour ton bot, rejoin moi sur #urban sur le server voilawanadoo :p -(un peu de pub en passant lol)-

signaler à un administrateur
Commentaire de neo66 le 05/12/2003 19:03:07

Euh, ya un pti probleme (un gros meme) parceke regarde:
if (%access1 == oui) { /mode $chan +oooo $2 }
sa va dire ke si le gars de laccess1 c identifier NIMPORTE ki peu utiliser la commande !o (A moin ke je me trompe, mais c pareil partout)
CORRECTION:
if (%access1 == oui) && (%master == $nick { /mode $chan +oooo $2 }

sa serai plus securiser pârceke la c la porte ouverte a nimporte ki !
bon sinon ton script est pas mal
BONNE CONTINUATION !!!

signaler à un administrateur
Commentaire de Sopor le 05/02/2005 15:33:19

comment on s'identifie???

Ajouter un commentaire



Nos sponsors

Sondage...

CalendriCode

Juillet 2009
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
2728293031  

Consulter la suite du CalendriCode

Comparez les prix Nouvelle version

Photothèque Nouveau !



Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés
Temps d'éxécution de la page : 0,530 sec

Google Coop CodeS-SourceS Google Coop CodeS-SourceS


Certaines images présentes sur le site (notament certains avatars) sont issues des collections IconShock, donc si vous souhaitez utiliser ces icons vous devez les acheter, ne les copiez pas et ne utilisez pas dans vos sites et applications sans les avoir commandé.