|
Imagine how it works in the game - you attack an enemy.
Now there are multiple ways of achieving your goal, you can simulate clicking on the mob, so the character will attack, or you can write the "attack" packet to the network buffer. The server checks if your distance to the target is more or less reasonable, so you might want to play around with position packets of your character as well.
|