WS Gear Only Changing When I Am Not Engaged

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Spellcast Scripting » Other » WS gear only changing when I am not engaged
WS gear only changing when I am not engaged
 Valefor.Jakers
Offline
サーバ: Valefor
Game: FFXI
Posts: 4
By Valefor.Jakers 2013-03-18 06:27:07  
Can anyone help me with my spellcast? I have looked through many spellcast and have cobbled together a simple one for farming dyna on bst. However my weapsonskill gear swap does not work when I am enagaged, only when I am not> can anyone tell me where I am going wrong.

Thanks

<?xml version="1.0" ?>

<spellcast>
<config RequiredVersion="2.22" />
<variables clear="True">


<!-- Engaged Set Rule -->
<var name="Attack">Normal</var> <!-- Normal, Evasion -->
</variables>
<sets>
<group name="BST" default="yes">
<set name="Normal">
<main></main>
<sub></sub>
<ammo>Pet Food Theta</ammo>
<head>Ocelo. Headpiece</head>
<neck>Rancor Collar</neck>
<lear>Brutal Earring</lear>
<rear>Suppanomimi</rear>
<body>Porthos Byrnie</body>
<hands>Ocelot Gloves</hands>
<lring>Rajas Ring</lring>
<rring>Spiral Ring</rring>
<back>Atheling Mantle</back>
<waist>Twilight belt</waist>
<legs>Ferine Quijotes +2</legs>
<feet>Monster Gaiters +2</feet>
</set>

<set name="Idle" Baseset="$Attack">
<head>Twilight Helm</head>
<body>Twilight Mail</body>
<neck>Orochi Nodowa</neck>
</set>
<set name="Reward">
<head>Twilight Helm</head>
<body>Twilight Mail</body>
<hands>Ogre Gloves</hands>
<feet>Monster Gaiters +2</feet>
</set>

<set name="Attack" Baseset="$Normal">
<head>Ocelo. Headpiece</head>
<neck>Rancor Collar</neck>
<lear>Brutal Earring</lear>
<rear>Suppanomimi</rear>
<body>Porthos Byrnie</body>
<hands>Ocelot Gloves</hands>
<lring>Rajas Ring</lring>
<rring>Spiral Ring</rring>
<back>Atheling Mantle</back>
<waist>Twilight belt</waist>
<legs>Ferine Quijotes +2</legs>
<feet>Monster Gaiters +2</feet>
</set>

<set name="Ruinator" Baseset="$Attack">
<head>Twilight Helm</head>
<body>Twilight Mail</body>
<neck>Breeze Gorget</neck>
<hands>Frn. Manoplas +2</hands>
<waist>Snow Belt</waist>
<legs>Dux Cuisses</legs>
<feet>Monster Gaiters +2</feet>
</set>

</group>
</sets>

<rules>

<if Status="engaged">
<action type="equip" when="aftercast|idle|engaged" set="$Attack" />
</if>
<if NotStatus="engaged">
<action type="equip" when="aftercast|idle" set="Idle" />



<if Spell="Ruinator">
<equip set="Ruinator" when ="precast" />
</if>


</if>
</rules>
</spellcast>
 Ragnarok.Martel
Offline
サーバ: Ragnarok
Game: FFXI
Posts: 2122
By Ragnarok.Martel 2013-03-18 06:50:20  
your ws rule is inside your idle rule. that's why.
Code
<rules>

<if Status="engaged">
<action type="equip" when="aftercast|idle|engaged" set="$Attack" />
</if>
<if NotStatus="engaged"><!-- Idle rule starts -->
<action type="equip" when="aftercast|idle" set="Idle" />
<!-- adding a </if> here and removing the idle end /if
 would fix this -->

<if Spell="Ruinator">
<equip set="Ruinator" when ="precast" />
</if>


</if><!--Idle rule end. -->
</rules>


Fixed version
Code
<rules>
	<if Status="engaged">
		<action type="equip" when="aftercast|idle|engaged" set="$Attack" />
	</if>
	<if NotStatus="engaged">
		<action type="equip" when="aftercast|idle" set="Idle" />
	</if>
	<if Spell="Ruinator">
		<equip set="Ruinator" when ="precast" />
	</if>
</rules>
[+]
 Sylph.Hitetsu
Offline
サーバ: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2013-03-18 06:51:11  
<if NotStatus="engaged">
<action type="equip" when="aftercast|idle" set="Idle" />

<if Spell="Ruinator">
<equip set="Ruinator" when ="precast" />
</if>


Need an </if> after your "notstatus" check.

<if NotStatus="engaged">
<action type="equip" when="aftercast|idle" set="Idle" />
</if>
 Valefor.Jakers
Offline
サーバ: Valefor
Game: FFXI
Posts: 4
By Valefor.Jakers 2013-03-18 17:49:29  
Thank you both for the fix, works perfectly now.

Cheers
Log in to post.