public int method_7(int int_0, int int_1, bool bool_0 = false) { Hero hero = this.Connection.Game.Hero; if (!hero.CanMove) { return(0); } Vector2 position = hero.Position; if (this.Connection.Game.Security.method_2(position, int_0, int_1, 0) && bool_0) { this.method_5(); } GClass161 gclass = new GClass161((int)position.X, int_1, int_0, (int)position.Y); if ((gclass.int_3 + int_0) % 3 == 0) { gclass.int_3++; } gclass.int_0 -= (gclass.int_0 + int_1) % 3; this.Connection.SendMessage(gclass); int num = hero.method_4(int_0, int_1, hero.Speed); GInterface5 proxySocket = this.Connection.ProxySocket; if (proxySocket != null) { proxySocket.SendMessage(new GClass266(this.Connection.Game.Hero.Id, int_0, int_1, num)); } return(num); }
private void method_20(GClass147 gclass147_0) { this.bool_2 = false; if (gclass147_0.string_0.StartsWith("!dope")) { this.bool_2 = false; string str = gclass147_0.string_0.Substring(5).Trim(); this.Game.method_9(new GClass269("69|" + str)); return; } GInterface5 ginterface = null; if (gclass147_0.string_0.StartsWith("!!>")) { ginterface = this.Game.Connection; } else if (gclass147_0.string_0.StartsWith("!!<")) { ginterface = this.method_0(); } if (ginterface == null) { this.bool_2 = true; return; } GClass269 ginterface0_ = new GClass269(gclass147_0.string_0.Substring(3)); ginterface.SendMessage(ginterface0_); }