private void a(object A_0, CreateObjectEventArgs A_1) { try { if (A_1.get_New().get_ObjectClass() == 0x1b) { CoordsObject obj2 = A_1.get_New().Coordinates(); dz dz = dz.a(obj2.get_EastWest(), obj2.get_NorthSouth(), 0.0); if (this.e.ContainsKey(A_1.get_New().get_Id()) && (dz.a(this.e[A_1.get_New().get_Id()].l, false) > 0.004167)) { this.e.Remove(A_1.get_New().get_Id()); } if (!this.e.ContainsKey(A_1.get_New().get_Id())) { b5.a a = new b5.a { l = dz, h = A_1.get_New().get_Name() == ("Corpse of " + CoreManager.get_Current().get_CharacterFilter().get_Name()) }; this.e.Add(A_1.get_New().get_Id(), a); PluginCore.cq.u.a(A_1.get_New().get_Id(), b0.a.c); } else { this.e[A_1.get_New().get_Id()].d = DateTimeOffset.Now; this.e[A_1.get_New().get_Id()].a = false; } } } catch (Exception exception) { ad.a(exception); } }
public static sCoord a(WorldObject A_0) { CoordsObject obj2 = A_0.Coordinates(); if (obj2 == null) { return(sCoord.NoWhere); } Vector3Object obj3 = A_0.RawCoordinates(); if (obj3 == null) { return(sCoord.NoWhere); } return(new sCoord { x = obj2.get_EastWest(), y = obj2.get_NorthSouth(), z = obj3.get_Z() / 240.0 }); }