COR.xml Bullet Swap

Language: JP EN DE FR
New Items
2020-08-09
users online
Forum » Windower » Spellcast Scripting » Corsair » COR.xml Bullet Swap
COR.xml Bullet Swap
 Odin.Brahk
Offline
Server: Odin
Game: FFXI
user: Brahk
Posts: 46
By Odin.Brahk 2013-12-27 17:45:04
Link | Quote | Reply
 
Hi,

I'm trying to set my ammo equip for weaponskills in my .xml file. Basically what I'm looking to accomplish is if I have Adlivun Bullets on me, I want that to be the bullet that fires during weaponskills. However, there may be times I'd prefer not to waste those (lower content etc). So if I don't have the Adlivun bullets on me, I want it to go to the next bullet (let's just say Titanium Bullets). How would I accomplish this coding? Here's what I've been trying to work with so far.

<if type="WeaponSkill">
<equip when="precast" set="WS" />
<equip when="precast">
<ammo>Adlivun Bullet</ammo>
</equip>
<else>
<equip when="precast">
<ammo>Titanium Bullet</ammo>
</equip>
</else>
</if>

It loads the Adlivun Bullet fine, but I can't get it to load the Titanium bullet. Any thoughts on what I can change? Thanks and much appreciated.

~Brahk
Log in to post.