The best way I hink you could do that would be to use a language like Java. I suggest you find a good programmer or write it yourself if possible.
Here is a talented group who might be able to help you. They do write games but they may be able to do what you want:
http://www.jagex.com/corporate/index.html (Click on Products and Services.)
Hope that helps.