Dronerepair Programm

05/19/2013 11:53 pgtitan#1
Hello,
I'm trying to script a program which checks the current damage of drones and if needed repairs them.
But sadly i have no clue how to start...
I have inventory.swf but idk how to check current damage and how to repair them.

Well checking damage might be possible over reading html. But repairing them might be a problem.
Anyone an idea?


/Titan
05/19/2013 12:17 xGoldenStar#2
Already exist a chip for that.

And is not that expensive
05/19/2013 12:22 pgtitan#3
well if this chip doesnt have any repairs left your drones will pop. and i saw serveral videos on youtube where players kill botters like hundred times with mines till the drones pop.
This is what i want to prevent ^^

maybe u can help me? :O
05/19/2013 12:26 Requi#4
Quote:
I have inventory.swf but idk how to check current damage and how to repair them.
You must decrypt it. As I remember it's in json. I don't know really what you must decrypt. But I think, it was the swf. Maybe ask MagierDesGrauens, if he can help you ;)
05/19/2013 12:47 pgtitan#5
Lets see what Magier says ^^
05/19/2013 19:39 MagierDesGrauens#6
Ah ok :D
It's base64 encoded. If you're loading the hangar, you get a code of letters and numbers. This is the base64.
You can decode it with this site:
[Only registered and activated users can see links. Click Here To Register...]

If you decoded the code then it's json.
You can see the json structure here:
[Only registered and activated users can see links. Click Here To Register...]


1. Copy this code:
Code:
e2ludmVudG9yeTogW3tkcm9uZV9jb3VudDogNSxsYXNlcl9jb3VudDogMTd9XSxhbW1vX3gxOiA1MH0=
2. Go to this site: [Only registered and activated users can see links. Click Here To Register...]
3. Decode the code and you should get this text:
Code:
{inventory: [{drone_count: 5,laser_count: 17}],ammo_x1: 50}
4. Now you can see this in a treeview here: [Only registered and activated users can see links. Click Here To Register...]

5. Finish. You finally decoded my test-inventory (the real one seems a bit different xD, this is just an example) code :D
05/19/2013 19:48 pgtitan#7
and how can i read the base64 codes?
i logged in with my program and what to do now?
the login is already working ;)

and how do i send the repair command? lol... haha i have really no clue :D
05/19/2013 19:57 Requi#8
Sniffing packets maybe?

Code:
{"isError":0,"data":{"update":{"droneRepair":{"level":5,"repair":0}},"ret":1,"money":{"uridium":"6.811","credits":"258.609.117"}}}
I got this. Already bas64 decoded. At sniffing. Don't know if post or get. But you must get first the inventory self ;)
05/19/2013 20:00 DateiRWE#9
write a addon for PBDO ;) that would be great !
05/19/2013 20:10 pgtitan#10
is this a socket connection on a different port? lol...
or just loaded with port 80? xml or php file?
05/19/2013 20:23 Requi#11
Just sniff the packet ._.

Or add me on Skype
05/19/2013 21:14 pgtitan#12
ah i got it :D
now i just need to script :)

thanks guys
05/19/2013 23:17 MagierDesGrauens#13
Quote:
Originally Posted by DateiRWE View Post
write a addon for PBDO ;) that would be great !
PBDO is down, isn't it? so why writing an addon for it? xD

Quote:
Originally Posted by pgtitan View Post
ah i got it :D
now i just need to script :)

thanks guys
no problem ;)
05/20/2013 10:50 pgtitan#14
Yeah PBDO is down. Anyway PBDO reapirs your drones :) THere exists a taskscript.
05/20/2013 12:21 joepie1215#15
wait what why not use a repair cpu ?? -_-