Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 08:49

  • 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   #1


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
DarkOrbit API Class by Requi and Fluttershy

Welcome guys to my thread for the new DarkOrbit API by me and FlutterShy (for the autoit version)

Features:
Code:
GetResponse(ByVal sUrl As String, ByVal sPost As String) //WebRequest POST
GetResponse(ByVal sUrl As String) //WebRequest GET
StringBetween(ByRef content As String, ByRef strStart As String, ByRef strEnd As String, Optional ByRef startPos As Integer = 0) //Get a string between 2 strings
StringRegExp(ByVal content As String, ByVal regstring As String)
Login(ByVal username As String, ByVal password As String, ByVal server As String) //Easy Regular Expressions
GetBootys(ByVal content As String) //Get BootyKey count.
GetJackpot(ByVal content As String) //Get Jackpot count with €/$
GetMainInfos(ByVal content As String) //Get all infos of the user. Call it with Arrays. 0 = Name, 1 = Full servername, 2 = Premium Status (Yes/No), 3 = Level, 4 = Company, 5 = Map Location, 6 = Registered Date
GetUserInfos(ByVal content As String) //Get user infos of the user. Call it wht Arrays. 0 = User ID, 1 = Level, 2 = Honor, 3 = Experience
GetHangarInfos(ByVal content As String) //Get infos from hangar. Call it with Arrays. 0 = Actual HP, 1 = Max HP, 2 = Nano Hull, 3, Max Nano hull, 4 = repair voucher, 5 = jump voucher, 7 = Lasercount, 8 = Ammocount, 9 = rocketammocount, 16 = Flaxcount, 17 = iriscount, 14 = dmg/shd ratio, 52 = petname, 53 = petfuel, 54 = pet lvl, 55 = pet hp, 56 = pet fuel, 60 = pet shield/hp ratio
GetUID(ByVal content As String) //Get UserID of account
GetSID(ByVal content As String) //Get current SID
GetCredits(ByVal content As String) //Get current Credits
GetUri(ByVal content As String) //Get current Uridium
EncodeUsername(ByVal string0 As String) //Encode the username, to login with special chars
Code Example:
Code:
If Login("Requi", "isawesome", "de8") = True Then
Dim src As String = GetResponse("http://" & server + ".darkorbit.bigpoint.com/indexInternal.es?action=internalStart")
GetCredits(src)
GetUri(src)
MsgBox(iCredits)
MsgBox(iUridium)
Else
MsgBox("Username is wrong!!!!!!!!")
End If
The code of the API:

The C# API:

Code:
if (DarkOrbitAPI.Login("Requi", "isawesome", "de8")) == true
{
string src = DarkOrbitAPI.GetResponse("http://" & server + ".darkorbit.bigpoint.com/indexInternal.es?action=internalStart");
DarkOrbitAPI.GetCredits(src);
DarkOrbitAPI.GetUri(src);
MessageBox.Show(iCredits);
MessageBox.Show(iUridium);
}
else
{
MessageBox.Show("Username is wrong!!!!!!!!");
}

Regards,
Requi
Requi is offline  
Thanks
12 Users
Old 08/05/2013, 01:58   #2
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
I want to share a little collection of functions in AutoIt with our community !

You can use this only in AutoIt !

There are more than 11 funcs that you can use in your scripts!
Example :
Code:
_DO_Login("username","password","server shortcut")
This function login into darkorbit mainpage with userinfo and the windows http client !
It will return the source code in html of the darkorbit webpage

In the header of every function are infos like how to use and how to or what theyre returning.

Login should be like this :
Code:
$htmlSource = _DO_Login("username","password","server shortcut")
$SID = _Get_SID($htmlSource)
$SID will be the Session ID so you dont need to make packets for each connect on a Darkorbit page.

Functions like :
Code:
_Trap_Login_Sid($sServer,$iSessionID)
are for those who are allowed to code with the trapdoor.dll so ignore it if you dont have it or you write an application to Ink!

I hope you like that little UDF and use it in your bot but dont forget credits to me or requi!

Here you can copy the Functions or download the .au3 at the bottom of this post


Download :
YatoDev is offline  
Thanks
9 Users
Old 08/05/2013, 03:28   #3
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Even tho its a source code download, you still need a VirusTotal.

-jD
»jD« is offline  
Thanks
5 Users
Old 08/05/2013, 06:50   #4


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
#updated first post

Fixxed Booty Keys now and improved code. You need to declare the server variable for the API yourself.

Just put this in your frm_Load() Sub:
Code:
server = server.Text //But only if your textbox for the server is called server!
The bootykeys are given in a array.
Call it on this way:
Code:
Green Booty Key = BootyArray(0)
Red Booty Key = BootyArray(1)
Blue Booty Key = BootyArray(2)
But don't forget to call the function at first, that the variable gets a value.

Regards,
Requi
Requi is offline  
Thanks
2 Users
Old 08/05/2013, 10:07   #5
 
»Barney«'s Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 868
Received Thanks: 947
Good work on it Requi, haven't looked into the source code, but I love this line:

Quote:
'<C> by FlutterShy (Code in Auto(sh)it)'
Fair enough.
»Barney« is offline  
Thanks
3 Users
Old 08/05/2013, 10:20   #6


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Any suggestions for a feature?
Requi is offline  
Thanks
1 User
Old 08/05/2013, 10:29   #7
 
fuso98's Avatar
 
elite*gold: 428
Join Date: Dec 2011
Posts: 2,722
Received Thanks: 2,035
GG clicker?

EDIT:
in my bot I used this to check iris info
Code:
			$soruce=_INetGetSource("http://"&$server&".darkorbit.bigpoint.com/indexInternal.es?action=internalDock&dosid="&$SID)
            $array=_Get_Hangar_Infos($soruce)
			$dronenumber=$array[16]+$array[17]+$array[18]+$array[19];nflax+niris+napis+nzeus
			$numberarray=0;to check the new drone info in array[]
            $arraydim=0;to add new array
               For $i=1 to $dronenumber
				  $dronesArray[$arraydim]=$array[20+$numberarray]&" DMG "&$array[21+$numberarray]&" PNT "&$array[22+$numberarray]&$array[23+$numberarray]
				  $numberarray+=4
				  $arraydim+=1
			  Next
fuso98 is offline  
Thanks
2 Users
Old 08/05/2013, 10:33   #8


 
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 fuso98 View Post
GG clicker?
What do you exactly want. It's a API. Not something what you use in your project and it works all without doing anything
Requi is offline  
Thanks
1 User
Old 08/05/2013, 10:37   #9
 
fuso98's Avatar
 
elite*gold: 428
Join Date: Dec 2011
Posts: 2,722
Received Thanks: 2,035
I edit my last post, see if it can be helpfull to your api
fuso98 is offline  
Thanks
1 User
Old 08/05/2013, 10:42   #10


 
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 Ðaѓkšidé† View Post
Will someone explain to me:

Im not a coder at all so this to me is like 0.o
Thnx anyways, i guess...
If you want to make a tool with more functions like reading out credits etc. you don't want to code everytime the same ****.

With this API, you have this function everywhere. Just include it to your project and use the function, which I posted at first post

Quote:
Originally Posted by fuso98 View Post
I edit my last post, see if it can be helpfull to your api
We will code the drones later, because we are too lazy for the math
Requi is offline  
Thanks
3 Users
Old 08/05/2013, 10:44   #11
 
Ðaѓkšidé†'s Avatar
 
elite*gold: 6
Join Date: Aug 2012
Posts: 537
Received Thanks: 215
Quote:
Originally Posted by Requi View Post
If you want to make a tool with more functions like reading out credits etc. you don't want to code everytime the same ****.

With this API, you have this function everywhere. Just include it to your project and use the function, which I posted at first post



We will code the drones later, because we are too lazy for the math
Oooh.
Makes sense lol
I need to learn me some AutoIT & C#, holy smokes ...
Thnx
Ðaѓkšidé† is offline  
Thanks
1 User
Old 08/05/2013, 10:47   #12
 
fuso98's Avatar
 
elite*gold: 428
Join Date: Dec 2011
Posts: 2,722
Received Thanks: 2,035
Quote:
Originally Posted by Requi View Post
We will code the drones later, because we are too lazy for the math
Yes i know but the script that i post (AutoIT obviusly) work good and there's no problem with it if you want you can add it. I just want to help you and requi that sometimes helped me with suggestion on coding.
fuso98 is offline  
Thanks
1 User
Old 08/05/2013, 10:55   #13
 
'Heaven.'s Avatar
 
elite*gold: 1
The Black Market: 331/0/0
Join Date: Jun 2012
Posts: 5,819
Received Thanks: 3,200
Quote:
Originally Posted by Requi View Post
Any suggestions for a feature?
You can add the Methods from my multitool source.
'Heaven. is offline  
Thanks
1 User
Old 08/05/2013, 10:58   #14


 
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 'Heaven. View Post
You can add the Methods from my multitool source.
I'll look at it, when I slept.
24hours without sleeping again.
Requi is offline  
Thanks
1 User
Old 08/05/2013, 13:54   #15
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Quote:
Originally Posted by »jD« View Post
Even tho its a source code download, you still need a VirusTotal.

-jD
lol why its added later i dont have internet on my computer

Quote:
Originally Posted by chichi011 View Post
Good work on it Requi, haven't looked into the source code, but I love this line:
Fair enough.
Its because the base was coded from me in autoit to use it with the trapdoor.dll and im coding now in .Net so requi decided to import all

@Requi :
Should we do a whole .dll with all functions ? but nothink that works with client only on webpage!
YatoDev is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 08:49.


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.