Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 21:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Getting Mods Coords and Attacking

Discussion on Getting Mods Coords and Attacking within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2007
Posts: 223
Received Thanks: 30
Getting Mods Coords and Attacking

ok i have been looking into memory based bot

i have found this source here



and i have looked through it and i have started a little project and was wondering if i would be hard for me to be able to locate the monster in-game and then be able to attack them using the memory

i have searched the forums but i havent found anything on it or how to do it



----------------
Now playing:
via
PKDemon is offline  
Thanks
1 User
Old 09/11/2010, 16:27   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
well I'd strongly recommend reading/writing packets inside memory (pre/post encrypt/decrypt routines so that you don't need to worry about that side of things).


You can create a structure of monsters based on incoming spawn monster packets. This will give you their original X/Y

REMOVE them from struct any time they are:

More than 18 or so spaces from current char position (check dist every time you move)

Any time you receive an attack targeting their uid using type 28(?) or w/e the kill monster subtype is

Any time you attack them more than x times (good for fs bots that get stuck trying to hit a target that is dead/too strong)


UPDATE the struct any time you receive a walk/movement packet from one of them (if not you will have wrong coords

For attacking you will need to handle moving effectively to the target (jumping/walking via packets) and then simply send the attack packet using the target uid (or use a spell on them if you want a archer/tao bot)

It's mostly just logical bot scripting you will need to be careful about in this case.
pro4never is offline  
Old 09/11/2010, 17:22   #3
 
elite*gold: 0
Join Date: Apr 2007
Posts: 223
Received Thanks: 30
well i was wanting to try and make it all memory based

and i dont know anything about packets :|
PKDemon is offline  
Old 09/12/2010, 02:42   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Ummm it's still memory based lol. If you want to do anything but read you will need to send packets. It's how server/cllient communicate and do things. Read my sticky, it should help you
pro4never is offline  
Old 09/12/2010, 05:03   #5
 
Ian*'s Avatar
 
elite*gold: 0
Join Date: Nov 2006
Posts: 805
Received Thanks: 464
-----------------------------
Ian* is offline  
Old 09/12/2010, 05:11   #6
 
elite*gold: 0
Join Date: Apr 2007
Posts: 223
Received Thanks: 30
well i dont know C++

i know how to use visual basic 6 and vb.net

and very little C#.net

but i guess i will have to try and figure this out i guess :|
PKDemon is offline  
Old 09/12/2010, 12:27   #7
 
elite*gold: 0
Join Date: Jan 2010
Posts: 121
Received Thanks: 7
shimo diaz is offline  
Old 09/12/2010, 14:20   #8
 
elite*gold: 0
Join Date: Apr 2007
Posts: 223
Received Thanks: 30
Quote:
Originally Posted by shimo diaz View Post
thanks i will look through it and see what i can learn from it
PKDemon is offline  
Old 09/13/2010, 02:24   #9
 
*M*'s Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 950
Received Thanks: 2,410
Heh that hack wasn't really designed to push ASM to the stack, only edit values and such.

It is difficult but possible with VB6 if you want to use only that, tho much easier if you give c++ or something a go through a DLL as you can hook one of the simple functions like chat to activate your code on a command like "/attack" or w/e
*M* is offline  
Old 09/13/2010, 05:42   #10
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by Ian* View Post
You can emulate functions from the client using inline assembly or AT&t if you're using a mingw compiler.

What he needs to find is the old sir hooks 0.01 source code, that will help him a lot.
Sorry. Didn't mean to imply it was impossible... it's just SO much easier to read/write packets instead vs tracking down and modifying a different memory offset for every single function you want to do. Any client action or update REQUIRES a packet to be either sent or received so simply hooking the send/receive function and doing it that way certainly seems like the easiest and most efficient way to me...

As I've said before though. I know virtually nothing about memory reading/modification so I could be wrong, just seems alot simpler.


@ thread starter: Packets are really not that intimidating... it's just a structure to send/receive data

Eg:

Length of packet
Type of packet
Who packet is targeting
Subtype of packet
Value
Seal

You then simply write these values using a super simple function and WHAMMO, bot functionality acquired.

EG

Client.SendPacket(Packets.Jump(ToX, ToY, FromX, FromY, PlayerUID));
pro4never is offline  
Old 09/13/2010, 06:10   #11
 
Ian*'s Avatar
 
elite*gold: 0
Join Date: Nov 2006
Posts: 805
Received Thanks: 464
46 75 63 6b 20 79 6f 75
Ian* is offline  
Old 09/13/2010, 08:04   #12
 
elite*gold: 0
Join Date: Apr 2007
Posts: 223
Received Thanks: 30
well i dont much on C# but i know a good amount in VB.net but i really dont see much stuff in vb.net nor vb6 that deals with like memory based or proxy based bot

but i am willing to learn and if i had like an example of a proxy/memory based bot in vb.net i could learn alot from it and be able to build my own but the only problem i am going to have is that i have not messed with packets so for me to be able to get the packets and then be able to make my own would be the rough part but once i got it down at what i need to do i would be able to do it with out problem
PKDemon is offline  
Old 09/13/2010, 13:37   #13
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Packet logging ftw..


If you're hooking the send/receive functions in the client then you can simply dump incoming/outgoing packets for types that you don't already know. Once you know hwo a few work, they are rather simple to structure...

+ korvak's wiki is a GREAT reference (even if it doesn't have current tq patch structure it gives you values to look for in the packet)

They really... never remove values from packets, they just shift them around and sometimes add new things so having even older packet versions lets you know "ok... this packet contains these 5 main values at least... lets find out at which offsets they are in current tq patch"


Saves a ton of times.

And afaik there is no vb.net examples because no one bothers making them in those languages... there are lots of great C# examples for basic learning and some c++ references but that's about it..
pro4never is offline  
Old 09/13/2010, 14:43   #14
 
gabrola's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
Use any online C# to VB.NET converter
gabrola is offline  
Old 09/14/2010, 09:39   #15
 
elite*gold: 0
Join Date: Feb 2006
Posts: 151
Received Thanks: 58
Try to have a word with IAmHawtness he loves his vb.
trash is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Screen Coords <--> Map Coords using autoit
04/21/2009 - CO2 Programming - 1 Replies
Someone might like this. I provide an example of how to convert screen coords into map coords and visa versa. So that if your using autoit or some other mouse clicking macro tool, then you can get it to accurately get the mouse coordinates to click to move to a map-coordinate location. This method works by using autoit to look at the current player coordinates (_MemoryRead()), and performing some clicks on the screen to take map coordinate samples for mouse clicks in different locations....
Non-PvP Npc Attacking
02/03/2006 - WoW Exploits, Hacks, Tools & Macros - 0 Replies
On normal servers, when you attempt to kill some NPC of the opposite factions, two very bad things can happen: 1. The factional NPCs can attack you, and you will not be able to attack them back due to the "Invalid Target" message. e.g. attacking Astranaar 2. The factional NPCs PvP enable you, and surrounding players of the opposite faction can burn you into the ground. e.g. attacking Orgrimmar The solution lies within the use of a pet. Usually this pertains to either a Hunter or a...
BWL/MC Coords
10/29/2005 - World of Warcraft - 2 Replies
Hat mal jemand andere mc/bwl coords als nur zu Gehennas und Lashlayer? Danke



All times are GMT +1. The time now is 21:55.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.