Small update today.
I havent had as much time as i'd like to work on this the past few days, been very busy with work and after 8-10 hours of programming for work i often dont feel the desire to go home and do any programming just for fun.
Whats added:
- Added a few additional packets, you can make it shoot now if you want to
- Added an xml parser that ive used in the past and its extremely lightweight/simple to use
- Moved account info + desired server to separate XML file, so you can change account info without having to recompile now
- Added curl to the project, it now downloads the server list + your account info
The settings.xml file is part of the project, it gets copied to to output directory with the exe, as the exe needs to read it when it runs. The layout is:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Config>
<Server>SERVER_NAME</Server>
<GUID>YOUR_EMAIL</GUID>
<Password>YOUR_PASSWORD</Password>
</Config>
The server name has to be the full name (case sensitive). The settings.xml file in the project has "USWest" in the <Server> field right now if you dont feel like changing it.
To get this to compile you will need to download and get curl set up. I went with curl because i figured it would allow this to be cross-compiled easier then if i used a window's specific function (i was going to use URLDownloadToFile), and because curl has a url encoding function ("+" to "%2b" and whatnot).
Setting up curl on windows
I'll briefly go over how i set up curl for use with visual stuidos incase anyone else needs to:
1) download source .zip from
https://curl.hax*****/download.html (direct link to file i downloaded)
2) Extract it wherever you want, open the extracted filed and locate the folder "winbuild".
3) Open text file "BUILD.WINDOWS.txt"
4) follow directions in text file! But incase you are too lazy, keep following my directions
5) Open Visual Studio's Developer Command Prompt
6) Navigate to the "winbuild" folder from the Developer cmd
7) type "nmake /f Makefile.vc mode=dll"
8) after it finishes, go to the parent directory of "winbuild" and find the folder "builds"
9) There were 3 folders inside this for me, but the folder you want should be named something like "libcurl-vc-x86-release-dll-ipv6-sspi-winssl"
10) copy that entire folder somewhere that it wont get deleted. I just copied it to "C:\libcurl-vc-x86-release-dll-ipv6-sspi-winssl"
11) Open the project properties and add "C:\libcurl-vc-x86-release-dll-ipv6-sspi-winssl\include" to projects additional include directories, add "C:\libcurl-vc-x86-release-dll-ipv6-sspi-winssl\lib" to additional lib directories, and add "libcurl.lib" to additional dependencies
12) You're done
Heres a quick video i created showing the bot reply to being whispered "shoot". I didnt even know that you can shoot 1 single projectile as a wizard, though it was always 2. Does it just automatically send 2 when you shoot as a wizard normally? lol. (im aware you can see the names in this video, both these accounts i created specifically for this video so i really dont care if they get reported)
(i didnt include this in the source attached, but all the code needed to do it is).
No exe include in download again, but here are the scans:
https://virusscan.jotti.org/en-US/fi...job/8o4ad43nub
https://www.virustotal.com/en/file/0...is/1486508792/
Edit: oh and as far as goals, im still hoping to have the rest of the packet classes created and added to this by the end of the week/weekend. I also want to add the objects.xml file to the project and parse it so i can use it for whatever is needed. I really really really need to create a "client" class soon so i dont keep creating a bunch of global functions and make the code all messy!! Thats about it for what i hope to have done soon.