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 

Script Request

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Mon Jun 05, 2006 1:16 am    Post subject: Script Request Reply with quote

howdy yall. I know this kind of script exists, just not sure where.

I am looking for a script to do the following.

<user>!user <nick>
<botnick> <nick> is in my list as <hangle-in-bot-userfile> (eg Quest is quest)
<botnick> User hosts are *!ident@*.domain.net
<botnick> <nick> was added by <person> on <added-date>

Any suggestions? Its just reading the userfile and sending the info back to the channel. Suggestions would be great. Thanks
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Wed Jun 07, 2006 10:25 pm    Post subject: Reply with quote

does anyone have any suggestions for this please?
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Wed Jun 07, 2006 10:43 pm    Post subject: Reply with quote

There are tonnes of scripts in the Tcl Archive that would meet your requirements.
_________________
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
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Wed Jun 07, 2006 11:01 pm    Post subject: Reply with quote

I found a script in the TCL section and modded it to do kind of what I want. The script I found was designed the show users for a specific channel and not the whole list. I modded it to list the entire file and not just for a specific channel.

The question I have now is this. Right now its lists EVERYTONE in the user file on the !userlist command. I need to use !userlist <nick> and the code goes off and shows only the userlist info for that specific user. Here is the code so fare, FULLY WORKING which shows everyone in the userlist.

Code:

bind pub o|o !userlist user_list

proc user_list {nick uhost hand chan text} {
if { [userlist |amnovf $chan] == "" } {
foreach user [userlist |amnovf] {
set usersnick [hand2nick $user]
if { $usersnick == "" } {
putquick "PRIVMSG $chan :1Handle: 4$user"
putquick "PRIVMSG $chan :1Nickname: 4$usersnick"
putquick "PRIVMSG $chan :1Host(s): 4[getuser $user HOSTS]"
} else {
putquick "PRIVMSG $chan :1Handle: 4$user"
putquick "PRIVMSG $chan :1Nickname: 4$usersnick"
putquick "PRIVMSG $chan :1Host(s): 4[getuser $user HOSTS]"
}
}
putquick "NOTICE $nick :End of list."
}
}


Hope someone can help me with this please to show just the $arg part eg a specific user.

Cheers guys. Any help would be extremly usful and greatfully received.
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Thu Jun 08, 2006 4:32 pm    Post subject: Reply with quote

anyone? dragnlord? sir fitz? please......

danke
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Fri Jun 09, 2006 3:25 am    Post subject: Reply with quote

Read tcl-commands.doc in your bots ~doc folder.
_________________
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
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
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