AddProfile ??
 

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

AddProfile ??

Started by with, 10 May, 2004, 23:31:42

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

with

Bit  permission
31 - Enter full hub
30 - !drop
29 - kick
28 - !ban, !unban
27 - redirect
26 - !gag, !ungag
25 - !op
24 - !restarthub
23 - !restartscripts
22 - !getbanlist
21 - !getinfo
20 - !cleartempban
19 - no share limit
18 - no slot check
17 - no slot/hub check
16 - no maxhubs check
15 - no chatlimit
14 - !addreguser
13 - !delreguser
12 - reserved
11 - reserved
10 - reserved
09 - reserved
08 - reserved
07 - reserved
06 - reserved
05 - reserved
04 - reserved
03 - reserved
02 - reserved
01 - reserved
00 - reserved

There is few functions for working with profiles:

AddProfile(name, profile_data)
------------------------------
- this function adds new custom profile.
  name - string
  profile_data - number computed as a sum of values of individual bits. Value of a bit is a n-th power of 2.

  Ex.:
  to compute a profile that allows user to 'enter full hub' (bit 31), '!getbanlist' (bit 22) and 'no share limit' (bit 19) the formula is as follows
  profile_data = 2^31 + 2^22 + 2^19
  result in decimal form is: 2152202240
  result on binary  form is: 10000000010010000000000000000000

Returns: -1 if the profile already exists or new profile index on success


RemoveProfile(name)
-------------------
- this function removes profile
  name - string

Returns: 0 if the profile doesn't exists or it's a default profile idx 0-3 or no parameter given
        -1 if the profile is in use
         1 on success


GetProfileIdx(name)
---------------------
- this function can be used to retrieve index of a profile. i.e. for the AddRegUser(nick, pass, profile_index) function
  name - string

Returns: -1 if the profile name doesn't exist or profile index on success


GetProfileName(idx)
-------------------
- this function returns profile name of given index
  idx - number

Returns: profile name as a string or nil if no profile of given index exists


GetProfiles()
-------------
- this function can be used to retrieve a list of all profile names

Returns: numbered zero-based table of strings


GetUsersByProfile(name)
-----------------------
- this function can be used to retrieve a list of all users with given profile
  name - string

Returns: numbered zero-based table of strings

can anyone make a script from that or how it works thx

nErBoS

Hi,

If i understood you want a script to make profiles, right ?? Well is easyer to make new profiles by the software Hub, because for new profiles you have to make several conts to get to the profile wanted.

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

with

thx for your answer

SMF spam blocked by CleanTalk