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!
jeroen_005
Voice
Posts: 19 Joined: Sun Jun 22, 2008 7:47 am
Post
by jeroen_005 » Fri Aug 29, 2008 6:13 am
Is there an function in eggdrop for getting the following output:
Code: Select all
There are currently X people in #thischannel
jeroen_005
Voice
Posts: 19 Joined: Sun Jun 22, 2008 7:47 am
Post
by jeroen_005 » Fri Aug 29, 2008 12:35 pm
Code: Select all
bind pub - !ucount ucount
proc ucount { nick uhost hand chan text } {
set current_usr_count [llength [chanlist $channel]]
putserv "PRIVMSG $channel :Er zijn momenteel \002$current_usr_count\002 gebruikers aanwezig in \002$channel\002."
}
putlog "Module loaded: SCRIPT: Ucount"
Okey I just tryed something maybe it is very nub or completly incorrect. But this doesn't work :'(
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Fri Aug 29, 2008 12:38 pm
Apart from being abit bloated (my personal opinion), I can't see any reason for that code not doing what you asked for. Do you get any error messages or such when loading or running the script?
NML_375
jeroen_005
Voice
Posts: 19 Joined: Sun Jun 22, 2008 7:47 am
Post
by jeroen_005 » Fri Aug 29, 2008 1:18 pm
nops i don't get any error when loading or running. when i type !ucount in my channel the bot doesn't response
game_over
Voice
Posts: 29 Joined: Thu Apr 26, 2007 7:22 am
Post
by game_over » Sat Aug 30, 2008 6:16 am
Okey I just tryed something maybe it is very nub or completly incorrect. But this doesn't work :'(
Code: Select all
proc ucount { nick uhost hand chan text } {
to
Code: Select all
proc ucount { nick uhost hand channel text } {