public override bool OnBeforeDeath() { Server.Multis.BaseBoat.SinkShip(boat, this); Point3D wreck = new Point3D((this.X + 3), (this.Y + 3), 0); SunkenShip ShipWreck = Server.Multis.BaseBoat.CreateSunkenShip(this, this.LastKiller); ShipWreck.DropItem(new HarpoonRope(Utility.RandomMinMax(10, 30))); return(base.OnBeforeDeath()); }
public override bool OnBeforeDeath() { if (CaptainCanDie()) { Server.Multis.BaseBoat.SinkShip(ship, this); Point3D wreck = new Point3D((this.X + 3), (this.Y + 3), 0); SunkenShip ShipWreck = Server.Multis.BaseBoat.CreateSunkenShip(this, this.LastKiller); ShipWreck.MoveToWorld(wreck, Map); } else { Say(healme); this.Hits = this.HitsMax; this.FixedParticles(0x376A, 9, 32, 5030, EffectLayer.Waist); this.PlaySound(0x202); return(false); } return(base.OnBeforeDeath()); }