Find call Getting Started write to find call a vacant brother

Source: Internet
Author: User

Find call Getting Started write to find call a vacant brother
I am a rookie, learn to plug soon, in making a simple show red and blue figure information, through the front button simulation hanging machine after the small meet for a period of time (Khan, about 2 hours or so) I began to enter the nature of the rookie to learn call team.
Encountered many problems in the middle. Also go to a lot of places to post for help, but ... No one wants or says no master has time to guide
Adhere to, give up, do not forget, depressed, finally touched a little clue today, here issued to hope that the vast number of rookie brothers have a little help.
I do not want to directly post how to find call, but a step-by-step, summed up in the road I met the problem, in the common learning, the wrong place must have, I hope everyone more correct, less saliva, thank you.
OK, no more nonsense, let's go.
1: First of all, why learn to call
I am here because the first time to make a simple hanging only the foreground simulation button, the game window to minimize or switch the current window will ... Oh, we all know, I met a lot of the same rookie card here all over the place for help.
So start looking for the background button method, looking for information around the forum found 2 possible ways to achieve.
(1) with Call (2) Winio, this is still learning, the specific situation is not clear
I chose call because the weapon in the hands of the Masters is very mysterious to me.
2: If you want to learn call, always want to understand what is call it, here I extract some of the former boss's post content, I hope you can see after the call has a general understanding
(1) Call is a program invocation. Familiar with VB friends, should be familiar with calling the function call Add (A, B) method.
There is a lot of call in the writing of any program. How to find the right call is more difficult.
The above sentence is actually quite simple, but it is very helpful to me.
Here I say my own understanding.
Why call. Game program has a lot of functions, the game inside the program will be transferred to say, of course, the function has its own function name. For example, the function of meditation in the game, we can imagine that there is a function. The name is "meditation", and as soon as the function is called, the character performs the action. This is a simple parameterless function, so I'll take it as an example.
Now what we need to do is to use our own small hanging to call this "meditation" function, let the characters perform the action. Of course, no one will directly tell you what the function name is, and so on these specific information (suddenly think of Ms someone told me as if I do not know how to use, hehe. Rookie one). So we need to find the memory address of this function when the game is running, as if it were also called the portal (we are rookie, no matter how much), the memory address of this function is called call. The address of call or call is actually the memory address of the function.
I do not know how to say that everyone understand, personal understanding, there may be a big problem, I hope the master correct.
We'll go on, now that we know what call can do, we'll start looking.
3: How to Find Call
Many experts encounter such problems are very depressed, because the scope of the problem is too large, do not know how to speak. There are too many problems involved.
This is probably why we have no one to ignore when we ask for help. Sweat one, I chased a lot of people to ask this question
Find call in fact, the minimum requirements can understand the assembly code, but this request for me a little rookie is too high. All the previous compilations were returned to the teacher after leaving the school. Of course we don't see any compilations here, just start looking. But also want to know something in advance, such as what is assembly, memory address and so on. OD This tool is very good, but also basic master use, these should not be difficult for everyone.
Okay, let's start looking for call.
Here we use the latest 99来 95 or to find.
First use OD to open the game, landing.

Then the BP send down (this I did not know at that time how to set the breakpoint, to thank the Devil Tianzun boss told me this little white, hehe)

In fact, it is here to enter the BP send and then enter, set a breakpoint, we'd better see the use of OD tutorial bar, do not like me.
View breakpoints the shortcut keys in OD are alt+b, because we need to use them later, so here's the point.
Wait a little while and the game will be interrupted.

Look here
We don't care about it, press F9 to continue until the game runs.
Here's how to do it.
Because the game and the server always keep communication, so the interruption here and we do not, let it go, amen.
After the game is in operation, we switch to the game by pressing 7 (meditation), and then OD will break down immediately. This time we're going to start working, call, haha.
First press CTRL+F9 key combination 3 times, this quite many tutorials have written, I have not figured out why is 3 times instead of 5 times 8 times.
Here I explain, just said that the game and the server is continuously connected, of course, there will be information sent back and forth, these are not our concern.
So press ctrl+f9 key to skip. As for why is 3 times, here {the words are shielded} The tutorial many say is the experience what, later I had a long time a bit to understand, but did not know is correct.
Everybody, look here.

There are write module-ws2_32 or something, system messages. So we don't go for it, we keep pressing it once more, until it becomes a ctrl+f9.

See the difference. Oh. But the direct press 3 times also can not be wrong, after all predecessors ' experience is much richer than ours. Here, let's see.
After 3 executions We press the 4th time and then press Alt+k to save the first line.

Continue to press CTRL+F9, then alt+k, also save

Usually do 3 times on the network (many tutorials on the internet have to say that the general correct call in the 4-7 layer between, calculate our, the first 3 times directly skip, and then here to take 3 results, uh. 6 layer, also almost pull), and then Alt+b break the breakpoint first, press F9 let the game normal operation, if you are slower in the middle of the game will be disconnected, it does not matter, then use OD open once. I send 2 graphs here.
Here is the address of call, but we have saved 3, do not know which, it does not matter, we probably analyzed
In front of the said meditation is a parameterless function, look at the first picture, there are 2 parameters, arg1 and arg2, this is probably not
The second one, uh, without parameters, we record it, 005a8260, and the third is treated, and now we may have recorded 2-3 call addresses, OK.
Let's test it out.
Here is the test call code, easy language OH

The number above is the value of 005a8260 into 10.
Login to the game, open your little hanging, point meditation button, and see if it's really meditating anymore. Ha ha. Is there a sense of accomplishment?
(If the call is not correct the game may be abnormal exit, we login the game for another try on the good)
Well, don't worry, we'll strike the hot one, call the normal attack.
Okay, OD add-on game, breakpoints, and then the game is broken down, execution to normal operation, and then press 1 (ordinary attack, here should pay attention to the game you stand to blame near a point of place, select the monster and then press, or you look for may be walking call or choose Strange OH). Broken down, we no longer record multiple values, directly press 5 times CTRL+F9 (ask me why.) Because the call we just meditated was found on the 5th floor, and this is the same as pulling, it doesn't take time to go through every record, then alt+k, look at the picture

Just take it and try it, 5a7c20, haha. Remember to select a strange point attack oh.
Here we don't pay attention to assembly code not to see {words are blocked} data successfully found the meditation and attack call, hehe. To perfect your little hanging bar, HOHO, do not forget to send me use OH
Also stressed that here we have found call, but if you want to continue to study, the relevant content or to learn, speculation is not a long-term solution OH
Finally say, I write these things very tired, but for many and I like the rookie can a little harvest or write out, please read and remember to top me, also count on my support. My QQ30562834, can add me all to study together, hehe

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.