Ok people, I'm attempting a rather crazy project.
I'm building a bot in AutoIt that will do the House Permit Quest while i'm sleeping. This bot navigates its way through other obstacles and players standing/sitting/dancing all over the place. So far I have managed the following:
(Alt+1): Going from the entry point in twin city over to the pharmacist, and buys two tc scrolls.
(Alt+2): Going from the pharmacist over to the conductress and teleporting into the markets.
(Alt+3): Going from the entry point of the markets over to the craftsman. (But not yet trading ore, i'm gonna work on that.)
(Alt+4): Going from the entry point in twin city over to the mine cave. (But not yet entering the mine cave.)
These Alt-shortcuts are just there for the time being so i can debug each sub-part of the quest. At the moment these parts seem to get past people very good, stay on track with the waypoints, and put itself in the correct position to talk to the next NPC.
However there is one teeny tiny little problem.... The BLOODY ASSISTANT WONT LET ME IN W/O ANSWERING HIS RIDDLE!!!.
So... I need to find a way to detect the correct answer to his riddle. I thought about using the _ImageSearch() add-on to autoit, to search a transparent bitmap of all possible correct answers and picking it. But _ImageSeach() does not work with the conquer screen (maybe because it is using a DirectX drawing surface, rather than GDI surface or something like that). And I thought about another tool PixelChecksum(), i could create a checksum for all the correct answers, then scan for the checksum for each possible answer and compare it to correct ones. But i ran into another problem there, the black-box containing the text is semi-transparent, which means a correct answer would have a different checksum in each of the 4 locations. Which means i would have to keep talking to that guy until all possible correct answers have occurred in each of the 4 possible locations to develop the checksums, and thats gonna take forever and a day.
There must be an easier way to auto-{get into that mine cave form outside the thing}.
Does anyone have some ideas or tips on that??, Using Memory reading or some hack possibly?
Attach I have my current source code for anybody interested.
Steps for using it are as follows:
Step 1: Run your conquer client @ full-screen 1024x768 and log in ur character.
Step 2: Run the house permit bot with AutoIt3.
Step 3: Find an empty location with no players, monsters or obsticles, and also away from the corners of the map. Then Press Alt+L, and wait for the bot to finish learning how to transform screen coordinates into map coordinates and visa versa.
Step 4: Use a twin city scroll to have a good starting point.
Step 5: Press Alt+p to strink that ToolTip in the top left, so that the bot can answer NPCs w/o clicking the ToolTip.
Step 6: Try out Alt+1, the bot should buy two tc scrolls.
Step 7: Alt+2, the bot should make its way into the markets.
Step 8: Alt+3, the bot should make its way to the craftsman.
Step 9: Use a tc scroll
Step 10: Alt+4, the bot should make its way to just outside the mine cave... grrr.
Thanks for reading. I really appreciate it :D
I'm building a bot in AutoIt that will do the House Permit Quest while i'm sleeping. This bot navigates its way through other obstacles and players standing/sitting/dancing all over the place. So far I have managed the following:
(Alt+1): Going from the entry point in twin city over to the pharmacist, and buys two tc scrolls.
(Alt+2): Going from the pharmacist over to the conductress and teleporting into the markets.
(Alt+3): Going from the entry point of the markets over to the craftsman. (But not yet trading ore, i'm gonna work on that.)
(Alt+4): Going from the entry point in twin city over to the mine cave. (But not yet entering the mine cave.)
These Alt-shortcuts are just there for the time being so i can debug each sub-part of the quest. At the moment these parts seem to get past people very good, stay on track with the waypoints, and put itself in the correct position to talk to the next NPC.
However there is one teeny tiny little problem.... The BLOODY ASSISTANT WONT LET ME IN W/O ANSWERING HIS RIDDLE!!!.
So... I need to find a way to detect the correct answer to his riddle. I thought about using the _ImageSearch() add-on to autoit, to search a transparent bitmap of all possible correct answers and picking it. But _ImageSeach() does not work with the conquer screen (maybe because it is using a DirectX drawing surface, rather than GDI surface or something like that). And I thought about another tool PixelChecksum(), i could create a checksum for all the correct answers, then scan for the checksum for each possible answer and compare it to correct ones. But i ran into another problem there, the black-box containing the text is semi-transparent, which means a correct answer would have a different checksum in each of the 4 locations. Which means i would have to keep talking to that guy until all possible correct answers have occurred in each of the 4 possible locations to develop the checksums, and thats gonna take forever and a day.
There must be an easier way to auto-{get into that mine cave form outside the thing}.
Does anyone have some ideas or tips on that??, Using Memory reading or some hack possibly?
Attach I have my current source code for anybody interested.
Steps for using it are as follows:
Step 1: Run your conquer client @ full-screen 1024x768 and log in ur character.
Step 2: Run the house permit bot with AutoIt3.
Step 3: Find an empty location with no players, monsters or obsticles, and also away from the corners of the map. Then Press Alt+L, and wait for the bot to finish learning how to transform screen coordinates into map coordinates and visa versa.
Step 4: Use a twin city scroll to have a good starting point.
Step 5: Press Alt+p to strink that ToolTip in the top left, so that the bot can answer NPCs w/o clicking the ToolTip.
Step 6: Try out Alt+1, the bot should buy two tc scrolls.
Step 7: Alt+2, the bot should make its way into the markets.
Step 8: Alt+3, the bot should make its way to the craftsman.
Step 9: Use a tc scroll
Step 10: Alt+4, the bot should make its way to just outside the mine cave... grrr.
Thanks for reading. I really appreciate it :D