Ok, guys, i decided to release the code and executables now. I have AutoIt3 using the conquer jump() now for more accuracy. Sorry about the triple posting, i just get excited sometimes :p .
This code is not 100% working atm, but it lets others know how to call conquer functions with AutoIt.
I have also included a DllInject.au3 file, which is a extended function for autoit allow u to inject Dlls into processes. Unfortunately it is currently not working for me, so u guys will have to use Winject.exe instead before u run the script.
One good thing now is there is no longer a need to use Ctrl+L for learning mode.
Note also: I found the questions at the mine caves to be dynamically allocated, it works on my computer but not my brothers. And for some strange reason, the addresses for the map coordinates have now changed also (need to search it too in cheat engine). What a pain :p
U'll need to update these values using CheatEngine if they are invalid for your machine. (these will be needed to be done until one of us makes them static :p)
Global Const $REPLY_ADDRESS[4] = [0x01D3DFBC, 0x01D3E0F4,0x01D3E22C,0x01D3E364]
In order they are the addresses for the replies TOP-LEFT (0), TOP-RIGHT (1), BOTTOM-LEFT (2), BOTTOM-RIGHT (3)
And update these too, for your client. I dont know y they suddenly change on me.
Global Const $X_COORDINATE_ADDRESS = 0x005DAD20 ;0x005DAE34
Global Const $Y_COORDINATE_ADDRESS = 0x005DAD24 ;0x005DAE38
And the following are the steps to running it.
Step 1: Run conquer, log in ur char. (ur noob only, incase of botjail / click jail)
Step 2: Run Winject.exe and inject CO2Claw.dll into ur running process of conquer.
Step 3: Use cheatEngine or similar program to update the addresses for ur player coordinates and for ur mine cave question text-replies (using text search). Sorry bout this step :p
Step 4: Update those new addresses in house-permit-quest.au3
Step 5: Run house-permit-quest.au3 with ur autoit.
Step 6: Try out Alt+1 (it should buy 2 tc scrolls), Alt+2 should go from pharmacist to market, Alt+3 mk to craftsman (trades for wood), Alt+5 craftsman to carpenter (trades for rosewood), Use a tc scroll and press Alt+4, that should send ya to mine caves (coords inside cave are now inaccurate :p, u made need to click to help it once inside).
The new one seems like more of a pain than the old one atm... But no more Alt+L for its learning of mouse to map coordinates :D, plus it jumps faster and is faster at following the waypoints.
I need to find those functions for talking to NPCs and for moving items from inventory to wh, its gonna take forever to find those functions.
Edit: for your X-Coordinate try address 0x005DAE2C, and for your Y-Coordinate try address 0x005DAE30. Idk y they suddenly moved and seemed to become fixed again.
Update: found a function for clicking the guard w/o using the mouse.
StrRes.ini:
100029=Hold the Ctrl key and left click to attack the guard.
100029 is 186BD in hexidecimal
search "push 186BD"
004C7693 |. 68 BD860100 PUSH 186BD
scroll to top of function
Starts at 004C746F
now seach CALL 004C746F
Code:
00485FB3 . 6A 01 PUSH 1
00485FB5 . 6A 01 PUSH 1
00485FB7 > 57 PUSH EDI
00485FB8 . 8BCE MOV ECX,ESI
00485FBA . E8 B0140400 CALL Conquer.004C746F
When i add a break point here, and click on the Guard, the code stops at the breakpoint. But looks like for attack guard, not for talk to NPC. I'll keep looking.
Edit: Its for attack monster too, not just guard it seems. that EDI might be the ID-number of the thing its told to attack. Not really good useful for this bot, but for anothe bot maybe, one used for melee hunting or something.