Step 1. Learn programming language
K-Relay - C#
RealmBot - Java
Step 2. Code and compile a plugin in something called IDE (Integrated Development Environment) such as Visual Studio for C# and Eclipse for Java.
If you are not willing to learn you wont be able to do much until someone doesn't compile and release their code like Tod does.