client checker
 

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

client checker

Started by b_w_johan, 10 March, 2005, 18:50:16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

b_w_johan

im looking for a weird script:
this is what it should do...

    [*] if a client connects to a hub it should check are there more of the same clients then disconnect both. (its not yust dc++ but difference in dc++0.01 - dc++0.670 is good enough).
    [*] there should be a special option that Masters are not getting disconnected
    [*] if disconnected send a message with youre using the same client get another one, then it should give a list of "free" clients (clients wich are not connected) so i have to putt in a list of clients i know and it should check that list (it should be another file like clients.txt or something)
    [*] if there connects a user with no tag at all yust don't let him get checked, by no-tag its ok to stay in =-p
    [*] !showclients it should show all clients from the clients.txt
    [*] !freeclients shows all clients from the list wich are not connected
    [*] !addclient add a client to the clients.txt
    [/list]

    i know its a weird script but is it possible to make this ??
    its for a private hub, and they should make there own client or use special clients not use an existing so thats why not everyone should enter with latest dc++ client.


    greetings Johan
    checkout http://wwhublist.com/index.php for my World Wide HubList project!

    Pothead

    What's to stop them changing the tag and saying they got a different client ?

    b_w_johan

    #2

    --1create bot discription ed
    	
    	
    	
    	
    	
    	
    --
    working
    --2send botname and discription to userlist
    	
    	
    	
    	
    --
    working
    --3.1start timer1
    	
    	
    	
    	
    	
    	
    	
    --
    working
    --3.2start timer2
    	
    	
    	
    	
    	
    	
    	
    --
    making it work
    --4check connected user for TAG
    	
    	
    	
    	
    	
    --
    --
    5check if this TAG is in a file called clients.txt if not add.
    	
    --
    --
    6check if this TAG is already in the userlist.
    	
    	
    	
    --
    --
    7) if its in already send PM
    	
    	
    	
    	
    	
    	
    --
    --
    8) and disconnect.
    	
    	
    	
    	
    	
    	
    	
    --
    --
    9) if timer1 reaches 0 then send prefix
    	
    	
    	
    	
    --
    --
    10) if timer2 reaches 0 send clients.txt
    	
    	
    	
    	
    --
    --
    11) if command !client send clients.txt
    	
    	
    	
    	
    --
    --
    12) if command !prefix send prefix.txt
    	
    	
    	
    	
    --
    --
    13) if command !addtag <tagthen add this tag to the clients.txt
    	
    --
    -- 
    Maded by b_w_johanTTBPsvoo7
    -- Maded for SCRIP']['ERS ELI']['E

    BOTName 
    "[LUA5]Guard"
    BOTDiscription "LUA5 Scripted"
    BOTVersion "A1"
    BOTTag "<++v:"..BOTVersion.." "..BOTName..",M;A.H:0/0/3,S:0>"
    BOTConnection "2fst4u"
    BOTMail "dc.client@gmail.com"
    BOTInfo "$MyINFO $ALL "..BOTName.." "..BOTDiscription.." "..BOTTag.."$ $"..BOTConnection.." "..string.char(1).."$"..BOTMail.."$"

    tag "<[LUA5]Bot>"
    info "$MyINFO $ALL "..BOTName.." "..BOTDiscription.." "..tag.."$ $"..BOTConnection.." "..string.char(1).."$"..BOTMail.."$"

    sec  1000
    min  
    sec*60
    hour 
    min*60
    days 
    hour*24

    clientlist 
    1*days
    --prefix 5*hours



    function Main()
    	
    frmHub:RegBot(BOTName)
    	
    SendToAll("This hub is protected by [LUA5]Guard BOT")
    	
    SetTimer(clientlist)
    	
    StartTimer()
    --
    	
    SetTimers(prefix)
    --
    	
    StartTimer("1")
    end

    function OpConnected(user
    user:SendData(BOTInfo
    end 
    function NewUserConnected(user
    user:SendData(info
    end

    function OnTimer()
    	
    Sendclientlist()
    end

    --function OnTimer("1")
    --
    	
    Sendprefix()
    --
    end

    function Sendclientlist()
    SendToAll("test")
    end

    function Sendprefix()
    SendToAll("\r\nList of User Discription\r\n\r\n[DCD]
    	
    =
    	
    DC Destroyer\r\n[XRZ]
    	
    =
    	
    Nothing Special yust Special Option for our webhost/Lua scripter/JAVA programmer =-p\r\n[LUA]
    	
    =
    	
    Lua Bot writer good in both 4&5\r\n[LUA4]
    	
    =
    	
    Lua4 Bot writer\r\n[LUA5]
    	
    =
    	
    Lua5 Bot writer\r\n[HTM]
    	
    =
    	
    Web(HTML)Scripter\r\n[JAS]
    	
    =
    	
    Web(java)Scripter\r\n[php]
    	
    =
    	
    Web(PHP)Scripter\r\n[JAV]
    	
    =
    	
    JAVA Programmer\r\n[VB]
    	
    =
    	
    Visual Basic Programmer\r\n[CPP]
    	
    =
    	
    C++ Programmer\r\n"
    )
    end 


    im trying to finish the list by myself now ...

    yust copying codes from other scripts ...
    but the timer 2 i can't find a script where i can copy a dual timer ...

    if someone can reply with that dual timer that would be great (if you think thats bad in youre code please correct it, but don't finish the to do list =-p)

    greetings Johan
    checkout http://wwhublist.com/index.php for my World Wide HubList project!

    b_w_johan

    can someone help me with that second timer please ??

    Greetings Johan
    checkout http://wwhublist.com/index.php for my World Wide HubList project!

    SMF spam blocked by CleanTalk