Help With Rules For Equipping Weather/day Gear

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » FFXI » Jobs » Black Mage » Help with rules for equipping weather/day gear
Help with rules for equipping weather/day gear
 Quetzalcoatl.Wizkid
Offline
Server: Quetzalcoatl
Game: FFXI
user: Wizkid
Posts: 46
By Quetzalcoatl.Wizkid 2013-05-27 00:10:21
Link | Quote | Reply
 
Okay so... I've managed to work it out so that twilight back and obi will equip under correct weather, and I have made it so that sorcerer's legs will equip on the right day BUT I can't make it so that both will happen.

If it's water weather and day, only the legs will equip... Help please!

Here is what I have so far:
Code
<elseif mode="and" buffactive="Rainstorm" Element="Water">
			<equip when="midcast">
				<waist lock="yes">Suirin Obi</waist>
				<back lock="yes">Twilight Cape</back>
			</equip>
			<addtochat color="121">Water Obi  and Twilight Cape - Equipped</addtochat>
		</elseif>


Then for the pants:
Code
<if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
		<equip when="midcast">
			<legs lock="yes">Sorcerer's Tonban</legs>
		</equip>
		<addtochat color="121">AF2 Pants - Equipped</addtochat>
	</if>


**I didn't paste the whole section for the twilight cape/obi just because it's the exact same except corresponds to the different elements... don't need to see the same thing 8 times :P
Offline
Posts: 1433
By Chimerawizard 2013-05-27 00:39:33
Link | Quote | Reply
 
try removing the 'else' from <elseif & </elseif>. if it's something else...i don't know enough about the boolean logic & special characters to discern the issue.
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2013-05-27 01:22:53
Link | Quote | Reply
 
On your Cape/Obi section, mode="and" should be mode="or"

That will only work if you have Rainstorm and it's Water day/Weather. I would've just left it scanning elements though, I didn't have any trouble with it.
 Quetzalcoatl.Wizkid
Offline
Server: Quetzalcoatl
Game: FFXI
user: Wizkid
Posts: 46
By Quetzalcoatl.Wizkid 2013-05-27 15:50:18
Link | Quote | Reply
 
@Hitetsu, yes it works if I scan for elemental weather like you had originally, but I still can't get it to equip ALL the gear if there is the day AND the appropriate weather. It will only do one or the other.
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2013-05-28 00:56:48
Link | Quote | Reply
 
Make sure you have these in your variables, with '1' in the slot for all the Obi's you want to use:
Code xml
	<var name="DarkObi">1</var>
	<var name="LightObi">0</var>
	<var name="ThunderObi">1</var>
	<var name="IceObi">1</var>
	<var name="FireObi">0</var>
	<var name="WindObi">0</var>
	<var name="WaterObi">0</var>
	<var name="EarthObi">0</var>


Make sure the conditional rule for your obi's at the top has:
Code xml
<if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>




Mine's always worked fine during Day and weather, though I haven't bothered lugging my AF2 pants around in a long time, so it's possible an update to Spellcast broke something and I've never noticed.
Log in to post.