Hey Guys,
As im switching my primary hub to run on this kewl software, im looking for an easy way to import all regged users to the Ptokax DB.
Any help would be great as its a shitload of users
**Snooze
post a 10 lines of the reg-file so we can see how it's build.
then maybe we can script a converter.
-
Snooze
i got this script in archive wich i used when i switched to pkotax and as i remember it worked but to be sure make a backup first.
remember it is a script.file not a .lua file
========================================
Sub Main()
Set fso = CreateObject("Scripting.FileSystemObject")
Set file = fso.OpenTextFile("C:\PermBan.dat", 2, True)
If frmHub.lstPermBan.ListCount>0 Then
For i = 0 To frmHub.lstPermBan.ListCount-1
file.writeline(CStr(frmHub.lstPermBan.List(i))+"|NMDCHubExport")
Next
End If
file.Close
Set file = fso.OpenTextFile("C:\RegisteredUsers.dat", 2, True)
If frmHub.lstOps.ListItems.Count>0 Then
For i= 1 To frmHub.lstOps.ListItems.Count
If frmHub.lstOps.ListItems.Item(i).SubItems(2)="True" Then
sOp="1"
Else
sOp="0"
End If
file.writeline(CStr(frmHub.lstOps.ListItems.Item(i))+"|"+CStr(frmHub.lstOps.ListItems.Item(i).SubItems(1))+"|"+sOp)
Next
End If
file.Close
End Sub
========================================
dont ask me how it works; i dont remeber it anymore i just new i had such thing in archive.
Thanks - ill have a look at it :D
Here is a few line of a backup list:
-----------------
User = (0.5Mbit)wizard$$password$$False
User = (A1)Eagle?$$password$$False
User = (adsl)Hukken(swe)$$password$$False
User = (ADSL)Puggles$$password$$False
User = (Lair-Lurker)$$password$$False
User = @_Warrior_@$$password$$False
User = [-?kullz-]$$password$$True
User = [0.5mbit]dr_elak$$password$$False
User = [0.5mbit]worker$$password$$False
User = [10/10]Jeppe$$password$$False
---------------------------------------------------
should read it like this:
User = Username$$Password$$OP True/False
A script that could convert that to Ptokax would be kewl :D
try using above in the NMDC hub first it is made for converting in NMDCHub.
Otherwise I can make a conveter is is not very hard.
the only thing is that every False will be regged user & True OP will be Operator
you will need to adjust some yourself later.
Ive just tested the script and it works perfect (almost) - just note that it will import all users with the Level 0 and that will be read as ptokax as Master. Other than that its working perfectly and just saved me a few hours of regging those 600+ users
Thanks guys :D
Snooze
yw m8
it is always a pleasure to help someone else if possible.