Lock Twilight Sc Issue

Langues: JP EN DE FR
users online
Forum » Windower » Spellcast Scripting » Dark Knight » Lock twilight sc issue
Lock twilight sc issue
 Ragnarok.Zeromega
Offline
Serveur: Ragnarok
Game: FFXI
user: Zeromega
Posts: 400
By Ragnarok.Zeromega 2013-06-15 00:33:29
Link | Citer | R
 
I'm trying to figure out how to lock my twilight set on when the variable is "turned on", i know what i want to do but not how sc works for it... this is where im at:
Code
        <set name="Twilight">
        	<head>Twilight Helm</head>
        	<body>Twilight Mail</body>
        </set>
        <var name="Twilight">None</var>

		<if Equiphead = "Twilight Helm">
			<if advanced='"$Twilight"="On"'>
				<equip when="all">
					<head lock="true" />
					<body lock="true" />
				</equip>
			</if>
		</if>
		<if Equipbody = "Twilight Mail">
			<if advanced='"$Twilight"="On"'>
				<equip when="all">
					<head lock="true" />
					<body lock="true" />
				</equip>
			</if>
		</if>

            <else>
                <if advanced='"$Twilight" = "None"'>
                    <var cmd="set Twilight Twilight"/>
                    <addtochat>Twilight Set Active</addtochat>
                </if>
                <else>
                    <var cmd="set Twilight None"/>
                    <addtochat>Twilight Set Off</addtochat>
                </else>
            </else>



yes this is borrowed from nightfyre's, just trying to modify some things and one problem tends to be when i enable twilight i get caught in a spell or ws...

edit: i think i figured it out just staring at it here....

edit2: <if advanced='"$Twilight"="On"'> needed to be
<if advanced='"$Twilight"="Twilight"'>

ill leave this up for anyone else that wants to know how to lock twilight (head and body both set to cover for salvage etc)
[+]
 Cerberus.Pruviant
Offline
Serveur: Cerberus
Game: FFXI
user: Pruviant
Posts: 24
By Cerberus.Pruviant 2013-06-15 01:53:17
Link | Citer | R
 
This is what I do, I have a Twilight and Blankset in sets with a variable that uses Shining Fantasia as the trigger ... works wonderfully, as long as you have something to update it on gear change like Dancing Chains.

Code
		<!-- Update Gear Rules -->
		<if spell="Dancing Chains">
			<cancelspell />
			<if status="Idle">
				<equip set="%Status|$Twilight" />
			</if>
			<elseif status="Engaged">
				<equip set="$Engaged|$Twilight" /> 
			</elseif>
			<elseif status="Resting">
				<equip set="%Status" />
			</elseif>
		</if>		
		<elseif buffactive="doom|weakness">
			<equip set="Twilight" />
		</elseif>
		<elseif HPPLT="20">
			<equip set="Twilight" />
		</elseif>
				
		<!-- Twilight Rules -->
		<if spell="Shining Fantasia">
			<cancelspell />
			<if advanced='"$Twilight" == "Twilight"'>
				<var cmd="set Twilight Blankset" />
				<addtochat color="8">   ******* Twilight Set Unlocked  ********</addtochat>										
			</if>
			<else>
				<var cmd="set Twilight Twilight" />					
				<addtochat color="121">   ******** Twilight Set Locked  *********</addtochat>
				<addtochat color="121">..............:::(Toggle to Unlock):::..............</addtochat>
			</else>
		</if>		
		<if advanced='"$Twilight"="Twilight"'>
			<action type="equip" set="Twilight" when="precast|midcast|aftercast|engaged|idle" />
		</if>          
		<elseif advanced='"$Twilight"="Blankset"'>
			<action type="equip" set="Blankset" when="precast|midcast|aftercast|engaged|idle" />
		</elseif>
.
.
.
.
.
.
.
        <!-- Aftercast handling -->            
        <if advanced='"%status" != "zoning|dead"'>
            <cmd when="engaged|idle|aftercast">Dancing Chains</cmd>
        </if>
[+]
Log in to post.