Coder Social home page Coder Social logo

Comments (1)

playingoDEERUX avatar playingoDEERUX commented on September 28, 2024

Packet Type 0 is used for movement request, it is also the same packet type being broadcasted to all clients in a world to let other players know about your movement after validation is passed.

What you wanna do is send that packet multiple times with not too big X/Y difference to prevent autoban depending on how far the path is.

Then you should be able to securely break the tile (by "secure", I mean most likely in a way to not get autobanned and/or getting your break/place request rejected) with the Packet Type 3 packet.

So to move, you should set the Packet Type to 0, X/Y always a bit closer to the tile you wanna reach (via a loop you ensure you reached close enough to that tile by constantly making the X/Y pos getting more closer and resending the packet)
And you want to keep XSpeed and YSpeed in mind, if they are 0 or very low and it does not keep up with the amount of X/Y you have changed, it might seem suspicious to the server and you may get banned.

And at least, maybe keep track of the "ExtDataMask" value because the server uses its bits (32 bit int) to determine what type of 'movement state' your character is currently having active, it could be currently being hit by lava, walking left/right (I think they just used a single bit set for that whether its off or on at a certain position, don't remember them all by my head) or whether the character is having the jump animation/sprite active etc...

That's basically it.

from growbrewproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.