public override void Init(World owner)
{
var rand = new Random();
int x, y;
do
{
x = rand.Next(0, owner.Map.Width);
y = rand.Next(0, owner.Map.Height);
} while (owner.Map[x, y].Region != TileRegion.Spawn);
Move(x + 0.5f, y + 0.5f);
tiles = new byte[owner.Map.Width, owner.Map.Height];
fames = new FameCounter(this);
SetNewbiePeriod();
if (!psr.CheckAccountInUse(AccountId))
base.Init(owner);
else
psr.Disconnect();
if (psr.ConnectedBuild != psr.clientVer)
{
psr.Disconnect();
psr.SendPacket(new TextBoxPacket
{
Title = "Outdated Client!",
Message =
"You are running an outdated client version.\nGet or play the latest one on the\n<a href='rotmg.amaymon.com'>web client</a>.",
Button1 = "Okay"
});
ApplyConditionEffect(new[]
{
new ConditionEffect
{
Effect = ConditionEffectIndex.Paralyzed,
DurationMS = int.MaxValue
}
});
}
if (psr.Character.Pet >= 0)
GivePet((short)psr.Character.Pet);
try
{
SendAccountList(Locked, LOCKED_LIST_ID);
}
catch
{
}
try
{
SendAccountList(Ignored, IGNORED_LIST_ID);
}
catch
{
}
}