PtokaX to YnHub accounts converter
 

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

PtokaX to YnHub accounts converter

Started by bastya_elvtars, 10 August, 2005, 01:46:22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bastya_elvtars

I made this for a request, I wish it was rarely used. :-)

-- Pto2Yn by bastya_elvtars
-- requested by [DKN]KEBIS at DCDev

-- Configure the profile conversion here.
-- [profilenumber_ptokax]="profilename_ynhub",
Profiles=
  {
    [0]="Owner", 
    [1]="OP",
    [2]="VIP",
    [3]="Registered",
  }

-- Do not edit below
  
function Main()
  local tToBeSaved={}
  for _,obj in frmHub:GetRegisteredUsers() do
    local msg=
[[    
      ]]
    msg=msg..obj.sNick.."\n\      "..obj.sPassword.."\n"
    local prof=Profiles[obj.iProfile] or "Registered"
    msg=msg.."      "..prof.."\n      "
    local m=
[[pot 
      2005-08-07 17:20:17 
      YnHub GUI 
       
      2005-08-08 17:03:57 
      2005-08-07 17:20:17 
      YnHub GUI 
      2005-08-09 15:31:36 
       
       
       
      
        2005-08-07 17:25:23 
        86557249 
        0 
        0 
      
    ]]
    msg=msg..m
    table.insert(tToBeSaved,msg)
  end
  local f=io.open(frmHub:GetPtokaXLocation().."accounts.xml","w+")
  f:write([[
  
]])
  --for a,b in pairs(tToBeSaved) do
    f:write(table.concat(tToBeSaved),"\n")
  --end
  f:write([[  ]])
  f:close()
end
Everything could have been anything else and it would have just as much meaning.

enigma

how to use this converter ? its not working i got some error
[10:34] Syntax E:\0350lua511dbg\0.3.4.0.dbg\scripts\Pto2Yn.lua:36: unfinished long string near `<eof>'
some1 help please.
Posted on: 12 July 2006, 07:09:04
[10:34] Syntax E:\0350lua511dbg\0.3.4.0.dbg\scripts\Pto2Yn.lua:36: unfinished long string near `<eof>'

HappyTheMan

Quote from: bastya_elvtars on 10 August, 2005, 01:46:22
I made this for a request, I wish it was rarely used. :-)
But the opposite could be handy

bastya_elvtars

Quote from: HappyTheMan on 25 August, 2006, 01:48:07
But the opposite could be handy

I have made the reverse-script as well. :-)
Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk