DarkOrbit API Class by Requi and Fluttershy

08/05/2013 15:02 palavia#16
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 :handsdown:
08/06/2013 06:40 Requi#17
Finally finished the C# Class.

Code:

You can use it on the same way, like in VB
08/06/2013 18:31 sunnyline#18
What is to be the "content"?
08/06/2013 21:07 »Barney«#19
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 ;)
08/07/2013 01:51 Requi#20
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)
08/07/2013 02:47 YatoDev#21
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:D

@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 ;) )
08/07/2013 03:23 Requi#22
I made it with converter, because I was too lazy xDD.

But I needed to fix much things.
08/10/2013 05:45 Requi#23
I'll upload a new version asap, because of the new login.
08/10/2013 09:42 »jD«#24
For now if anyone needs login code, I've got my code on GitHub.

-jD
08/10/2013 09:43 Requi#25
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 :p

I'll implement it asap.

Thanks for it.
08/10/2013 09:47 YatoDev#26
AutoShit wont let me do that :p
New login is crap for that (me too) ^^

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

@Requi
Nice Thanks / posts balance ^^
08/10/2013 09:52 »jD«#27
WTF is Trapdoor.dll?

-jD
08/10/2013 09:57 Requi#28
Quote:
Originally Posted by »FlutterShy™ View Post
@Requi
Nice Thanks / posts balance ^^
Thanks :p
Quote:
Originally Posted by »jD« View Post
WTF is Trapdoor.dll?

-jD
Trapdoor.dll is a project by a user here.
[Only registered and activated users can see links. Click Here To Register...]

PS: You thanked it and you don't know it :awesome:
08/10/2013 09:57 XxDarthDexterxX#29
Quote:
Originally Posted by »jD« View Post
WTF is Trapdoor.dll?

-jD
[Only registered and activated users can see links. Click Here To Register...]

Sorry, I couldn't resist. :3