This is my basic RNG setup. You can adjust the gear to fit your setups.
I tried to comment as much as possible to make it easier to edit.
Edit. Fixed tags
<?xml version="1.0" ?>
<spellcast>
<config
HideErrors="false"
NormalSet="towngear"
EngagedSet="Day Set"
ShowGearSwaps="true"
Debug="false"
ShowSpellInfo="false" />
<sets>
<group name="Main" default="yes">
<set name="AmmoRemove">
<ammo>remove</ammo>
</set>
<set name="Day Set">
<main lock="t" />
<sub lock="t" />
<range lock="t" />
<head>Hunter's Beret</head>
<neck>Qiqrn Collar</neck>
<lear>Cassie Earring</lear>
<rear>Bushinomimi</rear>
<body>Kirin's Osode</body>
<hands>Crimson Fng. Gnt.</hands>
<lring>Behemoth Ring +1</lring>
<rring>Rajas Ring</rring>
<back>Amemet Mantle +1</back>
<waist>Precise Belt</waist>
<legs>Scout's Braccae</legs>
<feet>Hunter's Socks</feet>
</set>
<set name="Barrage" baseset="Day Set">
<head>Optical Hat</head>7
<neck>Peacock Charm</neck>
<lear>Drone Earring</lear>
<rear>Bushinomimi</rear>
<back>Jaeger Mantle</back>
<legs>Dusk Trousers</legs>
<lring>Behemoth Ring +1</lring>
<rring>Behemoth Ring</rring>
<body>Hunter's Jerkin</body>
<feet>Hunter's Socks</feet>
</set>
<set name="NINBarrage" baseset="Barrage">
<lear>Genin Earring</lear>
</set>
<set name="towngear" baseset="Day Set">
<head>Scout's Beret</head>
<body>Scout's Jerkin</body>
<legs>Byakko's Haidate</legs>
</set>
<set name="WSGear" BaseSet="Day Set">
<head>Wyvern Helm</head>
<hands>Seiryu's Kote</hands>
<lring>Flame Ring</lring>
<legs>Dusk Trousers</legs>
<lear>Triumph Earring</lear>
<rear>Bushinomimi</rear>
</set>
<set name="NINWS" Baseset="WSGear">
<lear>Genin Earring</lear>
</set>
<set name="Utsu" baseset="Day Set">
<lear>Loqac. Earring</lear>
<hands>Dusk Gloves</hands>
<head>Walahra Turban</head>
<legs>Byakko's Haidate</legs>
<waist>Swift Belt</waist>
</set>
</group>
</sets>
<rules>
<if buffactive="Barrage">
<action type="disable"/>
</if>
<else>
<action type="enable" />
</else>
<if status="Idle">
<action type="equip" set="towngear"/>
</if>
<if spell="ranged">
<if notbuffactive="Barrage">
<action type="equip" when="precast" set="Day Set">
<ammo lock="t">Scorpion Arrow</ammo></action>
</if>
<elseif subjob="NIN">
<action type="equip" when="precast" set="NINBarrage">
<ammo lock="t">Demon Arrow</ammo></action>
<action type="aftercastdelay" delay="2.5" />
</elseif>
<elseif subjob="SAM|WAR">
<action type="equip" set="Barrage">
<ammo lock="t">Demon Arrow</ammo></action>
<action type="aftercastdelay" delay="2.5" />
</elseif>
</if>
<if spell="Sidewinder|Arching Arrow">
<if notbuffactive="Unlimited Shot">
<action type="equip" when="precast">
<ammo lock="t">Kabura Arrow</ammo></action>
<action type="aftercastdelay" delay="2.5" />
</if>
<else>
<action type="equip" when="precast">
<ammo lock="t">Horn Arrow</ammo></action>
</else>
<if subjob="NIN">
<action type="equip" when="precast" delay=".2" set="NINWS" />
<action type="aftercastdelay" delay="2.5" />
</if>
<elseif subjob="WAR|SAM">
<action type="equip" when="precast" delay=".2" set="WSGEAR" />
<action type="aftercastdelay" delay="2.5" />
</elseif>
</if>
<if spell="Utsusemi*|Monomi*|Tonko*">
<action type="equip" when="Precast" set="utsu" />
<action type="aftercastdelay" delay="1" />
</if>
<if spell="Barrage">
<if subjobs="NIN">
<action type="equip" when="precast" set="NINBarrage" />
</if>
<else>
<action type="equip" when="precast" set="Barrage" />
</else>
</if>
<if spell="Shadowbind">
<action type="equip" when="precast">
<hands>Hunter's Bracers +1</hands></action>
<action type="aftercastdelay" delay="1.5" />
</if>
<if spell="Sharpshot">
<action type="equip" when="precast" delay=".2">
<legs>Hunter's Braccae</legs></action>
</if>
<if spell="Camoflage">
<action type="equip" when="precast">
<body>Hunter's Jerkin</body></action>
</if>
<if spell="Scavenge">
<action type="equip" when="precast">
<feet>Hunter's Socks</feet></action>
</if>
</rules>
</spellcast>