I got something working based on this thread: [Help] Vanilla Looting/Interacting with NPCs
The problem is that I can't get the game to interact with an object unless I send a movement while writing those values. Does anyone know of a way to interact with an object without moving?
Edit: I have something, but it's often causing a crash which I have no clue why.