PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: morphie on 29 September, 2004, 01:47:13

Title: !setredirect according to share, slots, hubs and hub full
Post by: morphie on 29 September, 2004, 01:47:13
Hello,

Ive been searching for a script like this:

!setredirect
which will set a redirect address for each according to:

share: the minimum share not met
slots: the minimum slots not met
hubs: in too many hubs
full: when hub is full

so that it can redirect automatically to different hubs depending on those 4 things.

Thanks a bunch :)
Title:
Post by: nErBoS on 29 September, 2004, 03:14:57
Hi,

Hope it helps...

--## REDIRECT MANAGER BOT
--## Requested by morphie
--## Made by nErBoS
--## Command:
--## !setredirect

Best regards, nErBoS
Title:
Post by: morphie on 29 September, 2004, 15:27:12
Thanks alot!
That's perfect! I had a few problems i first but got it figured out, it works perfectly as I wanted it. Thanks a bunch :)
Title:
Post by: morphie on 29 September, 2004, 21:03:16
Ok I spoke too soon, I now get a Syntax error when new users join the hub:

Syntax error: bad argument #1 to `find' (string expected, got nil)
stack traceback:
   1:  method `find' [C]
   2:  function `NewUserConnected' at line 107 [file `C:\Program Files\Ptokax\scripts\Redirect.lua']
Title:
Post by: nErBoS on 29 September, 2004, 22:38:45
Hi,

Have you added anything to the script ?? Because the line of the error is not from newuserconnected function. If yes post it here please. Another question, do you permit NMDC or DC with no tags in your HUB ??

Best regards, nErBoS
Title:
Post by: morphie on 03 October, 2004, 00:11:42
Nope i havent added anything and yes i permit NMDC and clients with no tags. Does that explain it?
Title:
Post by: nErBoS on 03 October, 2004, 00:56:01
Hi,

I need the script that you are using.

Best regards, nErBoS