internal void method_6(GClass217 gclass217_0) { this.Hero.Init(gclass217_0); GameManager.GClass77.GDelegate1 heroInit = this.HeroInit; if (heroInit == null) { return; } heroInit(this, this.Hero); }
public void method_3(GClass217 gclass217_0) { ConnectionManager connection = this.Connection; connection.method_12(gclass217_0.byteArray_0.Memory.ToArray()); connection.method_11(); connection.method_15(); connection.IsAuthenticated = true; connection.method_3(); }
public override void Init(GClass217 gclass217_0) { this.Clear(); this.Equipment.Clear(); base.Init(gclass217_0); this.Speed = gclass217_0.int_1; this.Premium = gclass217_0.bool_0; this.Jackpot = gclass217_0.double_0; this.Credits = gclass217_0.Credits; this.Uridium = gclass217_0.Uridium; this.Experience = gclass217_0.Experience; this.Honor = gclass217_0.Honor; this.Game.Map.MapId = gclass217_0.MapId; this.Game.NextMapId = 0; this.Level = gclass217_0.int_15; this.CargoCapacity = gclass217_0.int_7; this.IsInitialized = true; }
public void Run(GClass217 cmd) { ConnectionManager value = ConnectionManager.Instance.Value; if (!value.method_19()) { return; } if (cmd.Reset) { value.Game.Hero.Clear(); value.Game.Map.Clear(); } value.Game.method_6(cmd); value.SendMessage(new GClass158()); if (cmd.Reset) { value.SendMessage(new GClass172(value.Game.Security.method_1(), value.Game.Settings.Use3D ? 1 : 0)); value.SendMessage(new GClass172(value.Game.Security.method_1(), 2)); } }
private void method_17(GClass216 gclass216_0) { byte[] array = new byte[64]; for (int i = 0; i < 64; i++) { array[i] = 55; } BigInteger value = GClass807.smethod_0(gclass216_0.byteArray_0.Memory.ToArray()); BigInteger exponent = GClass807.smethod_0(array); BigInteger value2 = GClass807.smethod_2("4bf022d9780125620d16442953c60a4a97874e263c099e613eed290247240829d74fc0a31d84b686699a55651a1285f7cbcc936153a8c942e3d3a4c864832ad1"); BigInteger modulus = GClass807.smethod_2("999d6c44ffd30467cd7e8bc70e095a8d08fb8fbfeee536fdfb2d43f99005ee3f6b529b4411395a56651422f449eb9ea3f7d48d8c443c06bd1387afe489a7c6c1"); byte[] array2 = BigInteger.ModPow(value2, exponent, modulus).ToByteArray().Take(64).Reverse <byte>().ToArray <byte>(); GClass807 gclass = new GClass807(GClass807.smethod_2("ef09b1bcec67808eeff374b1b51fb155edaac4fcc7a78ed75d5848d6e9eaabee41dec018bb5482d01acea8ce13688bfe33076dde70f06febb80cf3b7327953fb32c08889b815587ded2cdd056d0ec9965b894751848766c27fdee32c707b6fc9"), new BigInteger(65537), GClass807.smethod_2("0b7f1bdd4a41701d6fccf5bfd6463ff1320d148c53cdeb40d06c7e94578bc1d923b1e2eb4d9732f36f56a127c8272f1462f185708af8e56df795bc30c70a7ad52d12b950f35ae6f4103c738fccf485c31be178696560d39f1d9d71baeaed3941")); using (MemoryStream memoryStream = new MemoryStream()) { gclass.method_11(array2, memoryStream, 0U, (uint)array2.Length); GClass217 ginterface0_ = new GClass217(new ByteArray(memoryStream.ToArray())); for (;;) { bool flag; if (PErkava.concurrentDictionary_2.TryGetValue(this.method_1(), out flag)) { if (flag) { break; } } Thread.Sleep(500); this.gclass84_0.SendMessage(new GClass266()); } this.gclass84_0.SendMessage(ginterface0_); } this.bool_0 = true; this.bool_2 = false; byte[] byte_ = BigInteger.ModPow(value, exponent, modulus).ToByteArray().Reverse <byte>().Take(16).ToArray <byte>(); this.gclass84_0.method_4().method_0(byte_); }
public virtual void Init(GClass217 gclass217_0) { this.PosX = gclass217_0.int_10; this.PosY = gclass217_0.int_11; this.IsNpc = false; this.FactionId = gclass217_0.int_12; this.Id = gclass217_0.int_0; this.TypeId = gclass217_0.string_1; this.ClanTag = gclass217_0.string_2; this.Cloaked = gclass217_0.bool_2; this.Hp = gclass217_0.int_4; this.HpMax = gclass217_0.int_5; this.Shield = gclass217_0.int_2; this.ShieldMax = gclass217_0.int_3; this.Name = gclass217_0.string_0; this.Modifiers.Clear(); this.Effects.Clear(); foreach (GClass187 gclass187_ in gclass217_0.vector_0) { this.ApplyModifier(gclass187_); } this.LastStatUpdate = DateTimeOffset.Now; }
private void method_28(GClass217 gclass217_0) { this.bool_1 = false; }