Hello,
As the source got out, and theres people making points of some sort, might aswell just force BP to patch this shit as it will create a immense amount of bots for basically free, meaning once it's patched I dont have to worry about botters in my map anymore, win-win right? :D
U'll need
- A brain.
- [Only registered and activated users can see links. Click Here To Register...]
- Download the most recent SeafightMain.swf ([Only registered and activated users can see links. Click Here To Register...])
- And with that a little .bat script;
Code:
cd C:\Program Files (x86)\FFDec\
java -jar ffdec.jar -config autoDeobfuscate=1,parallelSpeedUp=1,autoRenameIdentifiers=1 -export script H:\Misc\SFPROTO\src H:\Misc\SFPROTO\SeafightMain.swf
pause
To clarify this script needs adjustments for where u wanna store the scripts of the swf change "H:\Misc\SFPROTO\" to anything on ur pc.. And place the SeafightMain.swf in the same directory as the .bat script.
Now what this does is decompile, deobfuscate & export the SeafightMain.swf to a directory called "src", once the script is done, and u open that directory u'll see stuff like "package_89" etc.
Now open the BoxyBot solution and go to Seafight => Messages, click on a random .cs file, and u'll see for example in UserInitMessage.cs:
Code:
public class UserInitMessage : Message //package_7.class_15
{
See the commented out part? open the directory of "package_7" then open the "class_15.as" file, scroll down until u see "method_16()", the packet ID is always the return of "method_16()".
Code:
public function method_16() : int
{
return -5067;
}
Now u'll notice some scripts aren't in the right package dirs, e.g. CannonAttackMessage.cs says "package_89.class_783" but it actually is "package_90.class_779", why I hear u think? Because Bigpoint.. It is no rocket science how to find the "new" class that has the desired packet ID, just compare the read functions of that with the one in the .cs file. Usually it just shoves up/down 1 package, and 783 turned into 779, they're always close to one another. Now one with OCD will realise some shorts and doubles may seem out of order, that is very true, ur job is to figure out what vars were shifted, and place them in the right order to have a proper functioning bot..
There is proper parsers that poop out .cs files for every message individual incl. the correct write/read order's, I'll not publish these, as they're not mine, and I respect my fellow comrad @
[Only registered and activated users can see links. Click Here To Register...]
Have fun as this will be dead real soon.
Some chill music while ur trying to wrap ur brain around all this:
[Only registered and activated users can see links. Click Here To Register...]
:bandit: