Leybot's RNG, Updated 01/12/2010

Introduction

This XML file is intended for use with SpellCast version 2.3+. As of writing this, my RNG is still level 74 and I don't have any of the job abilities available through merits. I also don't do Dynamis/Limbus much so there are no rules for AF2/AF+1 gear changes.

Ranger is one of the few jobs that doesn't really need too many gearswaps. However, with three different ranged weapon types (crossbow, bow and gun) and multiple uses for different types of ammo (especially crossbow), I don't like having separate macros for ranged attacks using specific ammo for each ranged weapon type. This spellcast file consolidates 9 ammo types into three ranged attack macros (can be increased to 12 with one extra macro).

Setting Up the Macros

Equip Ranged Weapon Macros

In your Ranger macro book, set up the following three macros for equipping your ranged weapons and setting variables used for the appropriate ammo. You can change the ranged weapons and ammo as you see fit. I typically use Ctrl+8, Ctrl+9 and Ctrl+0 for these. If you want a 4th ranged attack macro with a different ammo type below, replace the last line of each macro with ”/sc var set Ammo4 [Ammo]”

Please keep in mind that if you manually switch to a different ranged weapon type (bow to xbow, gun to bow, etc.), the ranged attack (next section) will not work.

Crossbow

/sc var set RWtype xbow
/equip range "Othinus' bow"
/sc var set Ammo1 Acid Bolt
/sc var set Ammo2 Holy Bolt
/sc var set Ammo3 Bloody Bolt
/echo Ranged set to XBOW.

Bow

/sc var set RWtype bow
/equip range "Selene's bow"
/sc var set Ammo1 Demon Arrow
/sc var set Ammo2 Scorpion Arrow
/sc var set Ammo3 Sleep Arrow
/echo Ranged set to BOW.

Gun

/sc var set RWtype gun
/equip range "Martial Gun"
/sc var set Ammo1 Bullet
/sc var set Ammo2 Steel Bullet
/sc var set Ammo3 Spartan Bullet
/echo Ranged set to GUN.

Ranged Attack Macros

In your Ranger macro book, set up the following three macros for ranged attacks. I typically use Alt+1, Alt+2 and Alt+3. Switching ranged weapon types (gun, bow, xbow) is a breeze and you won't need to waste vital macro space for multiple types of ammo for each ranged weapon type.

Please note that these macros won't work correctly until you set your ranged weapon type (via using one of the macros in the previous section).

Pulling/Debuff

/equip ammo "$Ammo1"
/ra <t>
/echo TP<tp>

TP

/equip ammo "$Ammo2"
/ra <t>
/echo TP<tp>

Special

/equip ammo "$Ammo3"
/ra <t>
/echo TP<tp>

And if you have a 4th ammo type set

/equip ammo "$Ammo4"
/ra <t>
/echo TP<tp>

Ranger Job Abilities

For Barrage and Unlimited Shot, it loads your predetermined ammo already so you can use the following macros for these job abilities.

Other than equipping ammo and gear in the xml file, I didn't do more for these two awesome job abilities since many RNGs will use them differently (in terms of timing and if Sharpshot is available or not). Here's how I use them via macro:

/ja "Barrage" <me>
/wait 1 
/ra <t>
/wait 5
/equip ammo
/ja "Unlimited Shot" <me>
/wait 1 
/ra <t>
/wait 5
/equip ammo

For Sharpshot, Shadowbind, Scavenge and Camouflage, the XML below will take care of gear swapping.

XML

<?xml version="1.0"?>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
    <config debug="false"/>
    <sets>
        <group name="Ranger|RNG" default="yes">
            <set name="idle">
                <head>Genbu's Kabuto</head>
                <neck>Evasion torque</neck>
                <body>Shikaree Aketon</body>
                <hands>Blood fng. Gnt.</hands>
                <back>Boxer's Mantle</back>
                <waist>Swift Belt</waist>
                <legs>Byakko's Haidate</legs>
                <feet>Crimson Greaves</feet>
            </set>
            <set name="RA">
                <head>Hunter's Beret</head>
                <neck>Ranger's Necklace</neck>
                <lear>Drone Earring</lear>
                <rear>Drone Earring</rear>
                <body>Hunter's Jerkin</body> 
                <hands>Blood fng. Gnt.</hands>
                <lring>Behemoth ring</lring>
                <rring>Merman's ring</rring>
                <back>Amemet Mantle +1</back>
                <waist>R.K. Belt +1</waist>
                <legs>War Brais +1</legs>
                <feet>Hunter's Socks</feet>
            </set>
            <set name="RAacc" baseset="RA">
            <!-- Gearset if Blind|Flash|Blindness is casted on you. -->
                <head>Optical hat</head>
                <neck>Peacock Charm</neck>
            </set>
            <set name="RAstr" baseset="RA">
            <!-- Gearset if Hunter's Roll|*Prelude|AGI Boost is casted on you or during certain weaponskills. -->
		<body>Shikaree Aketon</body>
                <rring>Rajas ring</rring>
                <feet>Creek F Clomps</feet>
            </set>
            <set name="RAagi" baseset="RA">
                <head>Denali Bonnet</head>
		<body>Mirke Wardecors</body>
                <lring>Emerald ring</lring>
                <rring>Emerald ring</rring>
                <legs>War Brais +1</legs>
                <back>Nomad's Mantle</back>
            </set>
            <set name="Melee" baseset="RA">
                <head>Optical hat</head>
                <neck>Spectacles</neck>
                <lear>Suppanomimi</lear>
                <rear>Brutal earring</rear>
                <body>Cobra Harness</body>
                <hands>Enkidu's mittens</hands>
                <lring>Blood ring</lring>
                <rring>Rajas ring</rring>
		<waist>Swift Belt</waist>
                <feet>Cobra Leggings</feet>
                <legs>Cobra Subligar</legs>
            </set>
            <set name="haste" baseset="idle">
                <head>Denali Bonnet</head>
		<lear>Loquac. earring</lear>
                <hands>Dusk Gloves</hands>
                <waist>Swift Belt</waist>
                <legs>Byakko's Haidate</legs>
            </set>
 
	<!-- Ammo Sets -->
	<!-- TP Ammo -->
            <set name="TPbow" baseset="RA">
              <ammo>$Ammo2</ammo>
            </set>
            <set name="TPxbow" baseset="RA">
              <ammo>$Ammo2</ammo>
            </set>
            <set name="TPgun" baseset="RA">
              <ammo>$Ammo2</ammo>
            </set>
	<!-- Weaponskill Ammo -->
            <set name="WSbow" baseset="RAstr">
              <ammo>Kabura Arrow</ammo>
            </set>
            <set name="WSxbow" baseset="RAstr">
              <ammo>Darksteel Bolt</ammo>
            </set>
            <set name="WSgun" baseset="RAstr">
              <ammo>Steel Bullet</ammo>
            </set>
	<!-- Unlimited Shot Ammo -->
            <set name="USbow" baseset="RAstr">
              <ammo>Kabura Arrow</ammo>
            </set>
            <set name="USxbow" baseset="RAstr">
              <ammo>Darksteel Bolt</ammo>
            </set>
            <set name="USgun" baseset="RAstr">
              <ammo>Steel Bullet</ammo>
            </set>
        </group>
    </sets>
    <variables>
	<!-- Ranged Weapon Type -->
	  <var name="RWtype">none</var>
	<!-- Ammo Type for normal ranged attacks-->
	  <var name="Ammo1">init</var>
	  <var name="Ammo2">init</var>
	  <var name="Ammo3">init</var>
	  <var name="Ammo4">init</var>
    </variables>
    <rules>
        <if status="engaged">
          <if buffactive="Blind|Flash|Blindness">
              <equip when="PreCast" set="RAacc" />
              <command>wait 2; input /lockon on;</command>
          </if>
          <elseif buffactive="Hunter's Roll|*Prelude|AGI Boost">
              <equip when="PreCast" set="RAstr" />
              <command>wait 2; input /lockon on;</command>
          </elseif>
          <else>
            <equip when="PreCast" set="RA" />
            <command>wait 2; input /lockon on;</command>
          </else>
        </if>
        <else status="idle">
          <equip when="idle"      set="idle"/>
          <if spell="Ranged">
	    <equip when="PreCast" set="RA" />
	    <aftercastdelay delay="5" />
	  </if>
	  <equip when="AfterCast" set="idle"/>
        </else>
 
	<if type="Weaponskill">
	  <if spell="Sidewinder|*Arrow">
	    <equip when="PreCast" set="WSbow"/>
	    <equip when="AfterCast" set="TPbow"/>
	  </if>
	  <elseif spell="Slug Shot|*Shot" advanced='"$RWtype"=="xbow"'>
	    <equip when="PreCast" set="WSxbow"/>
	    <equip when="AfterCast" set="TPxbow"/>
	  </elseif>
	  <elseif spell="Slug Shot|*Shot" advanced='"$RWtype"=="gun"'>
	    <equip when="PreCast" set="WSgun"/>
	    <equip when="AfterCast" set="TPgun"/>
	  </elseif>
	  <elseif spell="Detonator" advanced='"$RWtype"=="xbow"'>
	    <equip when="PreCast" set="RAagi"/>
	    <equip when="PreCast">
              <ammo>Darksteel Bolt</ammo>
	    </equip>
	    <equip when="AfterCast" set="TPxbow"/>
	  </elseif>
	  <elseif spell="Detonator" advanced='"$RWtype"=="gun"'>
	    <equip when="PreCast" set="RAagi"/>
	    <equip when="PreCast">
              <ammo>Steel Bullet</ammo>
	    </equip>
	    <equip when="AfterCast" set="TPgun"/>
	  </elseif>
	  <else>
	    <equip when="PreCast" set="Melee"/>
	  </else>
	</if>
       	<if type="Ninjutsu|WhiteMagic|BlackMagic|BlueMagic">
       	    <if status="idle">
       	        <equip when="Precast" set="haste" />
       	    </if>
       	    <else status="engaged">
       	        <equip when="PreCast" set="haste" />
                <command when="AfterCast">wait 2; input /lockon on;</command>
       	    </else>
        </if>
	<if type="JobAbility">
	  <if spell="Unlimited Shot"> 
	    <if advanced='"$RWtype"=="bow"'>
	      <equip when="PreCast" set="USbow"/>
	    </if>
	    <elseif advanced='"$RWtype"=="xbow"'>
  	      <equip when="PreCast" set="USxbow"/>
	    </elseif>
	    <else advanced='"$RWtype"=="gun"'>
  	      <equip when="PreCast" set="USgun"/>
	    </else>
	  </if>
	  <if spell="Shadowbind">
	    <equip when="PreCast">
	      <hands>Hunter's Bracers</hands>
	    </equip>
	  </if>
	  <if spell="Sharpshot">
	    <equip when="PreCast" delay=".2">
	      <legs>Hunter's Braccae</legs>
	    </equip>
	  </if>
	  <if spell="Camouflage">
	    <equip when="PreCast">
	      <body>Hunter's Jerkin</body>
	    </equip>
	  </if>
	  <if spell="Scavenge">
	    <equip when="PreCast">
	      <feet>Hunter's Socks</feet>
	    </equip>
	  </if>
	  <if spell="Barrage">
	    <if advanced='"$RWtype"=="bow"'>
	      <equip when="PreCast" set="WSbow"/>
	    </if>
	    <elseif advanced='"$RWtype"=="xbow"'>
  	      <equip when="PreCast" set="WSxbow"/>
	    </elseif>
	    <else advanced='"$RWtype"=="gun"'>
  	      <equip when="PreCast" set="WSgun"/>
	    </else>
	  </if>
	</if>
    </rules>
</spellcast>
plugins/spellcast/userxml/rng/leybot_rng.txt · Last modified: 2010/01/12 19:34 by leybot
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0