Forum Settings
       
Reply To Thread

COR Macro Project *updated 1/20/2010Follow

#1 Jan 19 2011 at 2:05 PM Rating: Good
***
3,947 posts
So ive been toying around with spellcast for the last couple days to finally make a solid grouping of macros that werent just basic extended macros. This file is tested and functioning fully.

If anyone has any suggestions or has improvements for the code let me know. There isnt a good one of these out in the wild so i thought we could come up with one we all agree on and does what we needed. If my coding is correct, this should do the following.

1. Swap into an idle set automatically when not performing an action or engaged.
2. Swap into a melee set when engaged automatically.
3. When rolling equip Hat and af3 hands regardless of roll and swap in AF3 pieces as needed for the new rolls. *note* I decided to not include luzaf ring as im not sure of how to toggle it on or off as sometimes you dont want it and sometiems you do.
4. It should automatically swap in haste gear for uts casts.
5. Weapon skill sets auto change gear.
6. Quickdraw not engaged: Will blink gear so you dont get caught in animation and can keep running.
7. Quickdraw engaged: Will change into qd gear and change you back to engaged set but slower then when not engaged.
8. Swaps into ranged gear with appropriate wait time.

Things that I still havent added yet:

1. Wild Fire set.
2. Leaden Salute set.
3. A more enhanced qd set that would swap in Obis and staffs depending.

This current version is tested and fully working.

<?xml version="1.0" ?>  
  
<spellcast> 
  
	<config HideErrors="True" normalgroup="COR" normalset="town" Language="NA" showgearswaps="false" showspellinfo="false"/> 
  
<sets> 
			<!-- Gear sets --> 
			 
	<group name="COR" default="true" alias="COR"> 
		<set name ="town"> 
			<head>Commodore Tricorne</head> 
			<neck>Twilight torque</neck> 
			<lear>Suppanomimi</lear> 
			<rear>Brutal Earring</rear> 
			<body>Loki's kaftan</body> 
			<hands>Schutzen Mittens</hands> 
			<lring>Rajas Ring</lring> 
			<rring>Adler ring</rring> 
			<back>Amemet Mantle +1</back> 
			<legs>Desultor Tassets</legs> 
			<feet>Hermes' Sandals</feet> 
			<ammo>Steel bullet</ammo> 
			<waist>Aquiline belt</waist> 
		</set> 
		 
		<set name ="FC"> 
			<head>Walahra Turban</head> 
			<hands>Dusk gloves</hands> 
			<waist>Twilight Belt</waist> 
			<legs>Desultor tassets</legs> 
			<feet>Dusk ledelsens</feet> 
		</set>	 
			 
		<set name ="Melee"> 
			<head>Walahra Turban</head> 
			<neck>Spectacles</neck> 
			<lear>Suppanomimi</lear> 
			<rear>Brutal Earring</rear> 
			<body>Loki's kaftan</body> 
			<hands>Dusk gloves</hands> 
			<lring>Rajas ring</lring> 
			<rring>Adler Ring</rring> 
			<back>Amemet Mantle +1</back> 
			<waist>Twilight Belt</waist> 
			<legs>Desultor tassets</legs> 
			<feet>Dusk ledelsens</feet> 
			<ammo>Steel bullet</ammo> 
		</set> 
 
		<set name ="Ranged"> 
			<head>Anwig Salade</head> 
			<neck>Spectacles</neck> 
			<lear>Volley earring</lear> 
			<rear>Triumph earring</rear> 
			<body>Mirke Wardecors</body> 
			<hands>Barb. Moufles</hands> 
			<lring>Behemoth Ring</lring> 
			<rring>Behemoth Ring</rring> 
			<back>Libeccio mantle</back> 
			<waist>Warwolf belt</waist> 
			<legs>Dusk trousers</legs> 
			<feet>Praeda Sabatons</feet> 
			<ammo>Steel bullet</ammo> 
		</set> 
 
		<set name ="Slug"> 
			<head>Anwig Salade</head> 
			<neck>Light Gorget</neck> 
			<lear>Suppanomimi</lear> 
			<rear>Triumph earring</rear> 
			<body>Mirke Wardecors</body> 
			<hands>Barb. Moufles</hands> 
			<lring>Behemoth Ring</lring> 
			<rring>Behemoth Ring</rring> 
			<back>Amemet Mantle +1</back> 
			<waist>Warwolf belt</waist> 
			<legs>Dusk trousers</legs> 
			<feet>Corsair's Bottes</feet> 
			<ammo>Steel bullet</ammo> 
		</set> 
		 
			<set name ="Det"> 
			<head>Anwig Salade</head> 
			<neck>Light Gorget</neck> 
			<lear>Suppanomimi</lear> 
			<rear>Triumph earring</rear> 
			<body>Mirke Wardecors</body> 
			<hands>Barb. Moufles</hands> 
			<lring>Rajas ring</lring> 
			<rring>Behemoth Ring</rring> 
			<back>Amemet Mantle +1</back> 
			<waist>Warwolf belt</waist> 
			<legs>Commodore culottes</legs> 
			<feet>Corsair's Bottes</feet> 
			<ammo>Steel bullet</ammo> 
		</set> 
 
		<set name="Quickdraw"> 
			<head>Corsair's Tricorne</head> 
			<lear>Moldavite Earring</lear> 
			<body>Mirke Wardecors</body> 
			<legs>Denali Kecks</legs> 
			<feet>Navarch's bottes +1</feet> 
			<neck>Uggalepih pendant</neck> 
			<ammo>Oberon's Bullet</ammo> 
			<back>Forban Cape</back> 
			<waist>Aquiline belt</waist> 
			<hands>Schutzen Mittens</hands> 
		</set> 
		 
		<set name ="RD"> 
			<body>Commodore Frac</body> 
		</set> 
		 
		<set name="Evisc"> 
			<head>Anwig Salade</head> 
			<neck>Light Gorget</neck> 
			<lear>Suppanomimi</lear> 
			<rear>Triumph earring</rear> 
			<body>Loki's kaftan</body> 
			<hands>Navarch's Gants +1</hands> 
			<lring>Rajas ring</lring> 
			<rring>Adler Ring</rring> 
			<back>Amemet Mantle +1</back> 
			<waist>Warwolf belt</waist> 
			<legs>Navarch's culottes +1</legs> 
			<feet>Commodore Bottes</feet> 
		</set>	 
			 
			<!-- Af3 Rolls -->		 
			 
		<set name ="Roll"> 
			<head>Commodore Tricorne</head> 
			<hands>Navarch's Gants +1</hands> 
		</set>	 
 
		<set name ="Blitz" baseset ="Roll"> 
			<head>Navarch's Tricorne +1</head> 
		</set> 
		 
		<set name ="Tact trip" baseset ="Roll"> 
			<body>Navarch's Frac +1</body> 
		</set> 
		 
		<set name ="Allie phan" baseset ="Roll"> 
			<hands>Navarch's Gants +1</hands> 
		</set> 
 
		<set name ="Caster"  baseset ="Roll"> 
			<legs>Navarch's culottes +1</legs> 
		</set> 
 
		<set name ="Courser" baseset ="Roll"> 
			<feet>Navarch's Bottes +1</feet> 
		</set> 
	</group> 
</sets>	 
			<!-- Rulez -->	 
			 
	<rules> 
    <if status="idle"> 
      <equip when="aftercast|idle" set="town"/> 
   </if>   
    <elseif status="engaged"> 
      <equip when="engaged|aftercast" set="melee"/> 
   </elseif>  
	<if spell="Utsusemi*"> 
		<action type="equip" when="precast" set="fc"/> 
			<if spell="*Ichi"> 
				<action type="command" when="midcast">cancel 66</action> 
			</if> 
		</if>	 
	<if notstatus="engaged"> 
            <if Spell="Fire Shot|Water Shot|Thunder Shot|Earth Shot|Wind Shot|Ice Shot|Light Shot|Dark Shot"> 
                    <equip when="Precast" Set="Quickdraw" /> 
                    <equip when="midcast" set="town" /> 
                </if> 
			</if> 
	<if spell="Random*"> 
		<equip when="precast" set="RD"/> 
	</if> 
	<if spell="Ranged"> 
		<equip when="precast" set="Ranged"/> 
		<aftercastdelay delay="5" /> 
	</if>	 
	 
			<!-- Weaponskill Rules --> 
			 
	<if spell="Slug Shot"> 
		<equip when="precast" set="Slug"/> 
	</if> 
	<if spell="Detonator"> 
		<equip when="precast" set="Det"/> 
	</if> 
	<if spell="Evisceration"> 
		<equip when="precast" set="Evisc"/> 
	</if>	 
	 
			 
			 
			<!-- Phantom Roll Rules -->	 
		 
	<if spell="*Roll"> 
		<action type="equip" when="precast" set="Roll"/> 
	</if> 
	<if spell="Blitzer's Roll"> 
		<action type="equip" when="precast" set="Blitz"/> 
	</if> 
	<if spell="Tactician's Roll"> 
		<action type="equip" when="precast" set="Tact trip"/> 
	</if> 
	<if spell="Allies' Roll"> 
		<action type="equip" when="precast" set="Allie phan"/> 
	</if> 
	<if spell="Caster's Roll"> 
		<action type="equip" when="precast" set="Caster"/> 
	</if> 
	<if spell="Courser's Roll"> 
		<action type="equip" when="precast" set="Courser"/> 
	</if> 
  </rules> 
</spellcast>


Edited, Jan 20th 2011 7:12pm by Alobont
____________________________
[ffxisig]145240[/ffxisig]
#2 Jan 19 2011 at 10:12 PM Rating: Decent
***
3,947 posts
Tested this out tonight it still has a lot of bugs. Getting some weird errors for no reason but once I get it fixed ill repost.
____________________________
[ffxisig]145240[/ffxisig]
#3 Jan 20 2011 at 7:13 PM Rating: Decent
***
3,947 posts
New code is posted. It is tested and working.
____________________________
[ffxisig]145240[/ffxisig]
#4 Feb 17 2011 at 3:31 AM Rating: Decent
Scholar
***
1,050 posts
i cant get my gear to swap when i preform ranged attacks and its bugging the sh*t outta me. Can anyone tell me what im doing wrong? Bear in mind this is my 1st time using Spellcast so be nice.

I borrowed most of the code surrounding Phantom Roll from an Older COR spellcast xml file.

updated with newer code... for some reason i have 2 xml files named the same thing... this could by why im having issues lol.
<?xml version="1.0" ?> 
<spellcast> 
  <config Debug="false" /> 
  <sets> 
    <group name="Corsair"> 
      <set name="QD_MaB"> 
        <ammo>Oberon's Bullet</ammo> 
        <head>Corsair's Tricorne</head> 
        <neck>Uggalepih Pendant</neck> 
        <lear>Moldavite Earring</lear> 
        <rear>Navarch's Earring</rear> 
        <!--<body></body>--> 
        <!--<hands></hands>--> 
        <!--<rring></rring>--> 
        <lring>Demon's Ring</lring> 
        <back>Forban Cape</back> 
        <waist>Aquiline Belt</waist> 
        <!--<legs></legs>--> 
        <feet>Navarch's Bottes +1</feet> 
      </set> 
      <set name="Ratt_Standard"> 
        <ammo>Steel Bullet</ammo> 
        <head>Navarch's Tricorne +1</head> 
        <neck>Peacock Charm</neck> 
        <lear>Volley Earring</lear> 
        <rear>Navarch's Earring</rear> 
        <body>Commodore Frac</body> 
        <hands>Navarch's Gants +1</hands> 
        <rring>Behemoth Ring +1</rring> 
        <lring>Jalzahn's Ring</lring> 
        <back>Libeccio Mantle</back> 
        <waist>Buccaneer's Belt</waist> 
        <legs>Aurore Brais</legs> 
        <feet>Corsair's Bottes +1</feet> 
      </set> 
      <set name="WS_Wildfire"> 
        <ammo>Steel Bullet</ammo> 
        <!--<head></head>--> 
        <neck>Uggalepih Pendant</neck> 
        <lear>Moldavite Earring</lear> 
        <rear>Navarch's Earring</rear> 
        <!--<body></body>--> 
        <!--<hands></hands>--> 
        <!--<rring></rring>--> 
        <lring>Demon's Ring</lring> 
        <back>Forban Cape</back> 
        <waist>Aquiline Belt</waist> 
        <!--<legs></legs>--> 
        <!--<feet></feet>--> 
      </set> 
      <set name="WS_Evisceration|TPGear"> 
        <head>Optical Hat</head> 
        <neck>Peacock Charm</neck> 
        <lear>Brutal Earring</lear> 
        <rear>Kemas Earring</rear> 
        <body>Commodore Frac</body> 
        <hands>Navarch's Gants +1</hands> 
        <rring>Iota Ring</rring> 
        <lring>Jaeger Ring</lring> 
        <back>Atheling Mantle</back> 
        <waist>Swift Belt</waist> 
        <legs>Navarch's Culottes +1</legs> 
        <feet>Corsair's Bottes +1</feet> 
      </set> 
    </group> 
  </sets> 
  <variables> 
    <var name="DiceVar">init</var> 
    <var name="Luzaf">0</var> 
    <var name="RAtype">RAnorm</var> 
    <var name="TPLock">20</var> 
    <var name="RollType">ALL</var> 
  </variables> 
  <rules> 
    <if status="idle"> 
      <addtochat>Detecting Idle</addtochat> 
      <equip when="AfterCast" set="Ratt_Standard" /> 
    </if> 
    <elseif status="engaged"> 
      <addtochat>Detecting Engaged</addtochat> 
      <equip when="AfterCast" set="TPGear" /> 
    </elseif> 
     
    <if spell="Ranged"> 
      <addtochat>Detecting Ranged Attack</addtochat> 
      <equip when="Precast" set="Ratt_Standard" /> 
      <aftercastdelay delay="5" /> 
    </if> 
 
    <!--Find out how rapid shot/snapshot effect ranged attacks (Upbeat)--> 
    <!--Phantom Roll 
    <if commandPrefix="/range"> 
      <equip when="PreCast" set="Ratt_Standard" /> 
    </if>--> 
 
    <if type="CorsairRoll"> 
      <command>sc var set DiceVar %spell</command> 
      <if spell="Corsair's Roll"> 
        <addtochat>Luzaf's Ring is ACTIVE for %spell only: Lucky 5 - Unlucky 9</addtochat> 
        <command>sc var set RollType CORROLL</command> 
        <equip when="PreCast"> 
          <rring>Luzaf's Ring</rring> 
        </equip> 
        <equip when="AfterCast"> 
          <rring>Behemoth Ring +1</rring> 
        </equip> 
      </if> 
      <else spell="Choral*|Samurai*|Scholar*|Magus*|Healer*|Monk*|Drachen*|Gallant*|Dancer*|Ninja*|Hunter*|Chaos*|Puppet*|Beast*|Warlock*|Wizard*|Evoker*|Fighter*|Rogue*|Bolter*|Caster*|Courser*|Blitzer*|Tactician*|Allies*"> 
        <command>sc var set RollType ALL</command> 
        <if advanced='"$Luzaf"=="1"'> 
          <if spell="Choral*|Samurai*|Scholar*|Magus*"> 
            <addtochat>Luzaf's Ring is ACTIVE for %spell:  Lucky 2 - Unlucky 6</addtochat> 
          </if> 
          <elseif spell="Healer*|Monk*|Drachen*|Gallant*|Dancer*"> 
            <addtochat>Luzaf's Ring is ACTIVE for %spell:  Lucky 3 - Unlucky 7</addtochat> 
          </elseif> 
          <elseif spell="Ninja*|Hunter*|Chaos*|Puppet*|Beast*|Warlock*"> 
            <addtochat>Luzaf's Ring is ACTIVE for %spell:  Lucky 4 - Unlucky 8</addtochat> 
          </elseif> 
          <elseif spell="Bolter*|Courser*"> 
            <addtochat>Luzaf's Ring is ACTIVE for %spell:  Lucky 3 - Unlucky 9</addtochat> 
          </elseif> 
          <elseif spell="Caster*"> 
            <addtochat>Luzaf's Ring is ACTIVE for %spell:  Lucky 2 - Unlucky 7</addtochat> 
          </elseif> 
          <elseif spell="Blitzer*"> 
            <addtochat>Luzaf's Ring is ACTIVE for %spell:  Lucky 4 - Unlucky 9</addtochat> 
          </elseif> 
          <elseif spell="Tactician*"> 
            <addtochat>Luzaf's Ring is ACTIVE for %spell:  Lucky 5 - Unlucky 8</addtochat> 
          </elseif> 
          <elseif spell="Allies*"> 
            <addtochat>Luzaf's Ring is ACTIVE for %spell:  Lucky 3 - Unlucky 10</addtochat> 
          </elseif> 
          <else spell="Wizard*|Evoker*|Fighter*|Rogue*"> 
            <addtochat>Luzaf's Ring is ACTIVE for %spell:  Lucky 5 - Unlucky 9</addtochat> 
          </else> 
          <equip when="PreCast"> 
            <rring>Luzaf's Ring</rring> 
          </equip> 
          <equip when="AfterCast"> 
            <rring>Behemoth Ring +1</rring> 
          </equip> 
        </if> 
        <else advanced='"$Luzaf"=="0"'> 
          <if spell="Choral*|Samurai*|Scholar*|Magus*"> 
            <addtochat>Luzaf's Ring is NOT ACTIVE for %spell:  Lucky 2 - Unlucky 6</addtochat> 
          </if> 
          <elseif spell="Healer*|Monk*|Drachen*|Gallant*|Dancer*"> 
            <addtochat>Luzaf's Ring is NOT ACTIVE for %spell:  Lucky 3 - Unlucky 7</addtochat> 
          </elseif> 
          <elseif spell="Ninja*|Hunter*|Chaos*|Puppet*|Beast*|Warlock*"> 
            <addtochat>Luzaf's Ring is NOT ACTIVE for %spell:  Lucky 4 - Unlucky 8</addtochat> 
          </elseif> 
          <elseif spell="Bolter*|Courser*"> 
            <addtochat>Luzaf's Ring is NOT ACTIVE for %spell:  Lucky 3 - Unlucky 9</addtochat> 
          </elseif> 
          <elseif spell="Caster*"> 
            <addtochat>Luzaf's Ring is NOT ACTIVE for %spell:  Lucky 2 - Unlucky 7</addtochat> 
          </elseif> 
          <elseif spell="Blitzer*"> 
            <addtochat>Luzaf's Ring is NOT ACTIVE for %spell:  Lucky 4 - Unlucky 9</addtochat> 
          </elseif> 
          <elseif spell="Tactician*"> 
            <addtochat>Luzaf's Ring is NOT ACTIVE for %spell:  Lucky 5 - Unlucky 8</addtochat> 
          </elseif> 
          <elseif spell="Allies*"> 
            <addtochat>Luzaf's Ring is NOT ACTIVE for %spell:  Lucky 3 - Unlucky 10</addtochat> 
          </elseif> 
          <else spell="Wizard*|Evoker*|Fighter*|Rogue*"> 
            <addtochat>Luzaf's Ring is NOT ACTIVE for %spell:  Lucky 5 - Unlucky 9</addtochat> 
          </else> 
          <equip when="PreCast"> 
            <rring>Behemoth Ring +1</rring> 
          </equip> 
        </else> 
      </else> 
    </if> 
    <if spell="Double*"> 
      <if advanced='"$Luzaf"=="1"'> 
        <addtochat>Luzaf's Ring is ACTIVE for $DiceVar.</addtochat> 
        <equip when="PreCast"> 
          <rring>Luzaf's Ring</rring> 
        </equip> 
        <equip when="AfterCast"> 
          <rring>Behemoth Ring +1</rring> 
        </equip> 
      </if> 
      <else advanced='"$Luzaf"=="0"'> 
        <if advanced='"$RollType"=="CORROLL"'> 
          <addtochat>Luzaf's Ring is ACTIVE for $DiceVar only.</addtochat> 
          <equip when="PreCast"> 
            <rring>Luzaf's Ring</rring> 
          </equip> 
          <equip when="AfterCast"> 
            <rring>Behemoth Ring +1</rring> 
          </equip> 
        </if> 
        <elseif advanced='"$RollType"=="ALL"'> 
          <addtochat>Luzaf's Ring is NOT ACTIVE for $DiceVar.</addtochat> 
          <equip when="PreCast"> 
            <rring>Behemoth Ring +1</rring> 
          </equip> 
        </elseif> 
        <else> 
          <addtochat>Luzaf's Ring is NOT ACTIVE for $DiceVar.</addtochat> 
          <equip when="PreCast"> 
            <rring>Behemoth Ring +1</rring> 
          </equip> 
        </else> 
      </else> 
    </if> 
    <!--WeaponSkill Code--> 
    <if type="Weaponskill"> 
      <if     spell="Slug Shot|*Shot"> 
        <equip when="PreCast" set="Ratt_Standard" /> 
        <!--<equip when="PreCast"> 
            <neck>Breeze Gorget</neck> 
          </equip>--> 
      </if> 
      <elseif spell="Detonator"> 
        <equip when="PreCast" set="Ratt_Standard" /> 
        <!--<equip when="PreCast"> 
            <neck>Flame Gorget</neck> 
          </equip>--> 
      </elseif> 
      <elseif spell="Evisceration"> 
        <equip when="PreCast" set="WS_Evisceration" /> 
      </elseif> 
      <else spell="Leaden Salute|Wildfire"> 
        <equip when="PreCast" set="WS_Wildfire" /> 
        <!--<equip when="PreCast"> 
            <neck>Soil Gorget</neck> 
          </equip>--> 
      </else> 
    </if> 
    <!--Quick Draw Code--> 
    <if type="CorsairShot"> 
      <!-- Update your NQ/HQ Elemental Staves below --> 
      <if spell="Light*|Dark*|Ice*|Wind*|Earth*|Thunder*|Water*|Fire*"> 
        <equip when="PreCast" set="QD_MaB" /> 
      </if> 
    </if> 
  </rules> 
</spellcast>


Edited, Feb 17th 2011 12:17pm by Tarqs
____________________________
Armant wrote:
No DRG for party, camp spot site with 30 dmg, but is it for 20 like 30 dmg when you no hit be it for dd, for 30 dmg instead? or half is 10 for 20 dmg?

Omegag wrote:
Cor should just be using dice rolls and helping with cures anyway

Dynamis Member while prepping for Dynamis Qufim wrote:
Is this where treasure hunter feet drop?

#5 Feb 17 2011 at 8:27 AM Rating: Decent
***
3,947 posts
You have engaged spelled wrong in your ratt rule.

Also your phantom roll **** is way complicated.
____________________________
[ffxisig]145240[/ffxisig]
#6 Feb 17 2011 at 12:02 PM Rating: Decent
Scholar
***
1,050 posts
I'm just gonna keep updating the previous posted xml so that ppl dont have to scroll down 10 years to see where the post is going. fixed some of the issue...
Now my ranged attacks trigger on firing a ranged attack. however im coming up with a new issue with engaging a mob and my ilde set.
    <if status="idle"> 
      <addtochat>Detecting Idle</addtochat> 
      <equip when="AfterCast" set="Ratt_Standard" /> 
    </if> 
    <elseif status="engaged"> 
      <addtochat>Detecting Engaged</addtochat> 
      <equip when="AfterCast" set="TPGear" /> 
    </elseif> 
     
    <if spell="Ranged"> 
      <addtochat>Detecting Ranged Attack</addtochat> 
      <equip when="Precast" set="Ratt_Standard" /> 
      <aftercastdelay delay="5" /> 
    </if>

i've put chat lines in my xml to tell me when its detecting engaged/idle/ranged attacks and heres what im seeing.

Idle/engaged only seem to tell me that they are active only after preforming an action so my pseudo chat looks like this

Leonidus draws his weapons (this is the point i would imagine engaged should pick up)
Leonidus his the monster 2x (still not picking up engaged)
Leonidus preforms a QuickDraw
Equip change to QD set
Detecting Engaged
Leonidus his the monster 2x (now in engaged gear but only because it detected it from the QD use)
Leonidus starts to preform a ranged attack
Detecting Engaged
Detecting Ranged Attack
Leonidus finished Ranged Attack
Detecting Engaged
Leonidus uses Evisceration
Equip Changed to TP/Acc (for WS)
Detecting Engaged.
Leonidus wins.

So as you can see it only detects Engaged via an action being used before that point. If i were to draw my weapons and start beating on it no gear swaps would happen. When i preformed my 1st ranged attack after loading spellcast however it looked like this...

Starts to Ranged Attack
Equip changed (ranged attack gear)
Detecting Idle
Detecting Ranged Attack
Finishes Ranged Attack
Detecting Engaged



____________________________
Armant wrote:
No DRG for party, camp spot site with 30 dmg, but is it for 20 like 30 dmg when you no hit be it for dd, for 30 dmg instead? or half is 10 for 20 dmg?

Omegag wrote:
Cor should just be using dice rolls and helping with cures anyway

Dynamis Member while prepping for Dynamis Qufim wrote:
Is this where treasure hunter feet drop?

#7 Feb 17 2011 at 12:30 PM Rating: Decent
Scholar
Avatar
****
6,238 posts
I think it needs to be:
<equip when="autoset"~

So that piece is fired whenever you change state. I'm just mentioning from memory, I'll check my own XML when I get home which has damnably aggressive idle/engaged management.

You can also skip the 'status' checking line and just:
<equip when="engaged"~ 
<equip when="idle"~

These work perfect, while the prior is useful if you have a piece you want put on with other conditions, like if you have a refresh neck piece you want put on whenever you're below 50% MP but only if above 85% HP, and it will then check each time you engage or disengage. I think if you use the status line as you have it it may not always fire because the autoset trigger may be faster than you actually change states for 'status' to read.

Think of the 'when' as being the first thing it looks for, then it checks the 'if's to see if it should process that command or not.

Edited, Feb 17th 2011 10:36am by Raelix
____________________________
I've seen things you people wouldn't believe. Airships on fire off the shoulder of Bahamut. I watched Scapula Beams glitter in the dark near the Three Mage Gate...

Nilatai wrote:
Vlorsutes wrote:
There's always...not trolling him?

You're new here, aren't you?
#8 Feb 17 2011 at 2:45 PM Rating: Decent
***
3,947 posts
Yeah your just complicating things with all those status checks. Simplest way to do it is hiw I have it in my spellcast. CoPy paste and enjoy.

My code auto changes with out actions needed. If i engage it swaps to tp gear. If I idle it swaps.
____________________________
[ffxisig]145240[/ffxisig]
#9 Feb 17 2011 at 11:47 PM Rating: Decent
Scholar
Avatar
****
6,238 posts
Got home, took a look in my DRK xml, very first line in my <rules> section:
		<equip when="engaged" set="enga" />

Then my WS swaps, then:
		<equip when="idle" set="idle" /> 
		<equip when="resting" set="idle" />

Then comes the rest of my swaps, including some:
			<if status="engaged"> 
				<equip when="aftercast" set="enga" /> 
			</if> 
			<else status="idle"> 
				<equip when="aftercast" set="idle" /> 
			</else>

At the end of my spells block because finishing a spell isn't an autoset

So yeah, how I mentioned works perfectly, and works when you engage/disengage. The third part here is just gravy for swapping back to whatever is my 'active' set,
____________________________
I've seen things you people wouldn't believe. Airships on fire off the shoulder of Bahamut. I watched Scapula Beams glitter in the dark near the Three Mage Gate...

Nilatai wrote:
Vlorsutes wrote:
There's always...not trolling him?

You're new here, aren't you?
#10 Mar 17 2012 at 10:31 AM Rating: Decent
***
3,947 posts
Just a bit of an update to this. I finished retweaking my spellcast for COR.
Pastebin link: COR
Rules:
All Roll rules, with add to chat for lucky and not lucky,
Engage rules for auto engage, and gear swaps depending on in staff or melee.
QD rule for kiting and normal.
Brew rule (not tested)
Omphalos Bullet rule so you wont shoot it.

Only thing its really missing is obi rules.

Enjoy.

<?xml version="1.0" ?>  
  
<spellcast> 
  
	<config HideErrors="True" normalgroup="COR" normalset="town" Language="NA" showgearswaps="false" showspellinfo="false"/> 
  
<sets> 
			<!-- Gear sets --> 
			 
	<group name="COR" default="true" alias="COR"> 
		<set name ="town"> 
			<head>Pandinus Beret</head> 
			<neck>Twilight torque</neck> 
			<lear>Suppanomimi</lear> 
			<rear>Brutal Earring</rear> 
			<body>Loki's kaftan</body> 
			<hands>Schutzen Mittens</hands> 
			<lring>Stormsoul ring</lring> 
			<rring>Stormsoul ring</rring> 
			<back>Atheling Mantle</back> 
			<legs>Desultor Tassets</legs> 
			<feet>Hermes' Sandals</feet> 
			<ammo>none</ammo> 
			<waist>Twilight Belt</waist> 
		</set> 
		 
		<set name ="FC"> 
			<head>Zelus Tiara</head> 
			<waist>Twilight Belt</waist> 
			<neck>Magoraga Beads</neck> 
		</set>	 
			 
		<set name ="Melee"> 
			<head>Zelus Tiara</head> 
			<neck>Houyi's gorget</neck> 
			<lear>Suppanomimi</lear> 
			<rear>Brutal Earring</rear> 
			<body>Loki's kaftan</body> 
			<hands>Ocelot gloves</hands> 
			<lring>Rajas ring</lring> 
			<rring>Epona's Ring</rring> 
			<back>Atheling Mantle</back> 
			<waist>Twilight Belt</waist> 
			<legs>Ocelot trousers</legs> 
			<feet>Athos's boots</feet> 
		</set> 
 
		<set name ="Ranged"> 
			<head>Navarch's Tricorne +2</head> 
			<neck>Spectacles</neck> 
			<lear>Volley earring</lear> 
			<rear>Triumph earring</rear> 
			<body>Navarch's Frac +2</body> 
			<hands>Navarch's gants +2</hands> 
			<lring>Behemoth Ring</lring> 
			<rring>Behemoth Ring</rring> 
			<back>Libeccio mantle</back> 
			<waist>Aquiline belt</waist> 
			<legs>Dusk trousers</legs> 
			<feet>Praeda Sabatons</feet> 
			<ammo>Steel bullet</ammo> 
		</set> 
 
		<set name ="Slug"> 
			<head>Anwig Salade</head> 
			<neck>Light Gorget</neck> 
			<lear>Suppanomimi</lear> 
			<rear>Triumph earring</rear> 
			<body>Mirke Wardecors</body> 
			<hands>Navarch's gants +2</hands> 
			<lring>Behemoth Ring</lring> 
			<rring>Behemoth Ring</rring> 
			<back>Amemet Mantle +1</back> 
			<waist>Warwolf belt</waist> 
			<legs>Dusk trousers</legs> 
			<feet>Corsair's Bottes</feet> 
			<ammo>Steel bullet</ammo> 
		</set> 
		 
			<set name ="Det"> 
			<head>Anwig Salade</head> 
			<neck>Light Gorget</neck> 
			<lear>Suppanomimi</lear> 
			<rear>Triumph earring</rear> 
			<body>Mirke Wardecors</body> 
			<hands>Barb. Moufles</hands> 
			<lring>Rajas ring</lring> 
			<rring>Behemoth Ring</rring> 
			<back>Amemet Mantle +1</back> 
			<waist>Warwolf belt</waist> 
			<legs>Teutates subligar</legs> 
			<feet>Corsair's Bottes</feet> 
			<ammo>Steel bullet</ammo> 
		</set> 
 
		<set name="Quickdraw"> 
			<head>Corsair's Tricorne</head> 
			<lear>Moldavite Earring</lear> 
			<rear>Hecate's Earring</rear> 
			<body>Mirke Wardecors</body> 
			<legs>Desultor Tassets</legs> 
			<feet>Navarch's bottes +2</feet> 
			<neck>Uggalepih pendant</neck> 
			<rring>Demon's ring</rring> 
			<lring>Demon's ring</lring> 
			<ammo>Omphalos Bullet</ammo> 
			<back>Forban Cape</back> 
			<waist>Aquiline belt</waist> 
			<hands>Schutzen Mittens</hands> 
		</set> 
		 
		<set name="Wildfire"> 
			<head>Pandinus Beret</head> 
			<lear>Moldavite Earring</lear> 
			<rear>Hecate's Earring</rear> 
			<body>Loki's kaftan</body> 
			<hands>Schutzen mittens</hands> 
			<rring>Stormsoul ring</rring> 
			<lring>Stormsoul ring</lring> 
			<feet>Navarch's bottes +2</feet> 
			<neck>Uggalepih pendant</neck> 
			<back>Forban Cape</back> 
			<legs>Ambusher's Hose</legs> 
			<waist>Sveltesse gouriz</waist> 
			<hands>Schutzen Mittens</hands> 
			<ammo>Bronze Bullet</ammo> 
		</set>	 
			 
		<set name ="Wildfire Brew"> 
			<head>Anwig salade</head> 
			<lear>Moldavite Earring</lear> 
			<rear>Hecate's Earring</rear> 
			<body>Loki's kaftan</body> 
			<hands>Schutzen mittens</hands> 
			<rring>Demon's ring</rring> 
			<lring>Demon's ring</lring> 
			<feet>Navarch's bottes +2</feet> 
			<neck>Uggalepih pendant</neck> 
			<back>Forban Cape</back> 
			<legs>Desultor Tassets</legs> 
			<waist>Aquiline belt</waist> 
			<hands>Schutzen Mittens</hands> 
			<ammo>Bronze Bullet</ammo> 
		</set>		 
		 
		<set name ="Aedge"> 
			<head>Pandinus Beret</head> 
			<lear>Moldavite Earring</lear> 
			<rear>Hecate's Earring</rear> 
			<body>Loki's kaftan</body> 
			<legs>Desultor Tassets</legs> 
			<feet>Navarch's bottes +2</feet> 
			<neck>Uggalepih pendant</neck> 
			<back>Forban Cape</back> 
			<waist>Aquiline belt</waist> 
			<rring>Demon's ring</rring> 
			<lring>Demon's ring</lring> 
		</set> 
		 
		<set name ="Last Stand"> 
			<head>Navarch's Tricorne +2</head> 
			<lear>Suppanomimi</lear> 
			<rear>Volley earring</rear> 
			<body>Loki's kaftan</body> 
			<hands>Schutzen mittens</hands> 
			<rring>Stormsoul ring</rring> 
			<lring>Stormsoul ring</lring> 
			<feet>Navarch's bottes +2</feet> 
			<neck>Light Gorget</neck> 
			<back>Libeccio mantle</back> 
			<legs>Ambusher's Hose</legs> 
			<waist>Sveltesse gouriz</waist> 
			<ammo>Steel Bullet</ammo> 
		</set>	 
		 
		<set name ="Extenterator"> 
			<head>Navarch's Tricorne +2</head> 
			<lear>Suppanomimi</lear> 
			<rear>Triumph Earring</rear> 
			<body>Loki's kaftan</body> 
			<hands>Navarch's gants +2</hands> 
			<rring>Stormsoul ring</rring> 
			<lring>Stormsoul ring</lring> 
			<feet>Navarch's bottes +2</feet> 
			<neck>Houyi's gorget</neck> 
			<back>Atheling Mantle</back> 
			<legs>Ambusher's Hose</legs> 
			<waist>Sveltesse gouriz</waist> 
			<ammo>none</ammo> 
		</set>	 
		 
		<set name ="RD"> 
			<body>Commodore Frac</body> 
		</set> 
		 
		<set name="Evisc"> 
			<head>Aias Bonnet</head> 
			<neck>Light Gorget</neck> 
			<lear>Suppanomimi</lear> 
			<rear>Triumph earring</rear> 
			<body>Loki's kaftan</body> 
			<hands>Navarch's Gants +2</hands> 
			<lring>Rajas ring</lring> 
			<rring>Epona's Ring</rring> 
			<back>Atheling mantle</back> 
			<waist>Warwolf belt</waist> 
			<legs>Navarch's culottes +2</legs> 
			<feet>Lithe boots</feet> 
		</set>	 
			 
		<set name="Trip Shot"> 
			<body>Navarch's Frac +2</body> 
		</set> 
		 
			<!-- Af3 Rolls -->		 
			 
		<set name ="Roll"> 
			<head>Commodore Tricorne</head> 
			<hands>Navarch's Gants +2</hands> 
			<rring>Luzaf's Ring</rring> 
		</set>	 
 
		<set name ="Blitz" baseset ="Roll"> 
			<head>Navarch's Tricorne +2</head> 
		</set> 
		 
		<set name ="Tact trip" baseset ="Roll"> 
			<body>Navarch's Frac +2</body> 
		</set> 
		 
		<set name ="Allie phan" baseset ="Roll"> 
			<hands>Navarch's Gants +2</hands> 
		</set> 
 
		<set name ="Caster"  baseset ="Roll"> 
			<legs>Navarch's culottes +2</legs> 
		</set> 
 
		<set name ="Courser" baseset ="Roll"> 
			<feet>Navarch's Bottes +2</feet> 
		</set> 
	</group> 
</sets>	 
			<!-- Rulez -->	 
			 
	<rules> 
	 
	<if commandprefix="/range|/ra|/weaponskill|/ws"> 
	<if EquipAmmo="Omphalos Bullet"> 
		<cancelspell /> 
		<equip when="all"><ammo>remove</ammo></equip> 
		<addtochat>Bullet unequiped</addtochat> 
		<return /> 
	</if> 
</if> 
    <if status="idle"> 
      <equip when="aftercast|idle" set="town"/> 
   </if>   
    <elseif status="engaged"> 
		<if equipmain="Joyeuse|Twilight*|Lux*"> 
      <equip when="engaged|aftercast" set="melee"/> 
	  </if> 
   </elseif>  
   <elseif status="engaged"> 
		<if equipmain="Vulcan*"> 
	  <equip when="engaged|aftercast" set="town"/> 
		</if> 
   </elseif>  
	<if spell="Utsusemi*"> 
		<action type="equip" when="precast" set="fc"/> 
			<if spell="*Ichi"> 
				<action type="command" when="midcast">cancel 66</action> 
			</if> 
		</if>	 
	<if notstatus="engaged"> 
            <if Spell="Fire Shot|Water Shot|Thunder Shot|Earth Shot|Wind Shot|Ice Shot|Light Shot|Dark Shot"> 
                    <equip when="Precast" Set="Quickdraw" /> 
                    <equip when="midcast" set="town" /> 
                </if> 
			</if> 
	<if Spell="Fire Shot|Water Shot|Thunder Shot|Earth Shot|Wind Shot|Ice Shot|Light Shot|Dark Shot"> 
                    <equip when="Precast" Set="Quickdraw" /> 
                    <equip when="midcast" set="town" /> 
                </if>		 
	<if spell="Random*"> 
		<equip when="precast" set="RD"/> 
	</if> 
	<if spell="Ranged"> 
		<equip when="precast" set="Ranged"/> 
		<aftercastdelay delay="5" /> 
	</if> 
	<if spell="Triple Shot"> 
		<equip when="precast" set="Trip shot"/> 
	</if>	 
	 
	<if buffactive="Transcendency"> 
			<if spell="Wildfire"> 
				<equip when="Precast" set="Wildfire Brew"/> 
			</if> 
		</if>	 
			<!-- Weaponskill Rules --> 
			 
	<if spell="Slug Shot"> 
		<equip when="precast" set="Slug"/> 
	</if> 
	<if spell="Detonator"> 
		<equip when="precast" set="Det"/> 
	</if> 
	<if spell="Evisceration"> 
		<equip when="precast" set="Evisc"/> 
	</if>	 
	<if spell="Aeolian Edge"> 
		<equip when="precast" set="Aedge"/> 
	</if>	 
	<if spell="Wildfire"> 
		<equip when="precast" set="Wildfire"/>		 
	</if>	 
	<if spell="Last Stand"> 
		<equip when="precast" set="Last Stand"/> 
	</if> 
	<if spell="Extenterator"> 
		<equip when="precast" set="Extenterator"/> 
	</if>	 
	 
			<!-- Phantom Roll Rules -->	 
		 
	<if spell="*Roll"> 
		<action type="equip" when="precast" set="Roll"/> 
	</if> 
	<if spell="Blitzer's Roll"> 
		<action type="equip" when="precast" set="Blitz"/> 
	</if> 
	<if spell="Tactician's Roll"> 
		<action type="equip" when="precast" set="Tact trip"/> 
	</if> 
	<if spell="Allies' Roll"> 
		<action type="equip" when="precast" set="Allie phan"/> 
	</if> 
	<if spell="Caster's Roll"> 
		<action type="equip" when="precast" set="Caster"/> 
	</if> 
	<if spell="Courser's Roll"> 
		<action type="equip" when="precast" set="Courser"/> 
	</if> 
	 
	<if spell="Corsair*|Fighter*"> 
		<addtochat>%spell: Lucky 5 - Unlucky 9</addtochat> 
	</if> 
		<elseif spell="Choral*|Samurai*|Scholar*|Magus*"> 
			<addtochat>%spell: Lucky 2 - Unlucky 6</addtochat> 
        </elseif> 
        
	   <elseif spell="Healer*|Monk*|Puppet*|Gallant*|Dancer*"> 
            <addtochat>%spell: Lucky 3 - Unlucky 7</addtochat> 
        </elseif> 
       
	  <elseif spell="Ninja*|Hunter*|Chaos*|Beast*|Warlock*|Drachen*"> 
            <addtochat>%spell: Lucky 4 - Unlucky 8</addtochat> 
        </elseif> 
 
		<elseif spell="Bolter*|Courser*"> 
            <addtochat>%spell: Lucky 3 - Unlucky 9</addtochat> 
        </elseif> 
 
        <elseif spell="Tactician*"> 
            <addtochat>%spell: Lucky 5 - Unlucky 8</addtochat> 
		</elseif> 
 
        <elseif spell="Allies*"> 
            <addtochat>%spell: Lucky 3 - Unlucky 10</addtochat> 
        </elseif> 
 
        <elseif spell="Caster*"> 
            <addtochat>%spell: Lucky 2 - Unlucky 7</addtochat> 
        </elseif> 
 
		<elseif spell="Blitzer*"> 
            <addtochat>%spell: Lucky 4 - Unlucky 9</addtochat> 
        </elseif> 
 
        <elseif spell="Miser*"> 
            <addtochat>%spell: Lucky 5 - Unlucky 7</addtochat> 
        </elseif> 
 
        <elseif spell="Companion*"> 
            <addtochat>%spell: Lucky 2 - Unlucky 10</addtochat> 
        </elseif> 
		 
		<elseif spell="Avenger*"> 
            <addtochat>%spell: Lucky 4 - Unlucky 8</addtochat> 
        </elseif> 
  </rules> 
</spellcast>


Edited, Mar 17th 2012 11:32am by Alobont
____________________________
[ffxisig]145240[/ffxisig]
Necro Warning: This post occurred more than thirty days after the prior, and may be a necropost.
Reply To Thread

Colors Smileys Quote OriginalQuote Checked Help

 

Recent Visitors: 21 All times are in CDT
Anonymous Guests (21)