Hi.
I hope you can help..
I need a script to set how much stuff you should have beofre you can be allowed on my hub [minnimum share]
I am having a bit of trouble with scripts at the moment ya know.
Scripts and stuff---need a few basic ones..
Moderator: Moderators
Min share script? Well i suppose you are talking about Neo-Modus's hub software because most of the others do have min share checking embedded.
Here's simple one:
Just change 5*1024^3 to whatever your minimum share is... i.e. 10*1024^3 for 10 gigabytes, 123*1024^2 for 123 megabytes and so on.
Most of the larger multi-op-scripts (like GeneralBot, YAMB, Ufo-Security...) and Triggerbot which comes with NMDCHub do also have min share limits.
Here's simple one:
Code: Select all
Sub DataArival(curUser.sCurData)
If Left(sCurData,8)="$MyINFO " And Not curUser.bOperator Then
If curUser.iBytesShared<5*1024^3 Then
CurUser.PrivateMessage "Hub-Security","The minimum share for this hub is 5 gigabytes."
frmHub.DoEventsForMe
CurUser.Disconnect
End If
End If
End Sub
Most of the larger multi-op-scripts (like GeneralBot, YAMB, Ufo-Security...) and Triggerbot which comes with NMDCHub do also have min share limits.