Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 18:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



DarkOrbit API Class by Requi and Fluttershy

Discussion on DarkOrbit API Class by Requi and Fluttershy within the DarkOrbit forum part of the Browsergames category.

Reply
 
Old 08/05/2013, 15:02   #16
 
palavia's Avatar
 
elite*gold: 200
Join Date: Apr 2012
Posts: 620
Received Thanks: 1,370
Excellent job guys! You two again show us how must to work in this forum and again helped with anything that possible to everyone else. Respect for your skills and efforts
palavia is offline  
Thanks
1 User
Old 08/06/2013, 06:40   #17


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Finally finished the C# Class.

Code:

You can use it on the same way, like in VB
Requi is offline  
Thanks
2 Users
Old 08/06/2013, 18:31   #18
 
elite*gold: 0
Join Date: Feb 2011
Posts: 16
Received Thanks: 3
What is to be the "content"?
sunnyline is offline  
Old 08/06/2013, 21:07   #19
 
»Barney«'s Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 868
Received Thanks: 947
Code:
            if ((static_GetResponse_cookiecoll == null))
            {
                static_GetResponse_cookiecoll = new CookieCollection();
            }
            if ((static_GetResponse_cookiecontainer == null))
            {
                static_GetResponse_cookiecontainer = new CookieContainer();
            }
    public static string EncodeUsername(string string0)
    {
        byte[] stringdata = new UTF8Encoding().GetBytes(string0);
        string temp = "";
        foreach (byte b in stringdata)
        {
            temp += "%" + BitConverter.ToString(new byte[] { b });
        }
        return temp;
    }
}
should be:

Code:
static readonly UTF8Encoding utf = new UTF8Encoding();

public static string EncodeUsername(string string0)
    {
        byte[] stringdata = utf.GetBytes(string0);
        StringBuilder temp = new StringBuilder(stringdata.Length * 2 + 1);
        foreach (var b in stringdata)
            temp.Append("%" + BitConverter.ToString(new [] { b }));
        return temp.ToString();
    }

...

static_GetResponse_cookiecontainer = static_GetResponse_cookiecontainer ?? new CookieContainer();
That's just a little modification for cleaner syntax, you can learn these because you're new to C# my friend
»Barney« is offline  
Thanks
2 Users
Old 08/07/2013, 01:51   #20


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Quote:
Originally Posted by sunnyline View Post
What is to be the "content"?
content is the site content. You need to call the site first.

Example:
Code:
Dim content As String = GetResponse(Link to the site)
GetCredits(content)
MsgBox(sCredits)
Requi is offline  
Thanks
2 Users
Old 08/07/2013, 02:47   #21
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Quote:
Originally Posted by Requi View Post
content is the site content. You need to call the site first.

Example:
Code:
Dim content As String = GetResponse(Link to the site)
GetCredits(content)
MsgBox(sCredits)
Source code of the website.

@chichi011

i think that requi dont coded the c# code. its from a converter but i dont know if this right

@requi:
tomorrow i will give you new funcs to implement in you code

Updates:
-read some more stuff from darkorbit page source
-fixx some bugs
-web navigate func

when my bot need it i will implement that later :
buy from shop
-bit on auction
-galaxy gate clicker (autoit but async mayby )
YatoDev is offline  
Thanks
2 Users
Old 08/07/2013, 03:23   #22


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
I made it with converter, because I was too lazy xDD.

But I needed to fix much things.
Requi is offline  
Thanks
2 Users
Old 08/10/2013, 05:45   #23


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
I'll upload a new version asap, because of the new login.
Requi is offline  
Thanks
1 User
Old 08/10/2013, 09:42   #24
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
For now if anyone needs login code, I've got my code on GitHub.

-jD
»jD« is offline  
Thanks
1 User
Old 08/10/2013, 09:43   #25


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Quote:
Originally Posted by »jD« View Post
For now if anyone needs login code, I've got my code on GitHub.

-jD
I've already seen that

I'll implement it asap.

Thanks for it.
Requi is offline  
Thanks
1 User
Old 08/10/2013, 09:47   #26
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
AutoShit wont let me do that
New login is **** for that (me too) ^^

First i want to get it with trapdoor.dll because i need that myself

@Requi
Nice Thanks / posts balance ^^
YatoDev is offline  
Thanks
1 User
Old 08/10/2013, 09:52   #27
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
WTF is Trapdoor.dll?

-jD
»jD« is offline  
Old 08/10/2013, 09:57   #28


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Quote:
Originally Posted by »FlutterShy™ View Post
@Requi
Nice Thanks / posts balance ^^
Thanks
Quote:
Originally Posted by »jD« View Post
WTF is Trapdoor.dll?

-jD
Trapdoor.dll is a project by a user here.


PS: You thanked it and you don't know it
Requi is offline  
Thanks
1 User
Old 08/10/2013, 09:57   #29
 
XxDarthDexterxX's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 66
Received Thanks: 32
Quote:
Originally Posted by »jD« View Post
WTF is Trapdoor.dll?

-jD


Sorry, I couldn't resist. :3
XxDarthDexterxX is offline  
Thanks
5 Users
Reply




All times are GMT +1. The time now is 18:52.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.