Author Topic: IMporting NMDCH users to Ptokax  (Read 3138 times)

0 Members and 1 Guest are viewing this topic.

Offline Snooze

  • Scripter
  • Viking
  • ******
  • Posts: 606
  • Karma: +54/-3
    • DiXBoT Website
IMporting NMDCH users to Ptokax
« on: 12 February, 2004, 14:53:08 »
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

PtokaX forum

IMporting NMDCH users to Ptokax
« on: 12 February, 2004, 14:53:08 »

Offline NightLitch

  • Emperor
  • **
  • Posts: 1 455
  • Karma: +16/-0
(No subject)
« Reply #1 on: 12 February, 2004, 14:57:02 »
post a 10 lines of the reg-file so we can see how it's build.

then maybe we can script a converter.
//NL

Offline VidFamne

  • Triple Ace
  • **
  • Posts: 173
  • Karma: +2/-0
(No subject)
« Reply #2 on: 12 February, 2004, 16:16:43 »
-
« Last Edit: 12 February, 2004, 16:18:46 by VidFamne »

Offline [NL]trucker

  • Lord
  • ***
  • Posts: 470
  • Karma: +2/-0
(No subject)
« Reply #3 on: 12 February, 2004, 16:33:01 »
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.
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


Offline Snooze

  • Scripter
  • Viking
  • ******
  • Posts: 606
  • Karma: +54/-3
    • DiXBoT Website
(No subject)
« Reply #4 on: 12 February, 2004, 21:46:43 »
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

Offline NightLitch

  • Emperor
  • **
  • Posts: 1 455
  • Karma: +16/-0
(No subject)
« Reply #5 on: 12 February, 2004, 22:51:26 »
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.
//NL

Offline Snooze

  • Scripter
  • Viking
  • ******
  • Posts: 606
  • Karma: +54/-3
    • DiXBoT Website
(No subject)
« Reply #6 on: 12 February, 2004, 23:09:04 »
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

Offline [NL]trucker

  • Lord
  • ***
  • Posts: 470
  • Karma: +2/-0
(No subject)
« Reply #7 on: 13 February, 2004, 08:42:47 »
Snooze


yw m8

it is always a pleasure to help someone else if possible.
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


PtokaX forum

(No subject)
« Reply #7 on: 13 February, 2004, 08:42:47 »