Search
Web Applications
install Joomla Wordpress Phpbb Drupal FluxBB PunBB osCommerce simple-machines MYBB moodle vBulletin Dolphin-v.7.1.1 PHPNUKE XOOPSServices
install BorkNet Services X3 Services Anope Atheme Services Srvx IRC SrervicesIRCD
install Snircd IRCU INSPIRCD UNREAL Nefarious Bircd Bahamut Asuka CharybdisTCL SCRIPT
TCL SCRIPT FOR EGGDROP
Allprotection4.7 AntiproxyBots
Bots install FishBot bobot++ Eggdrop janus Omega Security Services Botnix Bopm SupyBot PyLink HopmLatest topics
GatherBot Snippets
BMT IRC Network :: BMT :: BMT
Page 1 of 1
GatherBot Snippets
- 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?"
}
BMT IRC Network :: BMT :: BMT
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Sat Aug 05, 2023 2:09 am by Chief
» mIRCx IRC Network Config
Sat Jul 15, 2023 9:51 pm by Chief
» ircu2.10.12-pk with dnsbl
Fri Mar 10, 2023 2:22 pm by Admin
» Guide install PyLink on New version FreeBSD
Thu Dec 15, 2022 9:39 pm by Chief
» מדריך התקנה PBot על מערכת הפעלה FreeBsd-12
Mon Dec 05, 2022 5:44 am by Chief
» install Nefarious2 && X3 IRC Services in FreeBsd
Sat Nov 12, 2022 3:12 pm by Chief
» help problem with adduser in Freebsd 12
Fri Nov 11, 2022 9:06 pm by Chief
» מדריך פקודות והתקנה בסרביס X3
Fri Oct 28, 2022 1:43 pm by Chief
» מדריך הגדרות WebIRC in Nefarious2
Thu Apr 07, 2022 4:45 am by Chief