[Java] Neo terms acceptor

Discussion in 'Code Snippets and Tutorials' started by Kaden, Sep 21, 2010.

  1. Kaden

    Kaden Level I

    Joined:
    Aug 29, 2010
    Messages:
    80
    Likes Received:
    9
    another basic program, no GUI as it doesn't need it.

    source is included as always.

    What this program does is loads a list of accounts in the format of:

    username[space]password[space]Proxy:[space]IP:pORT

    eg:

    user121 pass1434 Proxy: 127.0.0.1:80

    it changes proxy, logs in, then accepts the terms for the account, clears cookies, then repeats for all the accounts in the list where it can.

    very basic. It may have issues if there is additional required information. All the accounts that i tried, bar 1, were made with the country set to AU as it doesn't require you to enter a state (I made my own account maker).

    i only had issues with an account made with heya's acc gen, but i think i fixed the issue =)



    hope this helps.
     

    Attached Files:

    Kangaroos, tharoux and Rundownandy like this.
  2. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    Nice release !
    I'm happy to see an active programmer around here.

    Where's that big release that I'm waiting for ? I so want to give you that Programmer award !
     
  3. Kaden

    Kaden Level I

    Joined:
    Aug 29, 2010
    Messages:
    80
    Likes Received:
    9
    Haha, I am planning on changing languages, so it may take a little longer =)

    Threads in Java really annoy me, and you need them so your GUI remains responsive (there is a main thread, where your main GUI stuff should be handled, and then you are meant to make worker threads for everything else)... but i keep getting errors with updating GUI components from within threads, because you are only meant to update them on the Main thread...

    its just a pain to explain, and even harder to do properly.. So I am going to have a go at C++/C# or something similar.. see how all that goes for me.

    May even do something in Visual Basic, because its so simple.

    I was planning on making the Chef-quest doer you suggested to me. I have made the base code which will do 1 quest every time you run it, with buying the items, tells you the reward, etc. that works 100%. But I want my program to be as aesthetically pleasing as the Quality of the code =)
     
  4. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    I understand your pain of Java ;)
    I've done so many different language that I can't count them on my 2 hands anymore XD
    Personnaly, I'm sticking with VB for those kind of programs simply cause it's uber-easy.

    The only real advantage of Java here is that MAC users can use your program.
     
  5. Kaden

    Kaden Level I

    Joined:
    Aug 29, 2010
    Messages:
    80
    Likes Received:
    9
    that was pretty much the only thing keeping me in Java at the moment... the multi-Platform xD (As well as being pretty proficient at it xD).

    VB will just make everything easier.... I just have to get used to the crappy conventions xD

    at the end of the day, i want Quality... not Quantity.... that part is just a bonus xD

    I was thinking of making my own wrapper for VB as well, because i don't really like the look of the ones released..... But that will be at a very later stage xD

    my computer is being an ass and won't install any of the files for C++/C#/VB though.... so we might have to see how that goes =.= *thinks of a reformat AGAIN*...

    and I definitely agree with not being able to count how many languages i have tried xD
     
    singapore likes this.
  6. Zer0

    Zer0 Level IV

    Joined:
    Mar 2, 2008
    Messages:
    3,037
    Likes Received:
    180
    Location:
    Home sweet home
    Java isn't bad
    Threads are pretty easy to use. And you should be using them if you're doing anything with GUI regardless of the language of choice.
     
  7. Kaden

    Kaden Level I

    Joined:
    Aug 29, 2010
    Messages:
    80
    Likes Received:
    9
    I never said java was bad, it IS my first preference xD

    And i did get threads working, its just the updating of the GUI within the main thread that keeps getting to me xD
    I just wanted to get into another language, thats the other reason that i am making the switch =P.
     
  8. lazypando

    lazypando Level IV

    Joined:
    Nov 16, 2006
    Messages:
    3,326
    Likes Received:
    94
    do you think you could append to the program a way to create new pets

    on accounts without pets, after you accept the new terms, it forces you to create a pet D:
     
  9. Kaden

    Kaden Level I

    Joined:
    Aug 29, 2010
    Messages:
    80
    Likes Received:
    9
    I released a pet creator =)
    it should be somewhere around......

    if not, you could always go to my uploaded downloads and aprove them :D

    [EDIT]
    code-snippets-tutorials-f15/petcreator-t34991.html
    theres the link =)
    make sure you use the acceptor first though =)
     
  10. Kaito

    Kaito Level IV

    Joined:
    Jun 29, 2007
    Messages:
    2,692
    Likes Received:
    15
    must you have a proxy? :/ or can you accept these terms without a proxy in the format?
     
  11. Kaden

    Kaden Level I

    Joined:
    Aug 29, 2010
    Messages:
    80
    Likes Received:
    9
    well I made it for multiple accounts, so i made it so you HAVE to have a proxy for each account....

    else you will probably get them all frozen if they all log in from the same IP =P

    if you REALLY want me to, i can modify it for you so you can choose to not have a proxy and just have a username:password format or something.
     
  12. Kaito

    Kaito Level IV

    Joined:
    Jun 29, 2007
    Messages:
    2,692
    Likes Received:
    15
    hmmm we're supposed to put it in the users.txt file right? the program cant seem to detect my list in it x.x
     
  13. Kaden

    Kaden Level I

    Joined:
    Aug 29, 2010
    Messages:
    80
    Likes Received:
    9
    got it in the right format?

    I just realised the format i chose was sLAUGHTERS SS list way xD...

    tell me the format you would like me to use like:

    [username][space][password]..etc...

    and i will make you a custom one..
    Or i can just make it simple with a username[space]password for you =)
     
  14. Kaito

    Kaito Level IV

    Joined:
    Jun 29, 2007
    Messages:
    2,692
    Likes Received:
    15
    user password should be fine :D

    anyway, yeah i think i did x.x

    the format is user pass Proxy: xxx:xxx... right? :/
     
  15. Kaden

    Kaden Level I

    Joined:
    Aug 29, 2010
    Messages:
    80
    Likes Received:
    9
    Ight try this one =)


    thats just username[space]password

    i didn't have any more accounts to test that with, so if there are any errors let me know =)
     

    Attached Files:

  16. Kaito

    Kaito Level IV

    Joined:
    Jun 29, 2007
    Messages:
    2,692
    Likes Received:
    15
    where would we place the txt file of username[space]password?
     
  17. Kaden

    Kaden Level I

    Joined:
    Aug 29, 2010
    Messages:
    80
    Likes Received:
    9
    sorry, just realised i deleted the users.txt file D:

    just make a new text file named "users.txt" in the config folder....

    should then work for you I hope :D
     
  18. Kaito

    Kaito Level IV

    Joined:
    Jun 29, 2007
    Messages:
    2,692
    Likes Received:
    15
    hmmm yay got it to detect my accounts.

    just wondering, if a pet is needed to be created, does it do it? :D
     
  19. Kaden

    Kaden Level I

    Joined:
    Aug 29, 2010
    Messages:
    80
    Likes Received:
    9
    no it doesn't, but you should be able to use my petCreator to make the pets...

    it still accepts the terms doesn't it? o_O
    must you create the pet as well to fully accept the terms?.. or does it accept the terms, then annoy you for the pet?
     
  20. arcrutus

    arcrutus Level I

    Joined:
    Jun 28, 2010
    Messages:
    140
    Likes Received:
    2

    I'm pretty sure Visual Studio 10 is cross platform. And if it's not fully compatible you can use REAL Studio for Mac to convert it.