benefits for my registered users
 

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

benefits for my registered users

Started by imby, 31 July, 2004, 20:28:17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

imby

hi, i use ptokax 0330 15.25 and robocop 8b. first of all, are these two things possible? for registered users:

1)extra hub space, so if for example if i set the max users at 300, reg users could have an X amount of extra space for themselves. say set it to be full at 320 users for registered users?

2)hubs one ops in does not count as a hub ratio slot. so if they opped in 2 and were normal user/regged in 2, they would only require two slots.


secondly can you direct me to these scripts if they exist? searching on here has proved unsuccessful. if they don't any chance of someone making either or both? i know it's a big ask, but if you don't ask, you don't get! i'm no where near the level required for making them. just started learning.

plop

1) enable the option under the profile for reg users 2 enter the hub when it's full.

2) thats something for optimus 2 decide.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

imby

hi i meant as stand alone, didnt see 1) in the settings, gonna have a look.

imby

with regards to 1), you can't set any numerical amount, which is no good if you're on an average dsl line.

imby

no one wants to do 1) as a stand alone? think it would be pretty useful, maybe not just for me.

nErBoS

Hi,

Are using the Max Users of ptokax or Robocop ???

Best regards, nErBoS
--## nErBoS Spot ##--

imby


BoJlk

#7
My Suggestion is to use the RoboCop settings only
and to disable the HUB's checks.  8)

And there's no settings that allow some REG
users to have their amount of connections  :(

It's a seetings that say: allow users to connect to a full HUB.
and you can put a check box to the REG users.

Maybe there's a Scripts that counts the REG users
when the HUB is full
and stop's any REG users connection after 20 users...
(or any other Number u'll set)

But then it might be a problem with the RoBoCop

nErBoS

#8
Hi,

Use this script, but in your ptokax Max Users put the double of your Max Users. The Max Users will be controled by this script...

--## Extra Full Bot
--## Requested by imby 
--## Lets's enter a certain amount of regged users when HUB is full
--## Made by nErboS

sBot = "EF-BOT"

iAmountExtra = 0

--## Configuration ##--

iMaxUsers = 200 -- Number o Max Users that HUB can handle
iExtraRoom = 20 -- Number of regged users that can enter HUB when full

--## END ##--

function Main()
	if (frmHub:GetUsersCount() > iMaxUsers) then
		iAmountExtra = frmHub:GetUsersCount() - iMaxUsers
	end
end

function NewUserConnected(user)
	if (frmHub:GetUsersCount() >= iMaxUsers) then
		if (user.iProfile == -1) then
			user:SendData(sBot, "The HUB is full.")
			user:SendData(sBot, "Disconnected....")
			user:Disconnect()
		elseif (iAmountExtra >= iExtraRoom) then
			user:SendData(sBot, "The HUB is full.")
			user:SendData(sBot, "Disconnected....")
			user:Disconnect()
		else
			iAmountExtra = iAmountExtra + 1
		end
	end
end

function UserDisconnected(user)
	if (user.iProfile ~= -1 and iAmountExtra ~= 0) then
		iAmountExtra = iAmountExtra - 1
	end
end

Best regards, nErBoS
--## nErBoS Spot ##--

imby

thanks BoJlk, already know all that. nerbos supplied exactly what i needed.

i'm surprised no one else wanted this before, i used to be in a reg hub which used the same system, although my memory isnt great. think it was y hub.

thanks a lot nerbos for your time! really appreciated, will test it out later. why put double max users in ptokax? so it doesn't interfere at all in any way?

nErBoS

Hi,

I said the double but can be less, like you said is only to not bug the script :D

Best regards, nErBoS
--## nErBoS Spot ##--

BoJlk

Sorry [imby], there was no intention to underestimate you...

But this is a good script... [Nerbos]

imby

ok well thanks again. one last question, out of interest, how long does it take you to make such scripts?

imby

np, BoJlk, it's true i'm not the best at scripting. it's clear to see to all :)

nErBoS

Hi,

Imby you have to understand the we are here to help not to do yours request. We make scripts when it's possible, sometimes i don't have paicence or time to make some scripts so i let to someone else to take the request, it could take sometime, but i think you can't find so good support as this forum can give you.

Best regards, nErBoS
--## nErBoS Spot ##--

imby

i understand that, but that doesn't really relate to what i asked. i was interested to know, how long it takes for someone who is good at scripting, to make such scripts. i wasn't complaining or anything, just was interested.

imby

great, works good, one small thing, it shows the MOTD then

[15:38:13] The HUB is full.
[15:38:13] *** Connection reset by server

any way to make it like normal hubs do, with the disconnection before the MOTD, and only showing disconnected, not connection reset by server message? or is that not possible?

nErBoS

Hi,

About how fast a script can be made it depends on the request, but normal for me maybe 5-10 minutes. About the MOTD i can't change that because user hasn't sent all his info to make the change. About the disconnect part i have added something in the script above.

Best regards, nErBoS
--## nErBoS Spot ##--

imby

"[01:22:53] The HUB is full.
[01:22:53] Disconnected....
[01:22:53] *** Connection reset by server"

i'd like the status message to show disconnected.

i take it that's a limitation in the protocol, and nothing can be done about that? nevermind, aint a big deal, thanks very much!

nErBoS

Hi,

Bad interpetation of your DC about disconnect, like you said no big deal  :))

Best regards, nErBoS
--## nErBoS Spot ##--

SMF spam blocked by CleanTalk