Some more info about hooking to jump function, when doing so you will get the "cant jump to this coordinate" message when someone stands on the coordinate you're trying to jump too.
So it aint that failsafe either, course you could add a rand() of 1-2 to each coordinate. anyway thought id share.
But eitherway dont think with autoit u can hook to a function, proof me wrong
YES and NO!
I'm pretty sure u've seen autoit do DLL injection in another thread, but i know autoit can not do assembly language
I'm gonna write the DLL in c/c++, and im gonna use an autoit functions to inject this DLL into conquer.exe (Note: that this inject function is not a primary function of autoit, it actually grabs the function from another DLL just like the NomadMemory.au3 grabs ReadProcessMemory from a system DLL). Then im gonna use the TCPSocket functions of autoit to communicate to the DLL that is hosting on 127.0.0.1 on port 27015 (only for one co client atm, i can use different port numbers for each client i want to communicate with).
And source for the DLL i attach below. Its modeled off your DLL injection to pause and resume minesweeper.
If AutoIt wont inject directly, then i'll make it call another program that makes the injection ... Then AutoIt can communicate to it with sockets.
And I can communicate with it using Telnet also for debugging.
like
> telnet 127.0.0.1 27015
ctrl+]
> send jump 123 211 <-- causes the DLL to call ConquerJump(123,211), making the player jump to coordinates (123,211)
Edit: umm... forgot 'extern "C"' just b4 DllMain() function, i forgot i used .cpp file.
; AutoIt code to communicate to the injected DLL. I can get autoit to make a call to Winject.exe with some parameters to inject the DLL, if i can not find the extension for autoit :p
Global $Socket
Some more info about hooking to jump function, when doing so you will get the "cant jump to this coordinate" message when someone stands on the coordinate you're trying to jump too.
So it aint that failsafe either, course you could add a rand() of 1-2 to each coordinate.
well that ain't much fun
maybe hooking this jump will allow for making an multiple house permit bots running at once in AutoIt, or multiple other bots running at once in AutoIt.
I know u don't like autoit (i've been tracking ur posts ), but i find it has a really nice syntax. It has similar syntax to c/c++, and ya don't have to do much setup code or compiling. True autoit has less power, but its easy to work with. Ever seen socket programming done w/ just a TCPConnect() & TCPSend() , w/o this WSAStartup() stuff and everything else u have to do.
AutoIt is a nice noob language, and im a noob
Edit: TCPStartUp() lol, i forgot about that... that must be the thingy that calls WSAStartup() internally.
Yea, its all only script, i wont compile it to .exe, had so many going "someone scan it plz", "someone scan it plz", in my other posts. I think more people are comfortable with just the source, at least for the "Programming" section, the other sections i would release executables. If ya want to test it, u use AutoIt3 to run the script, remember to follow the instructions in the first post.lol
Yeah, I'm not a beginner AutoIt programmer myself and I know what it is xD
When i execute conquer first, then run OllyDBG and attach it to the conquer process, i get a different address for what i think is the jump() function.
I now think its at 004C5F99, can anyone confirm that?
but after it jumps the $Socket connection is lost ... any1 experienced w/ autoit sockets?
thanks again xD
Not me, no experience with autoit sockets
But yes that looks like the jump function,
I did something like this
__asm
{
push x
push y
mov ecx,esi
call jump
}
Inject it and call it.
EDIT: I just read ur other posts on other page, must admit pretty nice thinking there
if its still crashing debug when executing so you see what goes wrong and where
When you're doing this good, you could just make a 100 % memory based bot without needing any mouse clicks at all, which is a good idea since people (e.g. flying archers) could be blocking NPCs and stuff like that.
You could find the "talk to NPC" function and call it, too, like you did with the jump function. Same with selling items, dropping, etc. That takes time, though .
EDIT: I just read ur other posts on other page, must admit pretty nice thinking there
if its still crashing debug when executing so you see what goes wrong and where
Its starting to turn out nice. Not crashing anymore, only problem now is that my autoit sockets wont stay open. But the weird thing is it works fine using telnet from command prompt. And i kinda think i know what it is, I think my c/c++ DLL is using Blocking sockets and autoit is using Asyncronise sockets, and might be y the dam connection doesn't stay past 1 data send. But that single data send works brillantly ... just need more than one
I'll get back to work on it , and soon i'll release the latests source so ur all not left in the dark on this project.
When you're doing this good, you could just make a 100 % memory based bot without needing any mouse clicks at all, which is a good idea since people (e.g. flying archers) could be blocking NPCs and stuff like that.
You could find the "talk to NPC" function and call it, too, like you did with the jump function. Same with selling items, dropping, etc. That takes time, though .
Anyways, good luck with your bot <3.
Yea, thats a great idea .
Wanna help me , those functions are so hard to find
i saw a thread called [CO2]Functions, it had all the memory addresses of really nice functions , but its outdated . However maybe the assembly language instruction patterns are similar and i can search the patterns to find their new locations in memory for the new client.
hok30@
What is the problem? It is one very interesting thread, and it has to do with Programming! It is not request or other **** that people post in the Programming Section.
I think that he does do not hurt anyone. He keeps "in live" a very interesting thread.
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 .
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
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 )
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
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 , 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 , 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.
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.
[help]making house permit and upgrade cert undroppable 06/06/2009 - CO2 Private Server - 2 Replies Hi what I made a little house code nothing much. Might actually make the whole proccess like the vouchers and stuff but what I need now is how to make a house permit and upgrade certificate undroppable and untradable.
Thanks,
Question about house item box 04/30/2008 - Conquer Online 2 - 2 Replies Ok, so we all now know we need to be trade partner to get things out of wifes house. I got a chance at 550m right now if I can by this. I dont know if I can remain with this same partner for 72 hrs (its just an exp thing). Anyway is this a client side thing telling me I cant do it meaning if I revert to an older version stop the AP and login in can I access it or is this codded into the sever? If so somone please help me get by it!
house permit cost 01/02/2008 - Conquer Online 2 - 1 Replies hey guys,
I'm playing this game after a year's break now so i don't know the prices of many things so.....
I wanted to know the average prices of house permits in the venus server.
If anyone knows, please tell me.
thnx
Akshay
house permit again 08/01/2007 - Conquer Online 2 - 6 Replies wondering how much a house permit cocts in the market, any server, i dont really care, and do u think its worth it to go for 62.5 trips?
a house permit 08/01/2007 - Conquer Online 2 - 7 Replies Anyone know how many ores needs to get house permit? I calculate it is 2500 ores.