Axiom76

Member
Hello, I would like to make it to where I don't need Arrows, Bolts, a quiver or Lower Ammo Cost, can someone point me to where I don't have to use ammo?
 
In BaseRanged.cs, you'll need to comment out this section:

(roughly around line 195; my version is old)

Code:
        public virtual bool OnFired(Mobile attacker, IDamageable damageable)
        {
            WeaponAbility ability = WeaponAbility.GetCurrentAbility(attacker);
            
            // Respect special moves that use no ammo
            if (ability != null && ability.ConsumeAmmo == false)
            {
                return true;
            }

/*

            if (attacker.Player)
            {
                BaseQuiver quiver = attacker.FindItemOnLayer(Layer.Cloak) as BaseQuiver;
                Container pack = attacker.Backpack;

                int lowerAmmo = AosAttributes.GetValue(attacker, AosAttribute.LowerAmmoCost);
<SNIP>
                }
            }
*/

This will allow all baseranged weapons to fire without ammo as if you were an NPC.
Post automatically merged:

Note that you're commenting out the
Code:
 if (attacker.Player)
section of code, not everything shown.
 

Active Shards

Donations

Total amount
$80.00
Goal
$1,000.00
Back