Redirect script
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Redirect script

Started by [KATZ]ice, 20 February, 2005, 11:51:17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[KATZ]ice

ok, together with some friends i run a network with about 7 hubs, now we want a hub that will redirect our users to the proper hub, kinda like spreading them evenly, so if the first hub is full, the user is redirected to the "redirect hub", then randomly send to an other hub, so like a kind of hub that just random redirects a user after 3 secs.

i don't think i'm the first one with this idea, so maybe there is already a script like that.

What would be nice, but that probally ain't posible, is that the hub it self check once every 15 mins, which hubs are online and running

Thx for all support

Cheers ICE

bastya_elvtars

The state of other hubs is kinda impossible to check thru the scripts... some pinging would do the trick thou  guess. For first step, I recommed HUbJump by Piglija: http://www.plop.nl/ptokaxbots/Piglja/hubjump.lua
Everything could have been anything else and it would have just as much meaning.

[KATZ]ice

rite, that's what i mean, but now could it be done immeadiatly after someone joins...

well i dunno how to script .lua, but on IRC it would be somethin like

on *:join:hub:{
       !jump $nick
}

Assuming !jump randomly selects a hub to redirect the specified user

....

Cheers ICE

bastya_elvtars

gonna write a hubjumper for ya later ok?
Everything could have been anything else and it would have just as much meaning.

Optimus

In robocop there is a option called random redirect. It works on amount of time or users.

It then changes redirect to another hub. You can use commands !addredirect, !delredirect, !showredirect to set all hubs into the list

- Optimus

[KATZ]ice

ok, gonna try that too then, i'll give you results

Cheers ICE

[KATZ]ice

works great, thx

cheers ICE


[KATZ]ice

hmm, after 33 user it stopped, i tried to fix it, but it din't work.

i got 5 adresses in the redirects, but it doesn't redirect, it does on login, but it states redirect too: then nothing, when i fill in a adress in Ptokax, it works again, but only to that adress, so a normal redirect. how do i make the hub chose the hubs i gave it?

Cheers ICE

Optimus

Try to set it on Time instead of users. see what happens
You have Random Redirect ticked in GUI?

[KATZ]ice

#10
is time in minutes or seconds?

yeah, i did that



[15:53] The NetFounder Daan changed the redirect all new connections to: on

[15:53] *** Connected
[15:53] You are being redirected to
[15:53] *** Disconnected

Cheers ICE

??????Hawk??????

hi m8  

you might want to take a look here  


Network hub pinger redirect Manager


??????Hawk??????

[KATZ]ice

sweet man, thx

Cheers ICE

SMF spam blocked by CleanTalk