War Spellcast

Eorzea Time
 
 
 
Language: JP EN FR DE
users online
Forum » FFXI » Jobs » Warrior » War spellcast
War spellcast
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-02-28 03:33:17
Link | Quote | Reply
 
Carbuncle.Tyleron said: »
Quick question, whats the easiest way to have a macro that lets you change all gear.

I was thinking

<elseif Spell="Water">
<action Type="Equip" When="PreCast" Set="Standard">
</action>
</elseif>

So then i guess i have a macro that is /ja Water <me>

Is that how it works? do I need to use an include or something?

Sorry I am writing my first xml and totaly lost

That's pretty much it (/ma "Water" <t> though), although "action" tags are pretty outdated now, I recommend:
Code xml
<elseif spell="Water">
	<equip when="precast" set="standard" />
	<cancelspell />
</elseif>


That said, you can have Spellcast automatically equip gear for most situations. For example:
Code xml
<equip when="Engaged" set="MyDDGear" /> <!-- Equips DD gear when you engage-->
<equip when="Resting" set="NeedMoreHP" /> <!-- Equips whatever you feel like wearing for resting -->
<equip when="Idle" set="RegainALLTheThings" /> <!-- Equips a bajillion TP/tick regain so you can rip the mobs face off! -->



After you've become more accustom to Spellcast, you could even have it use different sets based on every mob you fight (if you really wanted to go that far..)
Code xml
<if mode="or" SpellTargetName="SuperHardNM" TargetName="SuperDuperMob"> <!-- Equips High Acc gear if you're fighting/using JA's/WS's on "SuperHardNM" or "SuperDuperMob" -->
	<equip when="Engaged" set="HighAccGear" />
	<addtochat color="121">You're fighting a Super Hard NM! Using max Accuracy set! :D</addtochat>
</if>
<elseif mode="or" SpellTargetName="HardNM" TargetName="RawrMob"> <!-- Equips Acc gear if you're fighting/using JA's/WS's on "HardNM" or "RawrMob" -->
	<equip when="Engaged" set="MidAccGear" />
	<addtochat color="121">You're fighting a Hard NM! Using high Accuracy set! :D</addtochat>
</elseif>
<else> <!-- At this point, you're fighting no noteworthy mob, and you just equip your regular DD gear -->
	<equip when="Engaged" set="MyDDGear" />
</else>



Also, the " /> " on the end of my equip lines basically mean "nothing else follows" and just means you don't have "<equip set="whatever" when="whenever"></equip>" hanging around everywhere.


EDIT: I have a couple of super simple Spellcasts (for WAR and MNK) that should help you with the basics, they don't do anything too fancy so you shouldn't have any problems reading through them.

http://pastebin.com/dSwe4GgS
http://pastebin.com/CHi2ixuJ
 Carbuncle.Tyleron
Offline
Server: Carbuncle
Game: FFXI
user: Tyleron
Posts: 163
By Carbuncle.Tyleron 2012-02-29 18:27:57
Link | Quote | Reply
 
Hitetsu, thanks a bunch. Great response, yet for some reason it still does not work.

Anyone able to take a look at my first attempt?

http://pastebin.com/c1bjH2Ev

Thx.
 Fenrir.Jinjo
VIP
Offline
Server: Fenrir
Game: FFXI
user: Minjo
Posts: 2269
By Fenrir.Jinjo 2012-02-29 18:41:12
Link | Quote | Reply
 
Why would you have rules that swap in accuracy gear based on what you're fighting when the real factor is going to be whether you have Stalwart's, Aggressor, etc. up or not?
Offline
Posts: 1020
By Gimpness 2012-02-29 18:42:22
Link | Quote | Reply
 
last post on the last page! :3

mine has all that :p
 Fenrir.Jinjo
VIP
Offline
Server: Fenrir
Game: FFXI
user: Minjo
Posts: 2269
By Fenrir.Jinjo 2012-02-29 18:53:55
Link | Quote | Reply
 
Better method for gear sets:

Include these in your variables:
Code xml
<var name="Accuracy">0</var>
<var name="PDT">0</var>
<var name="Melee">1</var>


Have two triggers in your rules:
Code xml
		<if spell="(TriggerSpell1)">
			<if advanced='"$PDT" = "0"'>
				<var cmd="set PDT 1" />
				<addtochat color="57">PDT Toggle - Mixed</addtochat>
			</if>
			<elseif advanced='"$PDT" = "1"'>
				<var cmd="set PDT 2" />
				<addtochat color="57">PDT Toggle - Max PDT</addtochat>
			</elseif>
			<else>
				<var cmd="set PDT 0" />
				<addtochat color="57">PDT Toggle - Max Damage</addtochat>
			</else>
		</if>

		<if spell="(TriggerSpell2)">
			<if advanced='"$Accuracy" = "0"'>
				<var cmd="set Accuracy 1" />
				<addtochat color="57">Accuracy Toggle - Mixed</addtochat>
			</if>
			<elseif advanced='"$Accuracy" = "1"'>
				<var cmd="set Accuracy 2" />
				<addtochat color="57">Accuracy Toggle - Max Accuracy</addtochat>
			</elseif>
			<else>
				<var cmd="set Accuracy 0" />
				<addtochat color="57">Accuracy Toggle - Max Damage</addtochat>
			</else>
		</if>


Throw this in somewhere:
Code xml
		<if spell="(TriggerSpell1)|(TriggerSpell2)"><var cmd="set Time precast" /></if>
		<elseif spell="autoset">
			<if status="resting"><var cmd="set Time resting" /></if>
			<elseif status="idle"><var cmd="set Time idle" /></elseif>
			<elseif status="engaged"><var cmd="set Time engaged" /></elseif>
		</elseif>
		<else><var cmd="set Time aftercast" /></else>


And then this:
Code xml
		<if status="engaged" Advanced='"$Melee" = "1"'>
			<if Advanced='(int)$PDT >= 1'>
				<if Advanced='"$PDT" = "1"'><equip when="$Time" set="PDT-Mix" /></if>
				<elseif Advanced='"$PDT" = "2"'><equip when="$Time" set="PDT" /></elseif>
			</if>
			<else>
				<if Advanced='"$Accuracy" = "0"'><equip when="$Time" set="TP" /></if>
				<elseif Advanced='"$Accuracy" = "1"'><equip when="$Time" set="TP-Mix" /></elseif>
				<else><equip when="$Time" set="TP-Acc" /></else>
			</else>
		</if>
		<else><equip when="$Time" set="Stand" /></else>
		<if advanced='"$Time" = "precast"'><cancelspell /><return /></if>


Now you can toggle accuracy (and PDT) based on your own assessment of the situation rather than an arbitrary appraisal of the mob. If you want, you can mix it up even further, but this works great for a normal TP set, mixed PDT build, PDT build, mixed ACC build, and full ACC build.

It will auto-swap gear as you engage along with when you type in (or use a macro containing) the trigger spell.
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-03-01 12:02:45
Link | Quote | Reply
 
Fenrir.Jinjo said: »
Why would you have rules that swap in accuracy gear based on what you're fighting when the real factor is going to be whether you have Stalwart's, Aggressor, etc. up or not?

That was pulled from my BLM Spellcast, after I remade it I had no need for accuracy gear (80 cap), so I never bothered putting NM names in there, I simply swapped the set names around a bit to be slightly easier to follow.

That said, Gimpness and Jinjo's XML's would be better pre-made/partially coded ones.


If you're still interested it putting your own together though, try taking the "<else> </else>" out of your WS statement and you'll only be able to change gear using Stone/Water assuming they're counting as WS's (they never will), try rearranging it to something like this and it should work fine:
Code
	   <elseif Type="WeaponSkill">
			<if Spell="Metatron Torment">
				<PreCastDelay Delay=".2" />
				<equip When="PreCast" Set="Torment" />
			</if>
			<elseif Spell="Upheaval">
				<precastdelay Delay=".2" />
				<equip When="PreCast" Set="Upheaval" />
			</elseif>
			<elseif Spell="Ukko's Fury">
				<precastdelay Delay=".2" />
				<equip When="PreCast" Set="Ukko">
			</elseif>
			<elseif Spell="Fell Cleave">
				<precastdelay Delay=".2" />
				<equip When="PreCast" Set="Torment" />
			</elseif>
		</elseif> 
		
		<if Spell="Stone">
			<equip When="PreCast" Set="Engaged" />
		</if>
		<elseif Spell="Water">
			<equip When="PreCast" Set="Standard" />
		</elseif>
 Carbuncle.Tyleron
Offline
Server: Carbuncle
Game: FFXI
user: Tyleron
Posts: 163
By Carbuncle.Tyleron 2012-03-06 20:53:26
Link | Quote | Reply
 
Ok would really appreciate some help on my first attempt i can't get this to work at all

http://pastebin.com/AwxApjvR

says error at 106 but i can't find it.

appreciate any help
 Sylph.Binckry
Offline
Server: Sylph
Game: FFXI
user: Binckly
Posts: 529
By Sylph.Binckry 2012-03-07 08:38:03
Link | Quote | Reply
 
Try fixing this at line 101. <equip When="PreCast" Set="Ukko">
with a />, I'm not sure, btw, I'm pretty new at making xmls <.<
 Ragnarok.Arcalimo
Offline
Server: Ragnarok
Game: FFXI
user: arcalimo
Posts: 254
By Ragnarok.Arcalimo 2012-03-07 08:56:02
Link | Quote | Reply
 
I saved a copy on my pc and opening it on firefox tell me the following errors:

-Line 1: " <?xml version="1.0" ?>" (Fixed it by removing the spaces before the tag)(not sure if this is relevant, I never went into this one but firefox says it's wrong)

-Line 102: "</if>" (On line 101 you have "<equip When="PreCast" Set="Ukko">", replace it with "<equip When="PreCast" Set="Ukko" />")

That should fix it i guess
[+]
 Asura.Backstab
Offline
Server: Asura
Game: FFXI
user: backstab
Posts: 256
By Asura.Backstab 2012-03-14 16:54:57
Link | Quote | Reply
 
Sylph.Hitetsu said: »
Missing an </if> on the end, try this:
Code xml
<if buffactive="Atma*|Visitant">
	<if notbuffactive="Physical Shield">
		<equip when="aftercast" set="pdt" />
	</if>
	<else>
		<equip when="aftercast" set="tpgear" />
	</else>
</if>


i got a new problem, i cant get it to equip my restraint down tp set in VW now, it allways equips my restraint up set cause of the equip when= aftercast set=tp gear.

and everything i try allways ends with a error lawl.

its prolly a real simple problem again and i know i should try and understand how spellcast works and stop being lazy but a answer would be really pro.
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-03-14 21:44:53
Link | Quote | Reply
 
Haha, try this:
Code xml
<if buffactive="Atma*|Visitant">

	<etc etc>
	
	<if buffactive="Restraint">
		<equip when="aftercast" set="RestraintUpTP" />
	</if>
	<elseif notbuffactive="Restraint">
		<equip when="aftercast" set="RestraintDownTP" />
	</elseif>
	
	<etc etc>
	
</if>


(the <etc etc> is where any other code you have is, I just didn't want to wrap it in just Atma/Visitant sets and have you copypasta it in anywhere)
[+]
 Bismarck.Nooblet
Offline
Server: Bismarck
Game: FFXI
user: djtickle
Posts: 26
By Bismarck.Nooblet 2012-03-16 05:48:53
Link | Quote | Reply
 
Could anyone share there spellcasts to please?
 Asura.Backstab
Offline
Server: Asura
Game: FFXI
user: backstab
Posts: 256
By Asura.Backstab 2012-03-17 11:32:03
Link | Quote | Reply
 
i removed the rule where it automatically changes to PDT set after a action if fanatics drink is not up in voidwatch cause i sometimes end up in PDT in unwanted situations and instead decided to use the following rules and just make a PDT up down macro but i......

got a new problem lawl ; ;

how would i get spellcast to equip my restraint down and up sets instead of only the "engaged" set.

this is what i use atm and i think is also the reason why it allways or 95% of the time changes to restraint up set instead of restraint down set when it should.

<if spell="Dia">
<if advanced='"$PDT"="0"'>
<action type="var" cmd="set PDT 1" />
<addtochat>PDT set on!</addtochat>
</if>
<elseif advanced='"$PDT"="1"'>
<action type="var" cmd="set PDT 0" />
<addtochat>TP set on!</addtochat>
</elseif>
</if>

<if status="Engaged">
<if advanced='"$PDT"="0"'>
<action type="equip" when="engaged|aftercast" set="engaged" />
</if>
<elseif advanced='"$PDT"="1"'>
<action type="equip" when="engaged|aftercast" set="PDT" />
</elseif>
</if>


i also got this in my xml.

<if status="engaged">
<if notbuffactive="restraint">
<equip when="engaged|aftercast" set="WarriorTPR"/>
</if>
<else>
<equip when="engaged|aftercast" set="engaged"/>
</else>
</if>

thanks a lot for the help so far hitetsu i really appreciate it.

edit: i played around with it and now it does use both sets but the PDT variable doesnt work lol.
edit2: well depending on where i place it either the PDT variable works or the restraint up/down sets >.>
 Lakshmi.Raksha
Offline
Server: Lakshmi
Game: FFXI
Posts: 41
By Lakshmi.Raksha 2012-03-17 15:12:24
Link | Quote | Reply
 
try:

<var cmd="set PDT 0" />

or

<cmd>var set PDT 0</cmd>

or

<action type="cmd">var set PDT 0</action>
 Asura.Herot
Offline
Server: Asura
Game: FFXI
user: herot
Posts: 1
By Asura.Herot 2012-03-17 15:55:37
Link | Quote | Reply
 
<if spell="Dia">
<if advanced='"$PDT"="0"'>
<action type="var" cmd="set PDT 1" />
<addtochat>PDT set on!</addtochat>
</if>
<elseif advanced='"$PDT"="1"'>
<action type="var" cmd="set PDT 0" />
<addtochat>TP set on!</addtochat>
</elseif>
</if>

<if status="Engaged">
<if advanced='"$PDT"="0"'>
<if buffnotactive="restraint">
<equip when="engaged|aftercsat" set="WarriorTPR" />
</if>
<else>
<equip when="engaged|aftercast" set="engaged" />
</else>
</if>
<elseif advanced='"$PDT"="1"'>
<equip when="engaged|aftercast" set="PDT" />
</elseif>
</if>
[+]
 Asura.Backstab
Offline
Server: Asura
Game: FFXI
user: backstab
Posts: 256
By Asura.Backstab 2012-03-17 16:38:56
Link | Quote | Reply
 
get a error msg if i try that
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-03-18 04:34:02
Link | Quote | Reply
 
Hmm, you could try:
Code xml
<var name="PDT">0</var>

Code xml
<if spell="Dia">
	<if Advanced='("$PDT" = "0")'>
		<addtochat color="121">Switching to PDT Gear</addtochat>
		<equip set="PDTSet" when="Aftercast" />
		<cmd>sc var set PDT 1</cmd>
	</if>
	<elseif Advanced='("$PDT" = "1")'>
		<if buffactive="Restraint">
			<addtochat color="121">Removing PDT Gear - Restraint Active: Equipping Restraint Gear</addtochat>
			<equip when="aftercast" set="RestraintUpTP" />
		</if>
		<elseif notbuffactive="Restraint">
			<addtochat color="121">Removing PDT Gear - Restraint Inactive: Equipping TP Gear</addtochat>
			<equip when="aftercast" set="RestraintDownTP" />
		</elseif>
		<cmd>sc var set PDT 0</cmd>
	</elseif>
</if>
[+]
 Odin.Nooje
Offline
Server: Odin
Game: FFXI
user: Nooje
Posts: 6
By Odin.Nooje 2012-03-18 23:02:32
Link | Quote | Reply
 
Been trying to figure out how to code this properly, but this doesn't seem to work, as it sometimes still WS's with set legs on. In a few of my sets I have Ogiers, and Heca legs equipped. Is there a variable I should use or any ideas?
Code
<elseif spell="Warrior's Charge">
	<equip when="Precast">
	<legs>Warrior's Cuisses +2</legs>
	</equip>
</elseif>
<if type="WeaponSkill">
	<if buffactive="Warrior's Charge">
		<equip when="Midcast|Aftercast">  
		<legs lock="yes">Warrior's Cuisses +2</legs>    
		</equip>
	</if>
</if>
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-03-18 23:48:44
Link | Quote | Reply
 
I'm assuming you're wanting to use Warriors Legs +2 for WS's if you have WC active? If so, change <equip when="midcast|aftercast"> to precast and you should be golden.
[+]
 Asura.Backstab
Offline
Server: Asura
Game: FFXI
user: backstab
Posts: 256
By Asura.Backstab 2012-03-19 15:17:39
Link | Quote | Reply
 
thanks a lot for the help so far esp to you hitetsu.... my WAR XML is almost complete lawl even tho i still didnt take my time to understand spellcast totally.

i got one last problem.

these are the current WS rules:


<if type="weaponskill">
<if spell="Ukko's Fury">
<if buffactive="Visitant">
<if buffactive="Berserk|Attack Boost">
<if buffactive="Potency|Blood Rage">
<action type="equip" when="precast" set="ukkozerkcrit" />
</if>
<else>
<action type="equip" when="precast" set="ukkozerk" />
</else>
</if>
<if notbuffactive="Berserk|Attack Boost">
<if buffactive="Potency|Bloodrage">
<action type="equip" when="precast" set="ukkocrit" />
</if>
<else>
<action type="equip" when="precast" set="ukkoin" />
</else>
</if>
</if>
<else>
<action type="equip" when="precast" set="ukkoout" />
</else>
</if>



<if spell="Raging Rush">
<if buffactive="Berserk|Attack Boost">
<action type="equip" when="precast" set="rrzerk" />
</if>
<else>
<action type="equip" when="precast" set="rr" />
</else>
</if>


<if spell="Fell Cleave">
<action type="equip" when="precast" set="fc" />
</if>

<if spell="Upheaval">
<action type="equip" when="precast" set="upheav" />
</if>

because of the <if buffactive="Visitant"> it only gives me 1 WS set outside aby(ukkoout) and 3 inside aby. i changed that atm to iff notbuffactive="visitant" which gives me 3 WS sets outside aby.

i tried changing it so i had the sets inside and out but again it ended in errors -.-
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-03-19 15:26:11
Link | Quote | Reply
 
I think I found the problem, it looks like you were only assigning a single WS for "outside" because of how your Visitant status was placed (it was nested into your Ukko's WS part).

Try this one, I rearranged it slightly so it checks for Visitant then does your WS's.
Code xml
<if type="weaponskill">
	<if buffactive="Visitant">
		<if spell="Ukko's Fury">
			<if buffactive="Berserk|Attack Boost">
				<if buffactive="Potency|Blood Rage">
					<action type="equip" when="precast" set="ukkozerkcrit" /> <!-- Using Ukko's - Atk+, Crit+ -->
				</if>
				<else>
					<action type="equip" when="precast" set="ukkozerk" /> <!-- Using Ukko's - Atk+ -->
				</else>
			</if>
			<if notbuffactive="Berserk|Attack Boost">
				<if buffactive="Potency|Bloodrage">
					<action type="equip" when="precast" set="ukkocrit" /> <!-- Using Ukko's - Crit+, no Atk+ -->
				</if>
				<else>
					<action type="equip" when="precast" set="ukkoin" /> <!-- Using Ukko's - No bonuses -->
				</else>
			</if>
	</if>

		<if spell="Raging Rush">
			<if buffactive="Berserk|Attack Boost">
				<action type="equip" when="precast" set="rrzerk" /> <!--Using RR - with Atk+ -->
			</if>
			<else>
				<action type="equip" when="precast" set="rr" /> <!-- RR, without Atk+ -->
			</else>
		</if>


		<if spell="Fell Cleave">
			<action type="equip" when="precast" set="fc" />
		</if>

		<if spell="Upheaval">
			<action type="equip" when="precast" set="upheav" />
		</if>
	</if> <!-- Close visitant -->
	
	<elseif notbuffactive="Visitant">
		<if spell="Ukko's Fury">
			<if buffactive="Berserk|Attack Boost">
				<if buffactive="Potency|Blood Rage">
					<action type="equip" when="precast" set="OUTSIDE_ukkozerkcrit" /> <!-- Using Ukko's - Atk+, Crit+ -->
				</if>
				<else>
					<action type="equip" when="precast" set="OUTSIDE_ukkozerk" /> <!-- Using Ukko's - Atk+ -->
				</else>
			</if>
			<if notbuffactive="Berserk|Attack Boost">
				<if buffactive="Potency|Bloodrage">
					<action type="equip" when="precast" set="OUTSIDE_ukkocrit" /> <!-- Using Ukko's - Crit+, no Atk+ -->
				</if>
				<else>
					<action type="equip" when="precast" set="OUTSIDE_ukkoin" /> <!-- Using Ukko's - No bonuses -->
				</else>
			</if>
	</if>

		<if spell="Raging Rush">
			<if buffactive="Berserk|Attack Boost">
				<action type="equip" when="precast" set="OUTSIDE_rrzerk" /> <!--Using RR - with Atk+ -->
			</if>
			<else>
				<action type="equip" when="precast" set="OUTSIDE_rr" /> <!-- RR, without Atk+ -->
			</else>
		</if>


		<if spell="Fell Cleave">
			<action type="equip" when="precast" set="OUTSIDE_fc" />
		</if>

		<if spell="Upheaval">
			<action type="equip" when="precast" set="OUTSIDE_upheav" />
		</if>
	</elseif> <!-- Close outside WS's -->
</if>
[+]
 Asura.Backstab
Offline
Server: Asura
Game: FFXI
user: backstab
Posts: 256
By Asura.Backstab 2012-03-19 18:00:14
Link | Quote | Reply
 
works like a charm. thank you^^

Edit: how would i add this without getting a error msg, it should cancel gearswap if TP is under 100%.

<if commandprefix="/weaponskill|/ws">
<if tplt="100">
<action type="cancelspell" />
<action type="return" />
</if>


and is there a rule that prevents a WS from going of if the mob is out of range?
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-03-20 01:49:26
Link | Quote | Reply
 
Can replace that with:
Code xml
<if type="Weaponskill">
			<if mode="OR" TPLT="100" advanced='%SpellTargetDistance>6' notstatus="engaged">
				<addtochat color="121">Too far away from target, not enough TP or not engaged. Cancelling WS</addtochat>
				<cancelspell/>
				<return />
			</if>
		</if>
 Shiva.Kalmah
Offline
Server: Shiva
Game: FFXI
user: Isindil
Posts: 3
By Shiva.Kalmah 2012-04-04 01:00:06
Link | Quote | Reply
 
Any tips as to modifying those weaponskill rules to include Voidwatch as well as inside/outside rules? Thanks!
 Bahamut.Bekisa
Offline
Server: Bahamut
Game: FFXI
Posts: 596
By Bahamut.Bekisa 2012-04-04 01:16:53
Link | Quote | Reply
 
Shiva.Kalmah said: »
Any tips as to modifying those weaponskill rules to include Voidwatch as well as inside/outside rules? Thanks!

for inside/outside, I assume you mean Abyssea -- I do it with
Code
<if buffActive="Visitant">


I'm sure there are other ways of doing it such as by zone name
Code
<if Zone="Abyssea*">

or something of the sort.

I manually swap XML's for VW and +TH gear currently. Don't play much anymore to feel like working on new rules. Hitting a macro that says //sc load Bekisa_THF_TH.xml does the job fine. Just a minor annoyance of making sure you update both TH and non-TH XML's when you change gear around.
 Shiva.Kalmah
Offline
Server: Shiva
Game: FFXI
user: Isindil
Posts: 3
By Shiva.Kalmah 2012-04-04 01:36:15
Link | Quote | Reply
 
Would something along the lines of:
Code
<if buffactive="Visitant">
</if>
<elseif buffactive="Voidwatcher">
</elseif>
<else>
</else>


Built into ws rules work out properly?
 Shiva.Kalmah
Offline
Server: Shiva
Game: FFXI
user: Isindil
Posts: 3
By Shiva.Kalmah 2012-04-04 01:43:43
Link | Quote | Reply
 
Something like this maybe?
Code
<if type="weaponskill">
    <if buffactive="Visitant">
        <if spell="Ukko's Fury">
            <if buffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Blood Rage">
                    <action type="equip" when="precast" set="InsideUkkoZerkBR" /> <!-- Using Ukko's - Atk+, Crit+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="InsideUkkoZerk" /> <!-- Using Ukko's - Atk+ -->
                </else>
            </if>
            <if notbuffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Bloodrage">
                    <action type="equip" when="precast" set="InsideUkko" /> <!-- Using Ukko's - Crit+, no Atk+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="InsideUkko" /> <!-- Using Ukko's - No bonuses -->
                </else>
            </if>
    </if>

        <if spell="Fell Cleave|Steel Cyclone">
            <action type="equip" when="precast" set="FellCleave" />
        </if>
 
        <if spell="Upheaval">
            <action type="equip" when="precast" set="Upheaval" />
        </if>
    </if> <!-- Close visitant -->
     
    <elseif buffactive="Voidwatcher">
        <if spell="Ukko's Fury">
            <if buffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Blood Rage">
                    <action type="equip" when="precast" set="VoidUkkoZerkBR" /> <!-- Using Ukko's - Atk+, Crit+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="VoidUkkoZerk" /> <!-- Using Ukko's - Atk+ -->
                </else>
            </if>
            <if notbuffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Bloodrage">
                    <action type="equip" when="precast" set="VoidUkko" /> <!-- Using Ukko's - Crit+, no Atk+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="VoidUkko" /> <!-- Using Ukko's - No bonuses -->
                </else>
            </if>
    </if>
  
        <if spell="Fell Cleave|Steel Cyclone">
            <action type="equip" when="precast" set="FellCleave" />
        </if>
 
        <if spell="Upheaval">
            <action type="equip" when="precast" set="Upheaval" />
        </if>
    </elseif> <!-- Close Voidwatch WS's -->
	<else>
		<if spell="Ukko's Fury">
            <if buffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Blood Rage">
                    <action type="equip" when="precast" set="OutsideUkkoZerkBR" /> <!-- Using Ukko's - Atk+, Crit+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="OutsideUkkoZerk" /> <!-- Using Ukko's - Atk+ -->
                </else>
            </if>
            <if notbuffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Bloodrage">
                    <action type="equip" when="precast" set="OutsideUkko" /> <!-- Using Ukko's - Crit+, no Atk+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="OutsideUkko" /> <!-- Using Ukko's - No bonuses -->
                </else>
            </if>
    </if>

        <if spell="Fell Cleave|Steel Cyclone">
            <action type="equip" when="precast" set="FellCleave" />
        </if>
 
        <if spell="Upheaval">
            <action type="equip" when="precast" set="Upheaval" />
        </if>
	</else> <!-- Close OUtside WS's -->
</if>
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-04-04 02:14:30
Link | Quote | Reply
 
That should work fine, I can't see any syntax problems, so if there is anything it's likely to be a problem with its location.
 Shiva.Galbir
Offline
Server: Shiva
Game: FFXI
user: galbir
Posts: 1290
By Shiva.Galbir 2012-04-04 02:34:36
Link | Quote | Reply
 
Look's great except one nitpick.
Code
   <if notbuffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Bloodrage">
                    <action type="equip" when="precast" set="VoidUkko" /> <!-- Using Ukko's - Crit+, no Atk+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="VoidUkko" /> <!-- Using Ukko's - No bonuses -->
                </else>
            </if>

On this rule you're using the same set for buff active and buff not active. it doesn't matter at all since it still works. Just a bit redundant unless you have another set for BR and forgot to put it in the set=.
 Asura.Backstab
Offline
Server: Asura
Game: FFXI
user: backstab
Posts: 256
By Asura.Backstab 2012-04-06 10:19:47
Link | Quote | Reply
 
would like to share this XML if anyone can use it and also ask if someone can help me with a problem, sometimes it doesnt switch back to my engaged set after a WS and idk why.

Prolly cause it isnt written well or there is a mistake in it i guess, would also be awesome if someone could clean it up a bit if its a mess.

and is there a way to cancle gearswaps if a JA is not up?

Code
<?xml version="1.0" ?>

<spellcast>
<variables>
<var name="PDT">0</var>
</variables>

<sets>
<group name="war">
<set name="MiscGearCollector" load="yes">
<main>Joyeuse</main>
<main>Magnus Axe</main>
<main>Ukonvasara</main>
<main>Earth Staff</main>
<main>Rsv.Cpt.Grt. sword</main>
<main>Bounty sickle</main>
<main>Quint Spear</main>
<main>Warp Cudgel</main>
</set>

<set name="engaged">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Zelus Tiara</head>
<neck>Rancor collar</neck>
<body>Rvg. Lorica +2</body>
<hands>Rvg. Mufflers +2</hands>
<back>Atheling Mantle</back>
<waist>Phasmida Belt</waist>
<legs>Rvg. Cuisses +2</legs>
<feet>Rvg. Calligae +2</feet>
<rear>Ravager's Earring</rear>
<rring>Tyrant's Ring</rring>
<ammo>fire bomblet</ammo>
</set>

<set name="WarriorTPR">
<ammo>fire bomblet</ammo>
<hands>seiryu's kote</hands>
<legs>Ravager's Cuisses +2</legs>
<feet>Ravager's Calligae +2</feet>
<back>atheling mantle</back>
<body>fazheluo radiant mail</body>
<lring>tyrant's ring</lring>
<rring>Rajas Ring</rring>
<neck>Rancor collar</neck>
<waist>Phasmida belt</waist>
<lear>Ravager's Earring</lear>
<rear>Brutal Earring</rear>
<head>fazheluo helm +1</head>
</set>


<set name="idle">
<lear>Darkness Earring</lear>
<lring>Sheltered Ring</lring>
<head>Twilight helm</head>
<neck>Wiglen gorget</neck>
<body>Twilight Mail</body>
<hands>War. Mufflers +2</hands>
<back>Engulfer cape</back>
<waist>Nierenschutz</waist>
<legs>ogier's breeches</legs>
<feet>Jingang greaves</feet>
<rear>Black earring</rear>
<rring>Paguroidea Ring</rring>
<ammo>Demonry stone</ammo>
</set>

<set name="Outside_rr">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Ravager's Mask +2</head>
<neck>Nefarious collar</neck>
<body>Grim cuirass</body>
<hands>war. mufflers +2</hands>
<back>Rancorous Mantle</back>
<waist>thunder Belt</waist>
<legs>Avant Cuisses +1</legs>
<feet>Rvg. calligae +2</feet>
<rear>Centaurus Earring</rear>
<rring>Pyrasoul Ring</rring>
<ammo>Ravager's Orb</ammo>
</set>

<set name="Outside_rrzerk" baseset="Outside_rr">
<hands>hecatomb mittens +1</hands>
<back>Rancorous Mantle</back>
<waist>Thunder Belt</waist>
</set>

<set name="ukkoout">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Ravager's Mask +2</head>
<neck>Nefarious collar</neck>
<body>Grim cuirass</body>
<hands>hecatomb mittens +1</hands>
<back>Rancorous Mantle</back>
<waist>windbuffet belt</waist>
<legs>Ogier's breeches</legs>
<feet>Rvg. calligae +2</feet>
<rear>Centaurus earring</rear>
<rring>Pyrosoul Ring</rring>
<ammo>Ravager's Orb</ammo>
</set>

<set name="Outside_ukkoin">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Ravager's Mask +2</head>
<neck>Nefarious collar</neck>
<body>Grim Cuirass</body>
<hands>Hct. mittens +1</hands>
<back>Rancorous Mantle</back>
<waist>windbuffet Belt</waist>
<legs>Hct. subligar +1</legs>
<feet>Rvg. Calligae +2</feet>
<rear>Centaurus Earring</rear>
<rring>pyrosoul Ring</rring>
<ammo>Ravager's Orb</ammo>
</set>

<set name="Outside_ukkocrit" baseset="Outside_ukkoin">
<back>Rancorous Mantle</back>
<neck>Thunder gorget</neck>
<legs>ogier's breeches</legs>
</set>

<set name="Outside_ukkozerk">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Ravager's Mask +2</head>
<neck>Nefarious collar</neck>
<body>Grim cuirass</body>
<hands>hecatomb mittens +1</hands>
<back>Rancorous Mantle</back>
<waist>windbuffet Belt</waist>
<legs>Hct. subligar +1</legs>
<feet>Rvg. Calligae +2</feet>
<rear>Centaurus Earring</rear>
<rring>Pyrosoul Ring</rring>
<ammo>Ravager's Orb</ammo>
</set>

<set name="Outside_ukkozerkcrit" baseset="Outside_ukkoin">
<waist>Windbuffet belt</waist>
<neck>Thunder gorget</neck>
<legs>ogier's breeches</legs>
</set>

<set name="Outside_fc">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Twilight Helm</head>
<neck>Thunder Gorget</neck>
<body>Grim Cuirass</body>
<hands>Rvg. muffler's</hands>
<back>Atheling Mantle</back>
<waist>thunder Belt</waist>
<legs>Avant Cuisses +1</legs>
<feet>dilaram's sollerets</feet>
<rear>centaurus Earring</rear>
<rring>Pyrosoul Ring</rring>
<ammo>Ravager's Orb</ammo>
</set>

<set name="Outside_upheav">
<lear>Brutal earring</lear>
<lring>terra;s ring</lring>
<head>Rav. mask +2</head>
<neck>apathy gorget</neck>
<body>twilight mail</body>
<hands>War. mufflers +2</hands>
<back>Atheling mantle</back>
<waist>warwolf belt</waist>
<feet>dilaram's sollerets</feet>
<legs>ravager's cuisses +2</legs>
<rear>centaurus earring</rear>
<rring>spiral ring</rring>
<ammo>ravager's orb</ammo>
</set>

<set name="rr">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Ravager's Mask +2</head>
<neck>Nefarious collar</neck>
<body>Grim cuirass</body>
<hands>war. mufflers +2</hands>
<back>Rancorous Mantle</back>
<waist>thunder Belt</waist>
<legs>Avant Cuisses +1</legs>
<feet>Rvg. calligae +2</feet>
<rear>Centaurus Earring</rear>
<rring>Pyrasoul Ring</rring>
<ammo>Ravager's Orb</ammo>
</set>

<set name="rrzerk" baseset="rr">
<hands>hecatomb mittens +1</hands>
<back>Rancorous Mantle</back>
<waist>Thunder Belt</waist>
</set>

<set name="ukkoout">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Ravager's Mask +2</head>
<neck>Nefarious collar</neck>
<body>Grim cuirass</body>
<hands>hecatomb mittens +1</hands>
<back>Rancorous Mantle</back>
<waist>windbuffet belt</waist>
<legs>Ogier's breeches</legs>
<feet>Rvg. calligae +2</feet>
<rear>Centaurus earring</rear>
<rring>Pyrosoul Ring</rring>
<ammo>Ravager's Orb</ammo>
</set>

<set name="ukkoin">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Ravager's Mask +2</head>
<neck>Nefarious collar</neck>
<body>Grim Cuirass</body>
<hands>Hct. mittens +1</hands>
<back>Rancorous Mantle</back>
<waist>windbuffet Belt</waist>
<legs>Hct. subligar +1</legs>
<feet>Rvg. Calligae +2</feet>
<rear>Centaurus Earring</rear>
<rring>pyrosoul Ring</rring>
<ammo>Ravager's Orb</ammo>
</set>

<set name="ukkocrit" baseset="ukkoin">
<back>Rancorous Mantle</back>
<neck>Thunder gorget</neck>
<legs>ogier's breeches</legs>
</set>

<set name="ukkozerk">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Ravager's Mask +2</head>
<neck>Nefarious collar</neck>
<body>Zahak's mail</body>
<hands>hecatomb mittens +1</hands>
<back>Rancorous Mantle</back>
<waist>windbuffet Belt</waist>
<legs>Hct. subligar +1</legs>
<feet>Rvg. Calligae +2</feet>
<rear>Centaurus Earring</rear>
<rring>Pyrosoul Ring</rring>
<ammo>Ravager's Orb</ammo>
</set>

<set name="ukkozerkcrit" baseset="ukkoin">
<waist>Windbuffet belt</waist>
<neck>Thunder gorget</neck>
<legs>ogier's breeches</legs>
</set>

<set name="fc">
<lear>Brutal Earring</lear>
<lring>Rajas Ring</lring>
<head>Twilight Helm</head>
<neck>Thunder Gorget</neck>
<body>Grim Cuirass</body>
<hands>Rvg. muffler's</hands>
<back>Atheling Mantle</back>
<waist>thunder Belt</waist>
<legs>Avant Cuisses +1</legs>
<feet>dilaram's sollerets</feet>
<rear>centaurus Earring</rear>
<rring>Pyrosoul Ring</rring>
<ammo>Ravager's Orb</ammo>
</set>

<set name="upheav">
<lear>Brutal earring</lear>
<lring>terra's ring</lring>
<head>Rav. mask +2</head>
<neck>apathy gorget</neck>
<body>twilight mail</body>
<hands>War. mufflers +2</hands>
<back>Atheling mantle</back>
<waist>windbuffet belt</waist>
<feet>dilaram's sollerets</feet>
<legs>Ogier's breeches</legs>
<rear>centaurus earring</rear>
<rring>spiral ring</rring>
<ammo>ravager's orb</ammo>
</set>
		
		 
<!--Gear used for Tomahawk-->
<set name="Tomahawk" baseset="engaged">
<ammo>Throwing Tomahawk</ammo>
</set>

<set name="PDT" baseset="engaged">
<lring>Dark Ring</lring>
<lear>darkness earring</lear>
<rear>black earring</rear>
<head>Ogier's helm</head>
<feet>jingang greaves</feet>
<neck>Twilight Torque</neck>
<body>mekira meikogai</body>
<hands>War. Mufflers +2</hands>
<back>Shadow Mantle</back>
<waist>Nierenschutz</waist>
<legs>ogier's breeches</legs>
<rring>Dark Ring</rring>
</set>
</group>
</sets>

<rules>

<if status="Dead">
<cancelspell />
<return />
</if> 

<if spell="Dia">
<if advanced='"$PDT"="0"'>
<action type="var" cmd="set PDT 1" />
<addtochat color="3">PDT set on!</addtochat>
</if>
<elseif advanced='"$PDT"="1"'>
<action type="var" cmd="set PDT 0" />
<addtochat color="5">TP set on!</addtochat>
</elseif>
</if>

<if status="Engaged">
<if advanced='"$PDT"="0"'>
<if notbuffactive="restraint">
<equip when="engaged|aftercast" set="WarriorTPR" />
</if>
<else>
<equip when="engaged|aftercast" set="engaged" />
</else>
</if>
<elseif advanced='"$PDT"="1"'>
<equip when="engaged|aftercast" set="PDT" />
</elseif>
</if> 

<if HPLT="600">
<equip when="Precast|Midcast|Aftercast|Idle">
<precastdelay Delay=".2" />
<head lock="t">Twilight helm</head>
<body lock="t">Twilight mail</body>
</equip>
</if> 

<if type="Weaponskill">
            <if mode="OR" TPLT="100" advanced='%SpellTargetDistance>8' notstatus="engaged">
                <addtochat color="5">Too far away from target, not enough TP or not engaged. Cancelling WS</addtochat>
                <cancelspell/>
                <return />
            </if>
        </if>

		
<if spell="Ukko's Fury" advanced='"%DayElement" = "Light" OR "%DayElement" = "Thunder" OR "%DayElement" = "Wind" OR "%DayElement" = "Fire"'>
<equip when="precast">
<head lock="yes">Mekira-oto +1</head>
</equip>
</if>
		
		
<if type="weaponskill">
    <if buffactive="Visitant">
        <if spell="Ukko's Fury">
            <if buffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Blood Rage">
                    <action type="equip" when="precast" set="ukkozerkcrit" /> <!-- Using Ukko's - Atk+, Crit+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="ukkozerk" /> <!-- Using Ukko's - Atk+ -->
                </else>
            </if>
            <if notbuffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Bloodrage">
                    <action type="equip" when="precast" set="ukkocrit" /> <!-- Using Ukko's - Crit+, no Atk+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="ukkoin" /> <!-- Using Ukko's - No bonuses -->
                </else>
            </if>
    </if>
 
        <if spell="Raging Rush">
            <if buffactive="Berserk|Attack Boost">
                <action type="equip" when="precast" set="rrzerk" /> <!--Using RR - with Atk+ -->
            </if>
            <else>
                <action type="equip" when="precast" set="rr" /> <!-- RR, without Atk+ -->
            </else>
        </if>
 
 
        <if spell="Fell Cleave">
            <action type="equip" when="precast" set="fc" />
        </if>
 
        <if spell="Upheaval">
            <action type="equip" when="precast" set="upheav" />
        </if>
    </if> <!-- Close visitant -->
     
    <elseif notbuffactive="Visitant">
        <if spell="Ukko's Fury">
            <if buffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Blood Rage">
                    <action type="equip" when="precast" set="OUTSIDE_ukkozerkcrit" /> <!-- Using Ukko's - Atk+, Crit+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="OUTSIDE_ukkozerk" /> <!-- Using Ukko's - Atk+ -->
                </else>
            </if>
            <if notbuffactive="Berserk|Attack Boost">
                <if buffactive="Potency|Bloodrage">
                    <action type="equip" when="precast" set="OUTSIDE_ukkocrit" /> <!-- Using Ukko's - Crit+, no Atk+ -->
                </if>
                <else>
                    <action type="equip" when="precast" set="OUTSIDE_ukkoin" /> <!-- Using Ukko's - No bonuses -->
                </else>
            </if>
    </if>
 
        <if spell="Raging Rush">
            <if buffactive="Berserk|Attack Boost">
                <action type="equip" when="precast" set="OUTSIDE_rrzerk" /> <!--Using RR - with Atk+ -->
            </if>
            <else>
                <action type="equip" when="precast" set="OUTSIDE_rr" /> <!-- RR, without Atk+ -->
            </else>
        </if>
 
 
        <if spell="Fell Cleave">
            <action type="equip" when="precast" set="OUTSIDE_fc" />
        </if>
 
        <if spell="Upheaval">
            <action type="equip" when="precast" set="OUTSIDE_upheav" />
        </if>
    </elseif> <!-- Close outside WS's -->
</if>


<if Spell="Tomahawk">
<action type="castdelay" delay=".2" />
<action type="Equip" when="Precast" set="Tomahawk" />
</if>

<if spell="berserk">
<action type="equip" when="precast">
<feet>Warrior's Calligae</feet>
</action>
</if>

<if spell="warcry">
<action type="equip" when="precast">
<head>Warrior's Mask</head>
</action>
</if>

<if spell="aggressor">
<action type="equip" when="precast">
<body>Warrior's Lorica</body>
</action>
</if>

<if spell="restraint">
<action type="equip" when="precast">
<hands>Rvg. Mufflers +2</hands>
</action>
</if>




<if spell="Mighty Strikes">
<action type="equip" when="precast">
<hands>War. Mufflers +2</hands>
</action>
</if>

<if spell="Blood Rage">
<action type="equip" when="precast">
<body>Rvg. Lorica +2</body>
</action>
</if>



<if notstatus="engaged">
<action type="equip" when="idle|aftercast" set="idle" />
</if>

</rules>
</spellcast>