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.

Uptime Contest Script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
F
Fraud
Op
Posts: 101
Joined: Mon May 19, 2008 7:57 am

Uptime Contest Script

Post by Fraud »

Hi. I´m looking for a script that sets everybody in my Chan on +v, after starting the script with a trigger like !uptime...
If anybody leaves the Chan and rejoins after the script was startet, he shall not get voice again.
Maybe an output in the chan how many ppl are voice
I just want to make a little uptime contest.

Hopefully somebody can help me.
Thanks a lot

Jonlar
N
Nimos
Halfop
Posts: 80
Joined: Sun Apr 20, 2008 9:58 am

Post by Nimos »

ok I try something :D

Code: Select all

bind pub n !uptime uptime:start


proc uptime:start {nick host hand chan rest} {
set chanmembers [chanlist $chan]
foreach x $chanmembers {pushmode $chan +v $x}
puthelp "PRIVMSG $chan :Uptime contest started! The last one with +v wins! :D"
}

putlog "Uptime Contest loaded"
Last edited by Nimos on Sat May 31, 2008 6:59 am, edited 1 time in total.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

[mode] is an invalid Eggdrop Tcl command, use [pushmode] instead.
N
Nimos
Halfop
Posts: 80
Joined: Sun Apr 20, 2008 9:58 am

Post by Nimos »

I meant "puthelp mode..." but I edited to pushmode now
Post Reply