Weapon Change

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
weapon change
 Quetzalcoatl.Jykia
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-22 13:53:45  
everything in my script works great till i go to fight a monster. its refusing to change my weapon and sub
this is whats in the gear sets:
and in the rules:

it oddly works fine for the guy who helped me with it, but not for me, i checked all the spelling,so thats not the problem. any help would be awesome.
Offline
Posts: 233
By innit 2013-09-22 14:11:23  
You don't appear to have actually told it which set to use, try:
<equip when="idle|engaged|resting|precast|midcast|aftercast" set="TP">
 Quetzalcoatl.Jykia
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-22 14:43:56  
well.. lol that would make a huge difference. thank you
 Quetzalcoatl.Jykia
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-22 20:37:39  
still not changing my weapons over
 Fenrir.Deiago
Offline
サーバ: Fenrir
Game: FFXI
user: Deiago
Posts: 6
By Fenrir.Deiago 2013-09-22 21:14:30  
Don't forget the the closing / tag at the end. Mine won't even load w/o it. And make sure you are reloading it in the windower after you change the xml file.

<equip when="idle|engaged|resting|precast|midcast|aftercast" set="TP"/>
 Quetzalcoatl.Jykia
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-23 15:45:16  
oddly it loads fine, just didnt like changing my weapon/sub. would change everything else but.
added the tag, will try it out when i get on tonight
 Ragnarok.Flippant
Offline
サーバ: Ragnarok
Game: FFXI
user: Enceladus
Posts: 660
By Ragnarok.Flippant 2013-09-23 20:44:05  
Might not necessarily be an issue with the information you provided. Can you paste all of your rules?

Also, you should not use a self-closing tag like above. Yours loads fine because you have </equip> later in the code; he likely didn't copy and paste the locks.
 Quetzalcoatl.Jykia
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-25 19:19:20  
rule set:
 Quetzalcoatl.Sanriku
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: Sanriku
Posts: 75
By Quetzalcoatl.Sanriku 2013-09-25 20:10:51  
Ok, first... use code and not spoiler.

Second, you need to pay closer attention to your closing tags and what your rules are doing.

Try this:

Also, may need to post your full spellcast, as I don't know if any of those sets exist or if you have variables for something that I'm not seeing.

Hope this helps.
 Quetzalcoatl.Jykia
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-25 23:40:17  
this is the whole thing as it was given to me, all i did was add the gear i have
Code
   
 <?xml version="1.0" ?>
    <spellcast>
    <config
   Debug="false"
   ShowGearSwaps="false"
   NormalSet="IDLE"
   RestingSet="REST"
   EngagedSet="TP"
   />
    <!-- Updated May, 22nd 2012.
        * Added Variables for Light Obi and Sleep/Repose Timer echos
         * Fixed issue where sneak cancel wasn't working
         * Added Cure Set and rule for Cure 5 & 6 for MND build -->
     
    <sets>
    <group name="WHM" default="Yes">
    <set name="IDLE">                
		<body>Orison Bliaud +2</body>                         
    </set>
     
    <set name="REST">
		<main>Dark Staff</main>
		<body>Orison Bliaud +2</body>
    </set>
 
    <!-- This set is for Cure - Cure IV for Healing magic skill build -->
    <set name="CURE">
		<main>Arka IV</main>
		<sub>Curatio Grip</sub>                         
		<head>Gendewitha caubeen</head>
		<neck>Orison Necklace</neck>
		<body>Orison Bliaud +2</body>
		<hands>Bokwus Gloves</hands>
		<waist>Witful Belt</waist>
		<legs>Orison Pantaloons +2</legs>
		<feet>Gendewitha galoshes</feet>
    </set>
 
    <!-- This set is for Cure V & VI for MND build -->
    <set name="HIGHCURE">
		<main>Arka IV</main>
		<sub>Curatio Grip</sub>                         
		<head>Gendewitha caubeen</head>
		<neck>Orison Necklace</neck>
		<body>Orison Bliaud +2</body>
		<hands>Bokwus Gloves</hands>
		<waist>Witful Belt</waist>
		<legs>Orison Pantaloons +2</legs>
		<feet>Gendewitha galoshes</feet>
    </set>
     
	 <set name="DIVINE">
		<main>Arka IV</main>
		<sub>Curatio Grip</sub>                         
		<head>Gendewitha caubeen</head>
		<neck>Orison Necklace</neck>
		<body>Orison Bliaud +2</body>
		<hands>Bokwus Gloves</hands>
		<waist>Witful Belt</waist>
		<legs>Orison Pantaloons +2</legs>
		<feet>Gendewitha galoshes</feet>
    </set>
	
	 <!--Pre Cure Set-->
    <set name="CURETIME" BaseSet="CURE">		
		<neck>Orison Locket</neck>
		<legs>Orsn. Pantaln. +2</legs>
    </set>
    <set name="MNDENF">    
		<head>Orison Cap +2</head>
		<neck>Enfeebling Tourque</neck>
		<rear>Loquac. Earring</rear>
		<hands>Bokwus Gloves</hands>		    
		<feet>Orsn. Duckbills +2</feet>
    </set>
    <set name="MACCENF" BaseSet="MNDENF">
		<head>Orison Cap +2</head>
		<neck>Enfeebling Tourque</neck>
		<rear>Loquac. Earring</rear>
		<hands>Bokwus Gloves</hands>		    
		<feet>Orsn. Duckbills +2</feet>
    </set>
        
    <set name="Curaga">
		<main>Arka IV</main>
		<sub>Curato Grip</sub>                         
		<head>Gendewitha caubeen</head>
		<neck>Orison Necklace</neck>
		<body>Heka's kalasiris</body>
		<hands>Bokwus Gloves</hands>
		<waist>Witful Belt</waist>
		<legs>Orison Pantaloons +2</legs>
		<feet>Gendewitha galoshes</feet>
    </set>
 
    <set name="REGEN">
		<head>Marduk's Tiara +1</head>
		<body>Cleric's Briault +2</body>
		<hands>Orison Mitts +2</hands>
    </set>
    <set name="BAR">
		<main>Beneficus</main>
		<head>Orison Cap +2</head>
		<body>Orison Bliaud +2</body>
		<legs>Cleric's Pantaloons +2</legs>                
		<feet>Orison Duckbills +2</feet>
    </set>
    <set name="ERASE">    
		<head>Orison Cap +2</head>    
    </set>
	
    <set name="TP">
		<main>Gambanteinn</main>
		<sub>Genbu's Shield</sub>
		<body>Sublime Breastplate</body>
		<neck>Chrysopoeia Torque</neck>
		<waist>Paewr Belt</waist>
		<legs>Tatsumaki Sitagoromo</legs>
    </set>
	<set name="STONESKIN">
		<waist>Siegel Sash</waist>
	</set>
	
    <set name="WS">
		<slot>example</slot>
    </set>
    <set name="WSFN" BaseSet="WS">
		<slot>example</slot>
    </set>
     
    <set name="TOWN">
		<body>Orison Bliaud +2</body>                
		<legs>Tatsumaki Sitagoromo</legs>
    </set>    
    </group>
    </sets>
	
	
    <variables>    
    <var name="Staff-Cures">Arka IV</var>
    </variables>
	
<rules>
  <if Spell="Warp*|Teleport*|Recall*|Retrace|Escape">
    <return />
    </if>    
	
    <if status="Engaged">
        <equip when="idle|engaged|resting|precast|midcast|aftercast" set="TP">    	
		    <main lock="t" />   
		    <sub lock="t" />
        </equip>
    </if>
 
    <if NotStatus="Engaged">
    <if Area="Port*|*Adoulin|Ru'Lude*">
    <action type="Equip" when="idle|engaged|resting|precast|midcast|aftercast" set="Town" />
    </if>
    <else>
    <action type="equip" when="aftercast" set="IDLE"/>
    </else>
    </if>
    <else>
    <action type="equip" when="aftercast" set="TP"/>
    </else>
       
        <if Skill="HealingMagic">
    <if spell="cure|cure II|cure III|cure IV|cure V|cure VI">
    <equip when="precast" set="CURETIME" />
    <equip when="midcast" set="CURE" />
        </if>
       
    <elseif spell="cura*">
    <equip when="precast" set="CURETIME" />
    <equip when="midcast" set="Curaga" />
    </elseif>  
    </if>
       
    <elseif Skill="EnhancingMagic">
    <if spell="Haste|Refresh|Protect*|Shell*|Aquaveil|Blink|Boost*|Auspice">
    <equip when="precast" set="CURE" />
    </if>      
       
    <elseif spell="Bar*">
    <equip when="precast" set="BAR" />
    </elseif>
       
    <elseif spell="Erase">
    <equip when="precast" set="ERASE" />
    </elseif>
       
    <elseif spell="Regen*">
    <equip when="precast" set="REGEN" />
    </elseif>
       
        <elseif spell="Stoneskin">
    <equip when="precast" set="STONESKIN" />
    </elseif>
        </elseif>
       
    <elseif skill="EnfeeblingMagic">
    <if spell="Slow|Paralyze">
    <equip when="precast" set="MNDENF" />
    </if>      
       
    <elseif spell="Sleep*|Blind|Bind">
    <equip when="precast" set="INTENF" />
    </elseif>
       
    <else>
    <equip when="precast" set="MACCENF" />
    </else>
        </elseif>
       
    <elseif skill="DivineMagic">
    <equip when="precast" set="DIVINE" />
	
    <if spell="Repose">
    <equip when="precast" set="REPOSE" />
    </if>
    </elseif>
       
    <if spell="Divine Caress">
    <equip when="precast|midcast|aftercast">
    <hands>Orison Mitts +2</hands>
    </equip>
    </if>
       
    <elseif spell="Divine Seal">
    <equip when="precast|midcast|aftercast">
    <head>Orison Cap +2</head>
    <legs>Orsn. Pantaln. +2</legs>
    </equip>
    </elseif>
       
 </rules>
 </spellcast>
 Quetzalcoatl.Sanriku
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: Sanriku
Posts: 75
By Quetzalcoatl.Sanriku 2013-09-26 00:23:41  
ok... I rewrote the full xml, and cleaned it up a bit... try this:
 Quetzalcoatl.Jykia
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-26 00:50:22  
that caused a:
spellcast: error in Expression: Syntax error at position 0 near $tplock


it did change the gear, but didnt lock it in
 Quetzalcoatl.Sanriku
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: Sanriku
Posts: 75
By Quetzalcoatl.Sanriku 2013-09-26 09:57:05  
did you copy the variables section as well? Its not necessary to use a variable for it, its just easier to locate and change if you wanted to raise/lower it.

You could easily just change the rule to:
Code
<if TPGT="10">
                <equip when="precast|midcast|aftercast|engaged|idle"> 
                    <main  lock="t" />
                    <sub   lock="t" />
                    <range lock="t" />
                </equip>
            </if>


And not use the variable. But if you did use the full xml that I posted, there shouldn't be any issues with it reading that.