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.

Script that "rewards" time on channel

Old posts that have not been replied to for several years.
Locked
u
unleashed

Script that "rewards" time on channel

Post by unleashed »

I'm searching for a script that rewards people that stay on my channel for a long time. I've found the Idle RPG Bot, but I don't have the opportunity to host it.

So does anybody know a Eggdrop Script that counts the overall time of users on my channel and give them some sort of reward? Or even a script that only shows the amount of time of the top5 or so people? I've only found stat scripts that put out a webpage (I don't need that because my shellprovider doesn't support it) or only count the time of the users actual visit.

Thx, unleashed
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Try searching these scripts. I personally have used a few which have most of the requirements you have said. I have alot of idler purpose scripts which I have download over the years, so there not hard to find.

[1] Download MC_8's On 'Idle tcl'. (MC_8's website)
It has alot of features you can customize it.

[2] Download 'Idle King' another tcl showing the top channel idlers.

Just goto www.egghelp.org/tcl.htm or www.tclscript.com and search with the keyword 'idle'.

If you want more scripts ftp.eggheads.org, go into their tcl archive folder on the ftp, you will have scripts sorted from 1996 onwards upto today, with their corresponding eggdrop versions. (normally the old ones work on the new eggies too!)

*********
You can make one yourself to.
One way: Just make the bot do a foreach loop of [chanlist $chan] by a continuous timer say every 1 min or you can bind that to join, part or etc. Then get the users idle times by 'getchanidle <nickname> <channel>', compare them with a defined value if they are greater than your defined value, go ahead and reward them, supponsingly a voice maybe or something like that. :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
u
unleashed

Post by unleashed »

I would like to do it myself, but I don't know how :). If there is any simple script that is close to my wanted one, I would adapt it myself, but I haven't found anything. I searched both sites you mentioned, but ther's nothing that seems to suit my requirements. The Idle King script as I see only counts the time the users actually idle, but I want to count the time they stay in my chan.

MC's on idle script seems to be a bit overloaded for my purposes, but I will give it a try. Thx for that, maybe anbody has antoher suggestion?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Something like this should definately work.
Give it a go and let me know! :mrgreen:

Code: Select all

#This will voice the users whose idle time is greater than the defined value.

#Usage: !reward
#This will be triggered on the channel which you type '!reward' on only if the bot has ops on that channel.

### SCRIPT ###
#Set the idle time in seconds for which the user will be rewarded.
set rewardtime "50000"

bind pub n !reward reward:idlers

proc reward:idlers {nick uhost hand chan text} {
 global botnick rewardtime
  if {([botisop $chan])} {
   foreach user [chanlist $chan] {
    if {([expr [getchanidle $user $chan]] >= [expr $rewardtime]) && (![isvoice $user $chan])} {
     pushmode $chan +v $user
     }
   }; return 0
  }
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked