egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AutoIdentify script for other nicks (DALnet)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
sleepergr
Voice


Joined: 31 Jul 2006
Posts: 4

PostPosted: Thu Jan 18, 2007 5:46 pm    Post subject: AutoIdentify script for other nicks (DALnet) Reply with quote

Hello,
I need a script to identify other nicknames (many) every some days (for example every 10 days)
I want it for DALnet (/msg nickserv is not working. only /msg nickserv@services.dal.net)
I need that to keep alive nicks of friends that are far away for a long time etc..
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Jan 18, 2007 8:45 pm    Post subject: Reply with quote

Nicks on DALnet do not expire for 31 days. There is no need to identify off-line nicks every 10 days. You only need write yourself a simple mIRC alias to identify manually.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
sleepergr
Voice


Joined: 31 Jul 2006
Posts: 4

PostPosted: Fri Jan 19, 2007 3:07 pm    Post subject: Reply with quote

NO. i need it to put it on my eggdrop. i use mirc from many different pcs so that u said is impossible. If i was using irc only at my home yes i know to make an alias. i`m not an idiot
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Jan 19, 2007 5:19 pm    Post subject: Reply with quote

If you don't know how to write an alias it doesn't mean you're an idiot. Try:
Code:
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"]
 }
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
sleepergr
Voice


Joined: 31 Jul 2006
Posts: 4

PostPosted: Sun Jan 21, 2007 2:46 am    Post subject: Reply with quote

yes u right Sir_fz. sry for my previous post. Embarassed

thx for the tcl Sir_Fz. i`ll try it today and if i have any problem i`ll post again Confused
Back to top
View user's profile Send private message
sleepergr
Voice


Joined: 31 Jul 2006
Posts: 4

PostPosted: Sun Jan 21, 2007 3:41 pm    Post subject: Reply with quote

sir_fz i loaded but i dont know if it`s working. what i must change so the script will do the identify every 1 day to see if is working. then i`ll do it again every ten days. Rolling Eyes
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 21, 2007 8:41 pm    Post subject: Reply with quote

instead of "10 days" try "1 day"
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
aqualife
Voice


Joined: 20 Mar 2007
Posts: 15

PostPosted: Fri Feb 01, 2008 1:04 pm    Post subject: Reply with quote

I tried to use the above mentioned code with 1 day change, but its not working any correction will be appreciated.

Thanks.
Back to top
View user's profile Send private message
Amr
Halfop


Joined: 14 Sep 2007
Posts: 94
Location: Egypt

PostPosted: Fri Aug 22, 2008 7:19 pm    Post subject: Reply with quote

I tried this script , I have a big list to identify , when it identify the nicks , it just identify the first 14 nick , and it quit with "Killed (services.dal.net (Do not flood services))]"

Any ideas to fix it ?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Aug 23, 2008 2:06 pm    Post subject: Reply with quote

Amr wrote:
I tried this script , I have a big list to identify , when it identify the nicks , it just identify the first 14 nick , and it quit with "Killed (services.dal.net (Do not flood services))]"

Any ideas to fix it ?

Try
Code:
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} {
  identifyNicks $nicksNpasses
  set tenDays [clock scan "10 days"]
 }
}

proc identifyNicks np {
 set items 0
 foreach {nick pass} $np {
  if {$items < 5} {
   puthelp "NickServ :identify $nick $pass"
   incr items
  } {
   utimer 15 [list identifyNicks [lrange $nicksNpasses [expr {$items*2}] end]]
   break
  }
 }
}

This will identify 5 nicks every 15 seconds (you can reduce the wait time by changing the "15" value of the utimer).

Edit: Fixed brace-balance + $items instead of items.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts


Last edited by Sir_Fz on Sat Aug 23, 2008 3:47 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
Amr
Halfop


Joined: 14 Sep 2007
Posts: 94
Location: Egypt

PostPosted: Sat Aug 23, 2008 2:51 pm    Post subject: Reply with quote

I got error when i run my eggdrop

Code:
[21:49] missing close-brace
    while executing
"proc identifyNicks np {
 set items 0
 foreach {nick pass} $np {
 if {items < 5} {
   puthelp "NickServ :identify $nick $pass"
   incr items
} else {
 ..."
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Aug 23, 2008 3:47 pm    Post subject: Reply with quote

Try the edited code.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Amr
Halfop


Joined: 14 Sep 2007
Posts: 94
Location: Egypt

PostPosted: Fri Oct 17, 2008 9:10 pm    Post subject: Reply with quote

It doesn't work.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Oct 19, 2008 7:51 am    Post subject: Reply with quote

Explain what worked and what didn't.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Amr
Halfop


Joined: 14 Sep 2007
Posts: 94
Location: Egypt

PostPosted: Sun Oct 19, 2008 9:57 am    Post subject: Reply with quote

The edited code didn't work at all.
Code:
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} {
  identifyNicks $nicksNpasses
  set tenDays [clock scan "10 days"]
 }
}

proc identifyNicks np {
 set items 0
 foreach {nick pass} $np {
  if {$items < 5} {
   puthelp "NickServ :identify $nick $pass"
   incr items
  } {
   utimer 15 [list identifyNicks [lrange $nicksNpasses [expr {$items*2}] end]]
   break
  }
 }
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber