I didn't really understand what the problem was but I think you meant the embedding problem?
I explain this before here, old thread but there is a search function.
You need to include a file called rotmg.UrlLib.js which is shown in the code below:
Code:<script src="https://www.realmofthemadgod.com/js/rotmg.UrlLib.js"></script> <embed src="client.swf" width="800" height="600">