This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
jsilvestre
Voice
Posts: 20 Joined: Sat Mar 05, 2005 6:02 am
Location: Lisbon, Portugal
Post
by jsilvestre » Sat Mar 05, 2005 7:32 am
Good morning!
I here to request a simple script.
I have many nicks and i need a script to my eggdrop change is nick every X minutes.
Best Regards
José Eduardo Silvestre
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Mar 05, 2005 8:57 am
Code: Select all
# change nick after how many mins ?
set nchange(mins) "10"
# your nicks:
set nchange(nicks) "nick1 nick2 nick3"
# script goes here:
timer $nchange(mins) [list change:nick $nchange(nicks) $nchange(mins)]
set nchange(length) 0
proc change:nick {nicks mins} {
global nick nchange
incr nchange(length)
if {"$nchange(length)" > "[llength $nicks]"} { set nchange(length) 1 }
set nick "[lindex $nicks [expr {$nchange(length)-1}]]"
timer $mins [list change:nick $nicks $mins]
}
This should change the bot's nick every x minutes respectivley from nchange(nicks).
Kurupt
Voice
Posts: 26 Joined: Sun Aug 22, 2004 7:57 pm
Location: Hermanstat
Post
by Kurupt » Sat Mar 05, 2005 5:26 pm
Code: Select all
bind time - "*5 * * * *" change:it
proc change:it {min hour day month year} {
global nick
set nick [randstring 9]
}
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Mar 05, 2005 7:12 pm
Kurupt wrote: Code: Select all
bind time - "*5 * * * *" change:it
proc change:it {min hour day month year} {
global nick
set nick [randstring 9]
}
that'll change the bot's nick to a 9 charactered random nick every 5 minutes, that's not what he wants.
Kurupt
Voice
Posts: 26 Joined: Sun Aug 22, 2004 7:57 pm
Location: Hermanstat
Post
by Kurupt » Sat Mar 05, 2005 7:28 pm
oh sorry i whas a lil disturbed
jsilvestre
Voice
Posts: 20 Joined: Sat Mar 05, 2005 6:02 am
Location: Lisbon, Portugal
Post
by jsilvestre » Sun Mar 06, 2005 2:40 pm
Sir_Fz thanks
Best Regards
José Eduardo Silvestre
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sun Mar 06, 2005 7:32 pm
You're welcome, but you will face problems when you rehash since you will have several timers running. This should fix it:
Code: Select all
# change nick after how many mins ?
set nchange(mins) "10"
# your nicks:
set nchange(nicks) "nick1 nick2 nick3"
# script goes here:
foreach ntimer [timers] {
if {[string match -nocase "*change:nick*" "[lindex $ntimer 1]"]} {
killtimer [lindex $ntimer 2]
}
}
timer $nchange(mins) [list change:nick $nchange(nicks) $nchange(mins)]
set nchange(length) 0
proc change:nick {nicks mins} {
global nick nchange
incr nchange(length)
if {"$nchange(length)" > "[llength $nicks]"} { set nchange(length) 1 }
set nick "[lindex $nicks [expr {$nchange(length)-1}]]"
timer $mins [list change:nick $nicks $mins]
}
Not tested.
jsilvestre
Voice
Posts: 20 Joined: Sat Mar 05, 2005 6:02 am
Location: Lisbon, Portugal
Post
by jsilvestre » Mon Mar 07, 2005 2:03 pm
This script work very well...Tks one more time
Best Regards
José Eduardo Silvestre
Merlin
Voice
Posts: 2 Joined: Tue Dec 19, 2006 9:53 am
Post
by Merlin » Tue Dec 19, 2006 9:54 am
it has as to place various nicks and passwords to identify nickserv?
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Tue Dec 19, 2006 8:01 pm
Merlin wrote: it has as to place various nicks and passwords to identify nickserv?
No! It simply does as was originally requested; change nicks.
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
sk-4
Halfop
Posts: 51 Joined: Sat Oct 06, 2007 6:37 am
Post
by sk-4 » Fri Feb 29, 2008 12:12 pm
any chance to make the bot to identified each nick with his own pass
# change nick after how many mins ?
set nchange(mins) "10"
# your nicks:
set nchange(nicks) "nick1 nick2 nick3"
set nchange(pass) "pass1" ''pass2' "pass3"
elisca
Halfop
Posts: 65 Joined: Sat Jan 27, 2007 4:23 am
Location: in the middle of nowhere
Post
by elisca » Fri Feb 29, 2008 4:29 pm
Code: Select all
set nicksNpasses {
nick1 pass1
nick2 pass2
nick3 pass3
}
set tenDays [clock scan "10 days"]
bind time - {00 00 *} identify:nicks
proc identify:nicks args {
global nicksNpasses tenDays
if {[unixtime] >= $tenDays} {
foreach {nick pass} $nicksNpasses {
puthelp "NickServ :identify $nick $pass"
}
set tenDays [clock scan "10 days"]
}
}
Note : write by Sir_Fz
sk-4
Halfop
Posts: 51 Joined: Sat Oct 06, 2007 6:37 am
Post
by sk-4 » Fri Feb 29, 2008 11:08 pm
thanks for the reply elesca, i did try out that script ,the problem is it identified all nick and cause nick get akill someime cause its identifiy all the nick.. what i want is the script will chnage bot nick according times and it can be identifed one bye one
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Mar 01, 2008 8:17 am
Try
Code: Select all
# change nick after how many mins ?
set nchange(mins) 10
# your nicks:
set nchange(nicks) {
nick1 pass1
nick2 pass2
nick3 pass3
}
# script goes here:
foreach ntimer [timers] {
if {[string match -nocase "*change:nick*" [lindex $ntimer 1]]} {
killtimer [lindex $ntimer 2]
}
}
timer $nchange(mins) [list change:nick $nchange(nicks) $nchange(mins)]
set nchange(length) 0
proc change:nick {nicks mins} {
global nick nchange
set nchange(length) [expr {$nchange(length)%[llength $nicks]}]
set nick [lindex $nicks $nchange(length)]
set nchange($nick) [lindex $nicks [incr nchange(length)]]
incr nchange(length)
timer $mins [list change:nick $nicks $mins]
}
bind nick - * identify:nick
proc identify:nick {n uhost hand chan nn} {
global nchange
if {[isbotnick $nn] && [info exists nchange($nn)]} {
putserv "NickServ :identify $nn $nchange($nn)"
unset nchange($nn)
}
}
This should identify the nickname once the bot changes its nickname (untested).
minilogo
Voice
Posts: 1 Joined: Sun May 18, 2008 7:03 am
Post
by minilogo » Sun May 18, 2008 7:05 am
how if i want to change the timer from minutes to seconds ?
to let the bots ident nick more faster
Edit: NVM.. found it already
replacing
timers with
utimers and
timer with
utimer