You can check if there are other threads on this already.
https://www.mpgh.net/forum/showthread...=1#post9230021
Code:
<script src="https://www.realmofthemadgod.com/js/rotmg.UrlLib.js"></script>
<embed src="client.swf" width="800" height="600">
And for the rank not die thing you could check line 1231 in wServer/realm/etntities/player/player.cs
Code:
if (Client.Account.Rank > 2)
{
HP = psr.Character.MaxHitPoints;
psr.Disconnect();
return;
}
This means that if you are rank 3+ and die you will just disconnect.