PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: Dr-Pepper on 13 September, 2005, 13:41:05

Title: Simple... And settings per profile?
Post by: Dr-Pepper on 13 September, 2005, 13:41:05
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'?
Title:
Post by: Madman on 13 September, 2005, 14:59:39
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?
Title:
Post by: Corayzon on 13 September, 2005, 15:52:33
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
Title:
Post by: Cêñoßy†ê on 13 September, 2005, 17:05:14
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
Title:
Post by: blackwings on 14 September, 2005, 01:06:21
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?
Title:
Post by: ??????Hawk?????? on 14 September, 2005, 01:26:56
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 (http://lua.uknnet.com/attachment.php?attachmentid=165)  <---------- click here to Download
Title:
Post by: Dr-Pepper on 14 September, 2005, 04:36:15
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!
Title:
Post by: Dr-Pepper on 15 September, 2005, 14:13:55
Tested... Running PERFECT

Simple, small, smart :)

Thanks!