Server.Mobiles.BaseCreature.PackSlayer C# (CSharp) Method

PackSlayer() public method

public PackSlayer ( double chance ) : bool
chance double
return bool
        public bool PackSlayer( double chance )
        {
            if ( chance <= Utility.RandomDouble() )
                return false;

            if ( Utility.RandomBool() )
            {
                BaseInstrument instrument = Loot.RandomInstrument();

                if ( instrument != null )
                {
                    instrument.Slayer = SlayerGroup.GetLootSlayerType( GetType() );
                    PackItem( instrument );
                }
            }
            else if ( !Core.AOS )
            {
                BaseWeapon weapon = Loot.RandomWeapon();

                if ( weapon != null )
                {
                    weapon.Slayer = SlayerGroup.GetLootSlayerType( GetType() );
                    PackItem( weapon );
                }
            }

            return true;
        }

Same methods

BaseCreature::PackSlayer ( ) : bool
BaseCreature