Weapon Change

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » Windower » Spellcast Scripting » White Mage » weapon change
weapon change
 Quetzalcoatl.Jykia
Offline
Server: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-22 13:53:45
Link | Quote | Reply
 
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
Link | Quote | Reply
 
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
Server: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-22 14:43:56
Link | Quote | Reply
 
well.. lol that would make a huge difference. thank you
 Quetzalcoatl.Jykia
Offline
Server: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-22 20:37:39
Link | Quote | Reply
 
still not changing my weapons over
 Fenrir.Deiago
Offline
Server: Fenrir
Game: FFXI
user: Deiago
Posts: 6
By Fenrir.Deiago 2013-09-22 21:14:30
Link | Quote | Reply
 
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
Server: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-23 15:45:16
Link | Quote | Reply
 
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
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 660
By Ragnarok.Flippant 2013-09-23 20:44:05
Link | Quote | Reply
 
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
Server: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-25 19:19:20
Link | Quote | Reply
 
rule set:
 Quetzalcoatl.Sanriku
Offline
Server: Quetzalcoatl
Game: FFXI
user: Sanriku
Posts: 75
By Quetzalcoatl.Sanriku 2013-09-25 20:10:51
Link | Quote | Reply
 
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
Server: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-25 23:40:17
Link | Quote | Reply
 
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
Server: Quetzalcoatl
Game: FFXI
user: Sanriku
Posts: 75
By Quetzalcoatl.Sanriku 2013-09-26 00:23:41
Link | Quote | Reply
 
ok... I rewrote the full xml, and cleaned it up a bit... try this:
 Quetzalcoatl.Jykia
Offline
Server: Quetzalcoatl
Game: FFXI
user: jykia
Posts: 22
By Quetzalcoatl.Jykia 2013-09-26 00:50:22
Link | Quote | Reply
 
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
Server: Quetzalcoatl
Game: FFXI
user: Sanriku
Posts: 75
By Quetzalcoatl.Sanriku 2013-09-26 09:57:05
Link | Quote | Reply
 
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.
Log in to post.