There is a mod like this already out there. I think its called shift walk I'm not sure though i don't think its public. there is a video of someone using it in a shatters like a year ago but that's the only thing i could find on it.
If your looking into make stuff for rotmg i think people are making a push for using melonloader. Beex has a good video on it and its simple to make code for.