Simple... And settings per profile?
 

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

Simple... And settings per profile?

Started by Dr-Pepper, 13 September, 2005, 13:41:05

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr-Pepper

Hello there,

As a simple minded hub-owner.. I failed to find a SIMPLE settings per profile script, some stuff like robocop does. Just the min-share, min-slots etc etc etc.. No further options, no messages on login (or a function to disable). Could someone tell me where to find 'my dreamscript'?
Cheers...  Dr-Pepper

Madman

Don't think there is one...

I dont have anything to do atm in lua...
so let's make a custom version for you... =)
What more then
MinShare and MinSlots did u have in mind?
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Corayzon

Im not gonna promote myself, but yea *points down* (yes im aware of the contradicting of the above statement on myself, so no need to point it out)

Only a week or so to the complete beta is released for final testing, as the final version isnt going to be release until next PtokaX version (Need some requests to be done to complete  the synchronizing issues that mean u have to do some shit that can be confusing and frustrating)

Editable profiles (Uses ptokax's profiles), edit profile settings for each profile, welcome messages for each profile, advanced news, just to name a few features\patchs

* Please note the .net framework is needed to run cSlave

Feedback of all kinds is welcome

Cêñoßy†ê

Mayby something like this??

--Simple check script
--recuested by Dr-Pepper
--Made by C??o?y??

tSettings = {}
KB = 1024 MB = KB*KB GB = MB*KB TB = GB*KB

tSettings.Bot = "~Bot~"      -- botname here

tSettings.MiShare = {
	[0] = {0,GB},        -- Master's minimum share size (MB/GB/TB)
	[1] = {1,GB},        -- Operator's minimum share size (MB/GB/TB)
	[2] = {1,GB},        -- Vip's minimum share size (MB/GB/TB)
	[3] = {1,GB},        -- Reg's minimum share size (MB/GB/TB)
	[-1] = {1,GB},       -- User's minimum share size (MB/GB/TB)
}

tSettings.MaShare = {
	[0] = {0,TB},        -- Master's maximum share size (MB/GB/TB)
	[1] = {9,TB},        -- Operator's maximum share size (MB/GB/TB)
	[2] = {9,TB},        -- Vip's maximum share size (MB/GB/TB)
	[3] = {9,TB},        -- Reg's maximum share size (MB/GB/TB)
	[-1] = {9,TB},       -- User's maximum share size (MB/GB/TB)
}

tSettings.Slots = {
	[0] = {0,9},         -- Master's min/max slots
	[1] = {1,9},         -- Operator's min/max slots
	[2] = {1,9},         -- Vip's min/max slots
	[3] = {1,9},         -- Reg's min/max slots
	[-1] = {1,9},        -- User's min/max slots
}

tSettings.Hubs = {
	[0] = 99,            -- Master's max hubs
	[1] = 99,            -- Operator's max hubs
	[2] = 99,            -- Vip's max hubs
	[3] = 99,            -- Reg's max hubs
	[-1] = 99,           -- User's max hubs
}



Main = function()
	frmHub:RegBot(tSettings.Bot)         --registers bot to userlist
	frmHub:SetHubBotName(tSettings.Bot)  --sets botname to ptokax
end

MyINFOArrival = function(user, data)
		if user.iShareSize < tSettings.MiShare[user.iProfile][1]*tSettings.MiShare[user.iProfile][2] then
		user:Redirect(frmHub:GetRedirectAddress(),"<"..tSettings.Bot.."> Too small sharesize for profile!!")
		elseif user.iShareSize > tSettings.MaShare[user.iProfile][1]*tSettings.MaShare[user.iProfile][2] then
		user:Redirect(frmHub:GetRedirectAddress(),"<"..tSettings.Bot.."> Too big sharesize for profile!!")
end
		if user.iSlots < tSettings.Slots[user.iProfile][1] then
		user:Redirect(frmHub:GetRedirectAddress(),"<"..tSettings.Bot.."> Minimum slots for your profile is "..tSettings.Slots[user.iProfile][1].." slots!!!")
		elseif user.iSlots > tSettings.Slots[user.iProfile][2] then
		user:Redirect(frmHub:GetRedirectAddress(),"<"..tSettings.Bot.."> Maximum slots for your profile is "..tSettings.Slots[user.iProfile][2].." slots!!!")
end
		if user.iHubs > tSettings.Hubs[user.iProfile] then
		user:Redirect(frmHub:GetRedirectAddress(),"<"..tSettings.Bot.."> Maximum hubs for your profile is "..tSettings.Hubs[user.iProfile].." hubs!!!")
end
end
Powered By Leviathan™ 2nd Generation v. 1.9

blackwings

QuoteOriginally posted by Dr-Pepper
Hello there,

As a simple minded hub-owner.. I failed to find a SIMPLE settings per profile script, some stuff like robocop does. Just the min-share, min-slots etc etc etc.. No further options, no messages on login (or a function to disable). Could someone tell me where to find 'my dreamscript'?
can you tell more about what function you want except minversio and minshare check?


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

QuoteOriginally posted by blackwings
can you tell more about what function you want except minversio and minshare check?


PMSL  m8  dont hold back  just go for the  PLUG   :P  :P


Here ya go ..  


TRY  BASIC 5.6 by blackwings  <---------- click here to Download

Dr-Pepper

Min Share, Min Slots, Max share, Max slots.. The Pepper starts to dance :)

It's now 4:33 over here, let's dream about my hub with my dreamscript :D.. Thanks folks, you'll made THE Pepper a happy man :). Getting the tests started tomorrow!
Cheers...  Dr-Pepper

Dr-Pepper

Tested... Running PERFECT

Simple, small, smart :)

Thanks!
Cheers...  Dr-Pepper

SMF spam blocked by CleanTalk