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.

Someone have A Netsplit Script for Eggdrop?

Old posts that have not been replied to for several years.
Locked
T
TakaShi^^
Voice
Posts: 36
Joined: Sat Apr 30, 2005 4:20 am
Location: Singapoe

Someone have A Netsplit Script for Eggdrop?

Post by TakaShi^^ »

Hello,i cant find any netspilt script at the egghelp web....someone have it please give me?
Im learning!!!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

What's a netsplit script ? :P

I was wondering, does a split trigger the quit bind and on rejoin does it trigger the join bind ?
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

I guess he wants a counter for the splitted users and name the splitted server.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

He simply wants the mIRC version of server split notices in TCL. In mIRC it's easy (a one liner) to display (in channel) something like "NetSplit Detected: toronto.on.ca.dal.net <--/ /--> gaston.se.eu.dal.net".

mIRC code:

Code: Select all

on ^1:SNOTICE:*Net break*: { if ($chr(46) isin $6 && $chr(46) isin $7) { server.echo NetSplit Detected : $6 <--/ /--> $7 | net.split $6 $7 | halt } | else { server.echo NetSplit Detected : $4- | halt } }
I'm not sure if this can be duplicated in TCL.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

problem in TCL is that it will trigger any single. so you might want to bind to quit, check for quit message to be netsplit, if true then for "splitactive", if false you set it to 1, make a utimer 60 with set to 0, and post the split.
it sounds easiert to bind to splt, but splt doesn't give you the quit messages, so you cant tell what is splitted ^-^.
to enhance the thing you could save each splittet nick, count the list upon a timer and claim it a split if more than x persons has split (try to avoid fake splits).
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

So, I understood that splits trigger the quit bind too. Does the rejoin from split trigger the join bind ?
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

Sir_Fz wrote:So, I understood that splits trigger the quit bind too. Does the rejoin from split trigger the join bind ?
I doubt it doesn't, you could join flood with a netsplit fake quit, if it didnt.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Locked