Hi!
I'm making a small bot to improve my programming skills and I have a little question. I hope you can help me with this
How the client knows when a mob/player is out of his range and "desappear" from the memory? I made a simple structure to save the mobs/players that the user found (I made that with the Spawn and Walk packets), but it keeps outdated every time that a mob/player goes out of the range of my client
Thx for help! ^^
Perhaps I'm wrong, but I thought the removal distance was anything greater than 18 in the x or y direction. That's what I've experienced, at least - players are removed from the client at 19 and greater without any server packets telling the client to remove the entities.
Exactly. I reach the same conclusion that Spirited Fang after like 4h trying to understand how the client does it. I haven't found any packet that made the despawn funcion. Finally, I did it calculating distance between my coords and the mobs/players coords (over 18 is out of range, true?).
Exactly. I reach the same conclusion that Spirited Fang after like 4h trying to understand how the client does it. I haven't found any packet that made the despawn funcion. Finally, I did it calculating distance between my coords and the mobs/players coords (over 18 is out of range, true?).
I read it, and it's the same conclusion that I reach. But what I didn't understand is the part that you talk about the teleport/disconnect. In this cases, the server will send me a packet with the entity remove?
Now I need to know what happens when I kill a mob... It's time to investigate! ^^
I read it, and it's the same conclusion that I reach. But what I didn't understand is the part that you talk about the teleport/disconnect. In this cases, the server will send me a packet with the entity remove?
Now I need to know what happens when I kill a mob... It's time to investigate! ^^
Right. The entity is removed from the screen using that packet.
i always thought the spawn in distance was 18 and the removal distances was 21.
Reason being, is if a player is 19 coordinates away then jumps, you still receive the packet. the client then updates the offset and removes the player.
i always thought the spawn in distance was 18 and the removal distances was 21.
Reason being, is if a player is 19 coordinates away then jumps, you still receive the packet. the client then updates the offset and removes the player.
Anything more than 18 cells away gets removed, and you only receive jump packets of players that are in the 18 cell range.
At least if you're using the correct (TQ's) distance formula.