I created this so I wouldn't lose my Gold Musketeer's bolt. To increase chance to not shoot it. It removes ammo after each range attack.
It removes ammo when idle, and after unlimited shot. It also now once u engages the mob. If
velocity shot is not active. It will use it for you.
<spellcast>
<config
Normalset="AmmoRemove"
HideErrors="false"
ShowGearSwaps="true"
Debug="false"
ShowSpellInfo="false"
/>
<sets>
<!-- RANGER MAIN GROUP -->
<group name="Rng" default="yes">
<set name="AmmoRemove">
<ammo>remove</ammo>
</set>
<!-- NORMAL FIGHTING SET -->
<set name="Fighting">
<ammo>Holy bolt</ammo>
<head>Wyvern Helm</head>
<neck>Merman's gorget</neck>
<lear>Drone Earring</lear>
<rear>Drone Earring</rear>
<body>Kirin's Osode</body>
<hands>Crimson finger gauntlets</hands>
<lring>Behemoth ring</lring>
<rring>Rajas Ring</rring>
<back>Amemet Mantle +1</back>
<waist>Royal knight's belt +1</waist>
<legs>Scout's Braccae</legs>
<feet>War Boots</feet>
</set>
<!-- BARRAGE SET -->
<set name="Barrage" baseset="Fighting">
<head>Optical Hat</head>
<hands>Seiryu's kote</hands>
<lear>Genin Earring</lear>
<ammo>Darksteel bolt</ammo>
</set>
<!-- WS SET -->
<set name="WSGear">
<ammo>Darksteel bolt</ammo>
<hands>Seiryu's kote</hands>
<feet>Creek M Clomps</feet>
<lring>Flame ring</lring>
</set>
<!-- NINJA CAST/HASTE SET -->
<set name="NINCast">
<hands>Dusk Gloves</hands>
<head>Walahra Turban</head>
<lear>Loquacious earring</lear>
<waist>Swift Belt</waist>
<legs>Byakko's haidate</legs>
<feet>Dusk ledelsens</feet>
</set>
</group>
</sets>
<!-- SPELLCAST RULES SECTION -->
<rules>
<!-- RANGED ATTACK RULE -->
<if spell="ranged">
<action type="precastdelay" delay="1" />
<action type="equip" when="precast" set="fighting" />
<action type="aftercastdelay" delay="3" />
<action type="equip" when="aftercast" set="Ammoremove" />
<if buffactive="barrage">
<action type="precastdelay" delay="1" />
<action type="equip" when="precast" set="barrage" />
</action>
</if>
</if>
<!-- NINJA CASTING RULE -->
<if spell="Utsusemi*|Monomi*|Tonko*">
<action type="equip" when="precast" set="NinCast" />
<action type="equip" when="aftercast">
<feet>War boots</feet>
<hands>Crimson finger gauntlets</hands>
</action>
</if>
<!-- BARRAGE RULE -->
<if spell="Barrage">
<action type="castdelay" delay="2" />
<action type="command" when="precast">input /ja "Sharpshot" <me></action>
</if>
<!-- SHARPSHOT RULE -->
<if spell="Sharpshot">
<action type="equip" when="precast">
<legs>Hunter's Braccae</legs>
</action>
</if>
<!-- SLUG SHOT RULE -->
<if spell="Slug Shot|Heavy Shot" notTPLT="100">
<action type="castdelay" delay="1" />
<action type="equip" when="precast" set="WSGear" />
<action type="aftercastdelay" delay="3" />
<action type="Equip" when="aftercast" set="AmmoRemove" />
<if buffactive="Unlimited Shot">
<action type="equip" when="precast">
<ammo>Gold Musketeer's bolt</ammo>
<action type="command" when="precast">input /echo Gold Musketeer's bolt</action>
</action>
</if>
<else>
<action type="command" when="precast">input /echo Darksteel bolt!</action>
</else>
</if>
<!-- SCAVENGE RULE -->
<if spell="Scavenge">
<action type="equip" when="precast">
<feet>Hunter's Socks</feet>
</action>
</if>
<!-- EAGLE EYE SHOT RULE -->
<if spell="Eagle Eye Shot">
<action type="castdelay" delay="1" />
<action type="equip" when="precast" set="wsgear" />
<action type="aftercastdelay" delay="3" />
<action type="Equip" when="aftercast" set="AmmoRemove" />
</action>
</if>
<!-- Velocity SHOT RULE -->
<if status="engaged">
<if notbuffactive="Velocity Shot" />
<action type="command" when="engaged">input /ja "Velocity shot" <me></action>
</if>
</rules>
</spellcast>?