Search
 
 

Display results as :
 


Rechercher Advanced Search

Web Applications
install Joomla Wordpress Phpbb Drupal FluxBB PunBB osCommerce simple-machines MYBB moodle vBulletin Dolphin-v.7.1.1 PHPNUKE XOOPS
Services
install BorkNet Services X3 Services Anope Atheme Services Srvx IRC Srervices
IRCD
install Snircd IRCU INSPIRCD UNREAL Nefarious Bircd Bahamut Asuka Charybdis
TCL SCRIPT
TCL SCRIPT FOR EGGDROP Allprotection4.7 Antiproxy
Bots
Bots install FishBot bobot++ Eggdrop janus Omega Security Services Botnix Bopm SupyBot PyLink Hopm
Latest topics
» מדריך הגנות אופרים בגירסאות IRCD
Mon May 14, 2018 5:50 am by Chief

» install irssi v1.2-1.2-dev in freebsd
Thu Mar 22, 2018 5:43 am by Chief

» install ZNC in Ubuntu 14.04
Sun Mar 04, 2018 5:50 am by Chief

» מדריך שינוי גירסאות ב FREEBSD
Fri Mar 02, 2018 8:35 am by Chief

» מדריך התקנה ZNC על WINDOWS 7
Wed Feb 21, 2018 3:30 am by Chief

» Guide install Znc in FreeBsd
Sun Feb 18, 2018 7:58 am by Chief

» Guide install InspIRCd v3.0.0a5 in FreeBsd
Thu Jan 18, 2018 9:52 pm by Chief

» mIRCx IRC Network Config
Sun Dec 10, 2017 2:22 am by Chief

» מדריך התקנה Pylink על unrealircd4 && inspircd
Sat Nov 18, 2017 6:35 am by Chief

May 2018
MonTueWedThuFriSatSun
 123456
78910111213
14151617181920
21222324252627
28293031   

Calendar Calendar

Affiliates
free forum

Affiliates
free forum


GatherBot Snippets

Go down

GatherBot Snippets

Post  Admin on Fri May 04, 2012 4:06 pm

Code:

on *:text:!start *:#:{
  .set %nick $nick
  .set %chan $chan
  .set %ip $2
  .set %port $3
  /sockopen cs %ip %port
}

on *:SOCKOPEN:cs: {
  if (!$sockerr) { notice %nick Server is ONLINE | .set %online 1 }
  else { notice %nick Server is OFFLINE | .set %online 0 }
  /sockclose cs
  if (%online = 1) {
    notice %nick Please type the password.
  }
}

on *:OPEN:?:{
  if ($nick = %nick) && (%online = 1) {
    .set %pass.typed $1-
    if (%pass.typed = %pass) start
    .close -m $nick
  }
}

alias start {
  .set %gather.on 1
  .set %last.player 0
  .set %p1 x | .set %p2 x | .set %p3 x | .set %p4 x | .set %p5 x | .set %p6 x | .set %p7 x | .set %p8 x | .set %p9 x | .set %p10 x
  .msg %chan Gather is turned on
  .msg %chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10
}

on *:text:!add*:#:{
  if (%gather.on = 1) {
    if ($2) {
      if ($2 ison $chan) && ($nick isop $chan) {
        if (%p1 != $2) && (%p2 != $2) && (%p3 != $2) && (%p4 != $2) && (%p5 != $2) && (%p6 != $2) && (%p7 != $2) && (%p8 != $2) && (%p9 != $2) && (%p10 != $2) {
          if (%p10 = x) && (%last.player != 10) {
            .set %p $+ $calc(%last.player + 1) $2-
            .set %last.player $calc(%last.player + 1)
            .write gather.txt $2-
            .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10
            if (%last.player = 10) { .msg $chan Gather is full. Please wait till we generate the teams. | /make.teams }
          }
        }
        else { .msg %chan Sorry you are already in gather. }
      }
      elseif ($2 !ison $chan) { .msg %chan $2 is not in the channel }
    }
    else {
      if (%p1 != $nick) && (%p2 != $nick) && (%p3 != $nick) && (%p4 != $nick) && (%p5 != $nick) && (%p6 != $nick) && (%p7 != $nick) && (%p8 != $nick) && (%p9 != $nick) && (%p10 != $nick) {
        if (%p10 = x) && (%last.player != 10) {
          .set %p $+ $calc(%last.player + 1) $nick
          .set %last.player $calc(%last.player + 1)
          .write gather.txt $nick
          .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10
          if (%last.player = 10) { make.teams }
        }
      }
      else { .msg %chan Sorry you are already in gather. }
    }
  }
}

on *:text:!rem*:#:{
  if (%gather.on = 1) {
    if ($2) && ($nick isop $chan) {
      if (%p1 = $2) { .set %p1 %p2 | .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p2 = $2) { .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p3 = $2) { .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p4 = $2) { .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p5 = $2) { .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p6 = $2) { .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p7 = $2) { .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1 | /.write -ds $+ $2- gather.txt) }
      elseif (%p8 = $2) { .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) }
      elseif (%p9 = $2) { .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) }
    }
    else {
      if (%p1 = $nick) { .set %p1 %p2 | .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p2 = $nick) { .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p3 = $nick) { .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p4 = $nick) { .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p5 = $nick) { .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p6 = $nick) { .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p7 = $nick) { .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p8 = $nick) { .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p9 = $nick) { .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    }
  }
}

on *:part:#:{
  if (%gather.on = 1) {
    if (%p1 = $nick) { .set %p1 %p2 | .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p2 = $nick) { .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p3 = $nick) { .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p4 = $nick) { .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p5 = $nick) { .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p6 = $nick) { .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p7 = $nick) { .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p8 = $nick) { .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p9 = $nick) { .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
  }
}

alias make.teams {
  if ($len(gather.txt) = 10) {
    .set %i 1
    .set %last.num 1

    while (%i <= 10) {
      .set %tmp $read(gather.txt)
      .set %p $+ %last.num %tmp
      inc %i
      .set %last.num $calc(%last.num + 1)
      /.write -ds $+ %tmp gather.txt
      .unset %tmp
    }
    msg $chan Team A: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 Team B: %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10
    msg $chan Match Begins. Please wait till you get the password.
    /send.pass
  }
}

on *:text:!off:#:{
  if ($nick isop $chan) {
    if (%gather.on = 1) {
      .set %gather.on 0
      .msg $chan Gather is now turned off
      .set %p1 x | .set %p2 x | .set %p3 x | .set %p4 x | .set %p5 x | .set %p6 x | .set %p7 x | .set %p8 x | .set %p9 x | .set %p10 x
      .unset %ip | .unset %port | .unset %chan | .unset %nick
      .unset %pass.typed | .unset %last.player | .unset %last.num
      /.remove gather.txt
      .set %online 0
    }
    elseif (%gather.on = 0) { msg $chan Gather is already off }
  }
}
alias send.pass {
  .write gather.txt %p1 | .write gather.txt %p2 | .write gather.txt %p3 | .write gather.txt %p4 | .write gather.txt %p5 | .write gather.txt %p6 | .write gather.txt %p7 | .write gather.txt %p8 | .write gather.txt %p9 | .write gather.txt %p10
  .set %i 1
  while (%i <= 10) {
    .set %tmp $read(gather.txt,%i)
    inc %i
    if (%tmp != $null) {
      .msg %tmp Hello, server ip is  $+ %server.ip $+  and the password is  $+ %pass $+ 
      .msg %tmp Good luck & have fun
    }
    .unset %tmp
  }
  .msg %chan Game information has been sent. If u didnt get it plz ask administration.
  /.remove gather.txt
  if (%gather.on = 1) {
    .set %gather.on 0
    .set %p1 x | .set %p2 x | .set %p3 x | .set %p4 x | .set %p5 x | .set %p6 x | .set %p7 x | .set %p8 x | .set %p9 x | .set %p10 x
    .unset %ip | .unset %port | .unset %chan | .unset %nick
    .unset %pass.typed | .unset %last.player | .unset %last.num
    /.remove gather.txt
    .set %online 0
  }
}

menu menubar {
  Gather
  .Set pass:/.set %pass $?="What's the pasword?"
  .Set IP:/.set %server.ip $?="What's the server ip?"
  .Set map:/.set %map $?="What's the map?"
}
avatar
Admin
Admin

מספר הודעות : 267
Join date : 2009-09-12
Age : 37
מיקום : mIRCX IRC Network

View user profile http://mircx.forumotion.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum