![]() |
|
|||||||
| Tcl scripting Tcl scripting related questions |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Feb 2007
Posts: 9
Rep Power: 0 ![]() |
Am acest TCL in care egg-ul verifica chan-ul ... el merge dar ash vrea ca eggul sa verifice dupa acele 2 min in care trebuie sa i se dea access... sa verifice singur access-ul la X iar in caz ca nu are ... sa dea part singur de pe chan
Code:
bind bot B freechans bot:freechans
proc bot:freechans {bot com txt} {
global settings
if {[llength [channels]] < $settings(max_chans)} {
putbot $bot "chansfree"
}
}
bind bot B addchan bot:addchan
proc bot:addchan {bot com txt} {
set txt [split $txt]
set chan [lindex $txt 0]
set who [lindex $txt 1]
set x [lrange $txt 2 5]
set mix [lindex $txt 6]
pub:join [lindex $x 1] $chan $who $x $mix
}
proc speak {chan} {
global tchan
set tchan "$chan"
bind pubm - "* nu-mi amintesc sa-l fi vazut pe *" chan:purge
bind pubm - "* i don`t remember seeing *" chan:purge
puthelp "privmsg $chan :2Va rugam asteptati pana voi verifica canalul 4$chan."
puthelp "privmsg $chan :2Please wait untill I will verify the channel 4$chan."
}
proc speak2 {chan} {
global tchan
set tchan "$chan"
puthelp "privmsg $chan :!seen a"
}
proc speak3 {chan} {
global chanserv
set tchan "$chan"
if {[onchan X $chan]} {puthelp "PRIVMSG $chan :2Te rog adauga botului 499 si autoop la X astfel: 4/msg X adduser $chan $::chanserv(user) 499 2& 4/msg x modinfo $chan automode $::chanserv(user) op 2 si da paste la confirmari pe acest canal. Ai 2 minute sa dai paste la confirmare, in caz contrar voi parasi canalul !!"} else { puthelp "PRIVMSG $chan :2Te rog adauga autoop la psyBNC astfel: 4/addautoop $chan :*!*@$::chanserv(user).users.undernet.org2 si da paste la confirmare pe acest canal. Ai 2 minute sa dai paste la confirmare, in caz contrar voi parasi canalul !!" }
utimer 65 [unbind pubm - "* nu-mi amintesc sa-l fi vazut pe *" chan:purge]
utimer 66 [unbind pubm - "* i don`t remember seeing *" chan:purge]
bind pubm - "* am setat AUTOMODE la OP *" chan:cycle
bind pubm - "* set AUTOMODE to OP *" chan:cycle
bind pubm - "* hostmask *" chan:cycle
bind pubm - "* hostul *" chan:cycle
}
proc speak4 {chan} {
global chanserv
set tchan "$chan"
if {[onchan X $chan]} {puthelp "PRIVMSG $chan :2Please add 499 and autoop to X using: 4/msg X adduser $chan $::chanserv(user) 499 2& 4/msg x modinfo $chan automode $::chanserv(user) op2 and paste the confirmations in here. You have 2 minute to paste the confirmation, else I will leave the channel !!"} else { puthelp "PRIVMSG $chan :2Please add autoop to the psyBNC using: 4/addautoop $chan :*!*@$::chanserv(user).users.undernet.org2 and paste the confirmation in here. You have 2 minute to paste the confirmation, else I will leave the channel !!" }
}
proc chan:cycle {nick host hand chan txt} {
putquick "part $chan :2Cycling channel to see if I can get autoop on $chan"
}
proc speak5 {chan} {
global tchan
set tchan "$chan"
utimer 180 [unbind pubm - "* am setat AUTOMODE la OP *" chan:cycle]
utimer 181 [unbind pubm - "* set AUTOMODE to OP *" chan:cycle]
utimer 182 [unbind pubm - "* hostmask *" chan:cycle]
utimer 183 [unbind pubm - "* hostul *" chan:cycle]
puthelp "privmsg $chan :4Inregistrare COMPLETA.2 Va rugam sa nu abuzati de botul #U&U, in caz contrat acesta va pleca de pe canalul dumneavoastra."
puthelp "privmsg $chan :4Registration COMPLETED.2 Please don`t abuse to the #U&U eggdrop, in the other way he will leave you channel."
}
putlog "\00304 Request 2 loaded"
Mersi ! Astept Reply !
__________________
...::: Just Smile :::.... Last edited by UniversaliA; 18-06-2008 at 15:57. |
|
|
|
|
|
#2 (permalink) |
|
Administrator
aka aqwzsx |
In afara de acest script, ai altceva pe bot? De exemplu a&a light (daca da, ce versiune)? Ca sa stiu ce rutine pot folosi sau trebuie scris totul din nou.
P.S. Data viitoare, sa dai te rog o denumirea la thread mai adecvata, de exemplu cum am schimbat eu acuma. Merci anticipat :) |
|
|
|
|
|
#4 (permalink) |
|
Administrator
aka aqwzsx |
Code:
bind bot B freechans bot:freechans
proc bot:freechans {bot com txt} {
global settings
if {[llength [channels]] < $settings(max_chans)} {putbot $bot "chansfree"}
}
bind bot B addchan bot:addchan
proc bot:addchan {bot com txt} {
global tchan
set txt [split $txt]
set chan [lindex $txt 0]
set who [lindex $txt 1]
set x [lrange $txt 2 5]
set mix [lindex $txt 6]
set tchan "$chan"
pub:join [lindex $x 1] $chan $who $x $mix
}
proc speak {chan} {
bind pubm - "* nu-mi amintesc sa-l fi vazut pe *" chan:purge
bind pubm - "* i don`t remember seeing *" chan:purge
puthelp "privmsg $chan :2Va rugam asteptati pana voi verifica canalul 4$chan."
puthelp "privmsg $chan :2Please wait untill I will verify the channel 4$chan."
puthelp "privmsg $chan :!seen a"
}
proc speak3 {chan} {
if {[onchan X $chan]} {puthelp "PRIVMSG $chan :2Te rog adauga botului 499 si autoop la X astfel: 4/msg X adduser $chan $::chanserv(user) 499 2& 4/msg x modinfo $chan automode $::chanserv(user) op 2 si da paste la confirmari pe acest canal. Ai 2 minute sa dai paste la confirmare, in caz contrar voi parasi canalul !!"} else { puthelp "PRIVMSG $chan :2Te rog adauga autoop la psyBNC astfel: 4/addautoop $chan :*!*@$::chanserv(user).users.undernet.org2 si da paste la confirmare pe acest canal. Ai 2 minute sa dai paste la confirmare, in caz contrar voi parasi canalul !!" }
bind pubm - "* am setat AUTOMODE la OP *" chan:cycle
bind pubm - "* set AUTOMODE to OP *" chan:cycle
bind pubm - "* hostmask *" chan:cycle
bind pubm - "* hostul *" chan:cycle
}
proc speak4 {chan} {
global chanserv
if { [onchan X $chan]} {puthelp "PRIVMSG $chan :2Please add 499 and autoop to X using: 4/msg X adduser $chan $::chanserv(user) 499 2& 4/msg x modinfo $chan automode $::chanserv(user) op2 and paste the confirmations in here. You have 2 minute to paste the confirmation, else I will leave the channel !!"} else { puthelp "PRIVMSG $chan :2Please add autoop to the psyBNC using: 4/addautoop $chan :*!*@$::chanserv(user).users.undernet.org2 and paste the confirmation in here. You have 2 minute to paste the confirmation, else I will leave the channel !!" }
}
proc chan:cycle {nick host hand chan txt} {
putquick "part $chan :2Cycling channel to see if I can get autoop on $chan"
}
proc speak5 {chan} {
puthelp "privmsg $chan :4Inregistrare COMPLETA.2 Va rugam sa nu abuzati de botul #U&U, in caz contrat acesta va pleca de pe canalul dumneavoastra."
puthelp "privmsg $chan :4Registration COMPLETED.2 Please don`t abuse to the #U&U eggdrop, in the other way he will leave you channel."
utimer 180 a:unbind
}
proc a:unbind {} {
catch {unbind pubm - "* am setat AUTOMODE la OP *" chan:cycle}
catch {unbind pubm - "* set AUTOMODE to OP *" chan:cycle}
catch {unbind pubm - "* hostmask *" chan:cycle}
catch {unbind pubm - "* hostul *" chan:cycle}
catch {unbind pubm - "* nu-mi amintesc sa-l fi vazut pe *" chan:purge}
catch {unbind pubm - "* i don`t remember seeing *" chan:purge}
}
putlog "\00304 Request 2 loaded"
Nu ai dat tot script`ul. Sunt variabile care nu inteleg pentru ce ai nevoie, procese care nu sunt initiate nici de un eveniment etc etc.
Deci, algoritimic. Dupa ce toate rutinele de verificare sunt trecute cu succes
Deasemenea in rutinele de verificare in afara de seen as include
Last edited by UniversaliA; 30-06-2008 at 02:43. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Request script] give X access & autoop | spy | Tcl scripting | 8 | 28-08-2008 03:20 |
| modificare nivelului de access | GoRaPiD | a&a light script | 3 | 06-08-2004 02:07 |
| Tcl error [pub:takeovers]: illegal access mode "banprinxtake.txt" | razwan | Tcl scripting | 3 | 17-07-2004 15:03 |