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.

Lastspoke

Old posts that have not been replied to for several years.
Locked
S
Satras
Voice
Posts: 28
Joined: Wed Oct 27, 2004 12:16 pm
Location: Germany

Lastspoke

Post by Satras »

Well, it looks like the post is lost somwhere, os i repost it again :)

I'm looking for a script that does the following:
  • Use SQL Database for !lastspoke trigger *must*
  • People must have spoken something (ignore away msg and so on)
  • Option to ban people wich havent spoke for an specified time
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Bass's last seen tcl script does have a trigger for !lastspoke I beleive. It records each individual records, what that person was last seen doing along with the last time they were found doing that and also the last time they were found saying something, "!lastspoke".

I don't beleive it records, what was said on !lastspoke but only when was it said.

http://www.egghelp.org/cgi-bin/tcl_arch ... load&id=37

You can also maybe find !lastspoke in other seen scripts or modules for eggdrops. Not sure about SQL, since bass's script was written 4 years ago, and still alot of people use it. As far as I saw the database logs, they were in plain text I guess, so they really don't need to be in SQL even if they work. ;)

As for banning people if they haven't spoken for a specified amount of time, something like this can come in handy:

Code: Select all

#Set specified idled time in minutes
set idletime "30"

if {[botisop $chan]} {return 0}
foreach user [chanlist $chan] {
 if {![isbotnick $nick] && ![isop $user $chan] && ([getchanidle $user $chan] >= $idletime)} {
  putserv "MODE $chan +b *!*@[lindex [split $uhost @] 1]"
  putserv "KICK $chan $nick :You have been idle alot, out with you now!"
  }
}
You can make this loop run at regular intervals with a continued timer and would have to integrate this within the seen script.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
S
Satras
Voice
Posts: 28
Joined: Wed Oct 27, 2004 12:16 pm
Location: Germany

Post by Satras »

yeah :)

thanx for the link so far.. thats exactly the script i got the idea from :D
But since i switched over to mysqlseen this feature is missing :(

I like to get the "true" idel time from an SQL database as well.
Cause if someone part and join again his idel time is set to 0,
even if he never said a word :S

But im more interested in a !lastspoke (maybe addon) for my seen script :)
Locked