Use Delphi to make network game plug

Source: Internet
Author: User
Tags bool functions

A few years ago I saw others playing online games with the plug-in, as a programmer in my heart is really uncomfortable, want to find out what is going on in the end. Took some to study, small have experience, take out and share with everyone, plug is just a few (depending on the difficulty of making):

1, action-type, the so-called action-type, refers to the use of APIs to send commands to the window or API control mouse, keyboard, etc., so that the characters in the game flow or attack, the earliest "stone" plug-in is this way.

2, the local modification type, this kind of plug-in with the traditional some game modifier is not two, do this plug-in programming only need to have a bit of memory address and master the API can be realized, "Genie" plug-in this is written in this way, it is difficult to find those address code, to find the address in general to the use of other people's tools, Some games also have double code check, is looking up will be more difficult.

3, Trojan-type, the purpose of the plug-in is to help plug the creator to steal the user's password, do this plug-in has a certain degree of difficulty, need to hook or keyboard monitoring technology to do the foundation, can be completed, it is the principle of first cut the user's account or password, and then sent to the designated mailbox

4, the acceleration type, this kind of plug-in can speed up the game. Originally I always thought that the acceleration plug is for a game to write, and later found that I this concept is wrong, the so-called accelerated plug-in is actually to modify the clock frequency to speed up the purpose.

5, sealed package type, this kind of plug is difficult to plug, need to have very strong programming skill can write out. Its principle is to intercept the packet first, then modify, then forward. This plug-in applies to most online games, such as WPE and some of the network game plug-in is written in this way, writing this plug-in needs Apihook technology, Winsock2 technology ...

Following the use of Delphi to realize the network game plug.

===================================================================================

On the last five types of plug-in to do a general summary, we have some of these plug-ins have a certain understanding, now in turn (making difficulty) from shallow to deep to talk about my external production of some of the understanding of it ~ ~ ~ ~

First of all, to talk about the action-type plug-in, this is the first time I write plug-in do the simplest one.

Remember when you were in the "Stone Age", I saw someone hanging a software (plug) character can explore walk (at that time I do not know how to plug the ^_^), so I found this software to study (take to listen to others say this is called plug-in), found that this kind of dongdong actually realize it is not difficult, Aberdeen look at the fact that the person's walk is nothing but the mouse in different places point to go just, look after the impulse to achieve this function, then ran to MSDN to see some data, found that this implementation of these functions, only need a few simple API functions can be done:

1, first of all we need to know the position of the mouse now (in order to restore the position of the mouse now) so we need to use the API function GetCursorPos, its use of the following methods:

BOOL GetCursorPos(
LPPOINT lpPoint // address of structure for cursor position
);

2, we move the mouse position to the person to go to the place, we need to use the Setcursorpos function to move the mouse position, it uses the following methods:

BOOL SetCursorPos(
int X, // horizontal position
int Y // vertical position
);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.