private void SetupRegion() { Map map = Map.TerMur; for (int x = 390; x < 408; x++) { int z = map.GetAverageZ(x, 3360); if (map.FindItem <Blocker>(new Point3D(x, 3360, z)) == null) { Blocker blocker = new Blocker(); blocker.MoveToWorld(new Point3D(x, 3360, z), map); } } bool any = false; foreach (var m in GetEnumeratedMobiles()) { if (m is BexilPunchingBag && !m.Deleted) { any = true; break; } } if (!any) { BexilPunchingBag bex = new BexilPunchingBag(); bex.MoveToWorld(new Point3D(403, 3391, 38), Map.TerMur); } }
public override void Delete() { BexilPunchingBag bex = new BexilPunchingBag(); bex.MoveToWorld(new Point3D(403, 3391, 38), Map.TerMur); base.Delete(); }
private void SetupRegion() { var map = Map.TerMur; for (int x = 390; x < 408; x++) { int z = map.GetAverageZ(x, 3360); if (map.FindItem <Blocker>(new Point3D(x, 3360, z)) == null) { var blocker = new Blocker(); blocker.MoveToWorld(new Point3D(x, 3360, z), map); } } if (!GetEnumeratedMobiles().Any(m => m is BexilPunchingBag && !m.Deleted)) { var bex = new BexilPunchingBag(); bex.MoveToWorld(new Point3D(403, 3391, 38), Map.TerMur); } }