Scripts and stuff---need a few basic ones..

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
Emsley
Posts: 5
Joined: 2003-05-15 15:52

Scripts and stuff---need a few basic ones..

Post by Emsley » 2003-06-04 21:03

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.

Emsley
Posts: 5
Joined: 2003-05-15 15:52

Post by Emsley » 2003-06-04 21:08

i also realise it may sound like i dont know what im talking about and your correct! :D

Gadget
Posts: 62
Joined: 2003-01-11 06:24
Location: Finland
Contact:

Post by Gadget » 2003-06-05 00:10

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:

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
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.

Locked