I got frutrating problem with RNG barrage
here's my snippet code:
Code:
<!-- RULES FOR RNG -->
<action type="equip" set="Idle $WType" when="idle|aftercast"/>
<!-- General ranged attack rule -->
<if spell="ranged">
<midcastdelay delay="0.1" />
<aftercastdelay delay="4.2"/>
<action type="equip" when="precast" set="Idle $WType"/>
<if buffactive="Barrage">
<command>input /echo Shooting Barrage with $WType</command>
<action type="equip" when="midcast" set="Barrage $WType" />
</if>
<else>
<command>input /echo normal shot for $WType</command>
<action type="equip" when="midcast" set="Normal Shooting $WType" />
</else>
</if>
$WType is weapon type, it can be Bow, XBow, or Gun
And my relevant set:
Code:
<set name="Idle">
<head>Sylvan Gapette +2</head>
<neck>Sylvan Scarf</neck>
<lear>Volley Earring</lear>
<rear>Clearview Earring</rear>
<body>Sylvan Caban +2</body>
<hands>Alruna's Gloves</hands>
<lring>Rajas Ring</lring>
<rring>Jalzahn's Ring</rring>
<back>Amemet Mantle +1</back>
<waist>Impulse belt</waist>
<legs>Entois trousers</legs>
<feet>Sylvan Bottln. +2</feet>
</set>
<set name="Idle Bow" baseset="Idle">
<ammo>Scorpion Arrow</ammo>
</set>
...
<set name="Normal Shooting Bow" baseset="Idle">
<hands>Syl. Glvltte. +1</hands>
<waist>Crudelis Belt</waist>
<legs>Sylvan Bragues +2</legs>
</set>
...
<set name="Barrage" baseset="Normal Shooting $WType">
<hands>Htr. Bracers +1</hands>
<legs>Mirador Trousers</legs>
<back>Libeccio Mantle</back>
<feet>Sylvan Bottln. +2</feet>
</set>
<set name="Barrage Bow" baseset="Barrage">
<ammo>Antlion Arrow</ammo>
</set>
Normal shots fire no problem, but when it comes to firing barrage, I got "You do not have an appropriate ranged weapon equipped" error.
But I'm 100% sure the barrage aftercast fires after that
The log displayed something like this:
xx:34:01 Shooting Barrage with Bow
xx:34:01 Equipment changed.
xx:34:05 You do not have an appropriate ranged weapon equipped.
xx:34:07 Equipment changed.