You won't have a problem with the legal world, unless you make a large amount of money Jagex may try and sue you, I'm not sure the legal cause behind it but I'm pretty sure there is going to be legal action if you make alot of money by breaking in-game rules, then selling all that money which is also breaking in-game rules for profit.
I would stick to small easy stuff.
Your app will 100% be removed as soon as someone posts it on reddit or sends it to Jagex.