Thanks Yugl!
Thanks Yugl!
Thanks for the link, I tried getting the NIN one first and changed some stuff around in it. I must have broken something because every time I try to perform an action with the spellcast loaded it just shifts gear a lot and then doesn't perform the action.
Any help would be appreciated. Thanks.
Code:<?xml version="1.0" ?> <spellcast> <config Debug="false" ShowGearSwaps="false" /> <variables clear="false"> <var name="DayOrNight">Day</var> <var name="MH">no</var> </variables> <sets> <group name="NIN" default="yes"> <!--Gear melee standard--> <set name="IDLEDAY"> <ammo>Demonry Stone</ammo> <head>Arhat's Jinpachi +1</head> <neck>Twilight Torque</neck> <rear>Merman's Earring</rear> <lear>Mujin Stud</lear> <body>Arhat's Gi +1</body> <hands>Denali Wristbands</hands> <lring>Dark Ring</lring> <rring>Dark Ring</rring> <back>Boxer's Mantle</back> <waist>Lieutenant's Sash</waist> <legs>Desultor Tassets</legs> <feet>Danzo Sune-Ate</feet> </set> <set name="IDLENIGHT" BaseSet="IDLEDAY"> <feet>Nin. Kyahan +1</feet> </set> <set name="TP"> <ammo>Qirmiz Tathlum</ammo> <head>Iga Zukin +2</head> <neck>Rancor Collar</neck> <lear>Suppanomimi</lear> <body>Thaumas Coat</body> <hands>Kog. Tekko +2</hands> <rear>Brutal Earring</rear> <rring>Rajas Ring</rring> <lring>Epona's Ring</lring> <back>Atheling Mantle</back> <feet>Usk. Sune-Ate +1</feet> <legs>Usk. Hizayoroi +1</legs> <waist>Patentia Sash</waist> </set> <set name="MarchTP"> <ammo>Qirmiz Tathlum</ammo> <head>Usk. Somen +1</head> <neck>Rancor Collar</neck> <lear>Suppanomimi</lear> <body>Thaumas Coat</body> <hands>Kog. Tekko +2</hands> <rear>Brutal Earring</rear> <rring>Rajas Ring</rring> <lring>Epona's Ring</lring> <back>Atheling Mantle</back> <feet>Usk. Sune-Ate +1</feet> <legs>Usk. Hizayoroi +1</legs> <waist>Windbuffet Belt</waist> </set> <set name="TownDAY" BaseSet="TP"> <ammo>Demonry Stone</ammo> <head>Arhat's Jinpachi +1</head> <neck>Twilight Torque</neck> <rear>Merman's Earring</rear> <lear>Mujin Stud</lear> <body>Arhat's Gi +1</body> <hands>Denali Wristbands</hands> <lring>Dark Ring</lring> <rring>Dark Ring</rring> <back>Boxer's Mantle</back> <waist>Lieutenant's Sash</waist> <legs>Desultor Tassets</legs> <feet>Danzo Sune-Ate</feet> </set> <set name="TownNight" BaseSet="TownDAY"> <feet>Nin. Kyahan +1</feet> </set> <set name="WS"> <ammo>Qirmiz Tathlum</ammo> <head>Thaumas Hat</head> <neck>Hope Torque</neck> <rear>Moonshade Earring</rear> <lear>Brutal Earring</lear> <body>Athos's Tabard</body> <hands>Seiryu's Kote</hands> <lring>Epona's Ring</lring> <rring>Stormsoul Ring</rring> <back>Atheling Mantle</back> <waist>Anguinus Belt</waist> <legs>Tenryu Hakama +1</legs> <feet>Thaumas Nails</feet> </set> <set name="HIAby" BaseSet="WS"> <ammo>Qirmiz Tathlum</ammo> <head>Thaumas Hat</head> <neck>Hope Torque</neck> <rear>Moonshade Earring</rear> <lear>Brutal Earring</lear> <body>Athos's Tabard</body> <hands>Seiryu's Kote</hands> <lring>Epona's Ring</lring> <rring>Stormsoul Ring</rring> <back>Atheling Mantle</back> <waist>Anguinus Belt</waist> <legs>Tenryu Hakama +1</legs> <feet>Thaumas Nails</feet> </set> <set name="HINoAby" BaseSet="HIAby"> <ammo>Qirmiz Tathlum</ammo> <head>Thaumas Hat</head> <neck>Hope Torque</neck> <rear>Moonshade Earring</rear> <lear>Brutal Earring</lear> <body>Athos's Tabard</body> <hands>Thaumas Gloves</hands> <lring>Epona's Ring</lring> <rring>Stormsoul Ring</rring> <back>Atheling Mantle</back> <waist>Anguinus Belt</waist> <legs>Tenryu Hakama +1</legs> <feet>Thaumas Nails</feet> </set> <set name="AEOLIAN" BaseSet="WS"> </set> <set name="Shun"> <ammo>Qirmiz Tathlum</ammo> <head>Iga Zukin +2</head> <neck>Thunder Gorget</neck> <rear>Moonshade Earring</rear> <lear>Brutal Earring</lear> <body>Iga Ningi +2</body> <hands>Thaumas Gloves</hands> <lring>Epona's Ring</lring> <rring>Rajas Ring</rring> <back>Atheling Mantle</back> <waist>Thunder Belt</waist> <legs>Tenryu Hakama +1</legs> <feet>Thaumas Nails</feet> </set> <set name="Kamu"> <ammo>Qirmiz Tathlum</ammo> <head>Usk. Somen +1</head> <neck>Thunder Gorget</neck> <rear>Merman's Earring</rear> <lear>Brutal Earring</lear> <body>Iga Ningi +2</body> <hands>Koga Tekko +2</hands> <lring>Rajas Ring</lring> <rring>Epona's Ring</rring> <back>Atheling Mantle</back> <waist>Thunder Belt</waist> <legs>Tenryu Hakama +1</legs> <feet>Dilaram's Sollerets</feet> </set> <!--Magic damage--> <set name="MDT"> <ammo>Demonry Stone</ammo> <head>Suijin Kabuto</head> <neck>Twilight Torque</neck> <rear>Merman's Earring</rear> <lear>Mujin Stud</lear> <body>Thaumas Coat</body> <hands>Denali Wristbands</hands> <lring>Dark Ring</lring> <rring>Dark Ring</rring> <back>Mollusca Mantle</back> <waist>Lieutenant's Sash</waist> <legs>Kog. Hakama +2</legs> <feet>Suzaku's Sune-Ate</feet> </set> <set name="PDT"> <ammo>Qirmiz Tathlum</ammo> <head>Arhat's Jinpachi +1</head> <neck>Twilight Torque</neck> <rear>Suppanomimi</rear> <lear>Brutal Earring</lear> <body>Arhat's Gi +1</body> <hands>Denali Wristbands</hands> <lring>Dark Ring</lring> <rring>Dark Ring</rring> <back>Mollusca Mantle</back> <waist>Twilight Belt</waist> <legs>Desultor Tassets</legs> <feet>Usk. Sune-Ate +1</feet> </set> <set name="EVA" BaseSet="TP"> <ammo>Qirmiz Tathlum</ammo> <head>Usk. Somen +1</head> <neck>Iga Erimaki</neck> <rear>Suppanomimi</rear> <lear>Iga Mimikazari</lear> <body>Athos's Tabard</body> <hands>Thaumas Gloves</hands> <lring>Alert Ring</lring> <rring>Stormsoul Ring</rring> <back>Boxer's Mantle</back> <waist>Nusku's Sash</waist> <legs>Kog. Hakama +2</legs> <feet>Athos's Boots</feet> </set> <set name="Precast"> <ammo>Impatiens</ammo> <head>Athos's Chapeau</head> <neck>Orunmila's Torque</neck> <rear>Loquac. Earring</rear> <lear>Ethereal Earring</lear> <body>Mirke Wardecors</body> <hands>Thaumas Gloves</hands> <lring>Prolix Ring</lring> <rring>Alert Ring</rring> <back>Mujin Mantle</back> <waist>Twilight Belt</waist> <legs>Iga Hakama +2</legs> <feet>Iga Kyahan +2</feet> </set> <set name="PrecastU"> <ammo>Impatiens</ammo> <head>Athos's Chapeau</head> <neck>Magoraga Beads</neck> <rear>Loquac. Earring</rear> <lear>Ethereal Earring</lear> <body>Mirke Wardecors</body> <hands>Thaumas Gloves</hands> <lring>Prolix Ring</lring> <rring>Alert Ring</rring> <back>Mujin Mantle</back> <waist>Twilight Belt</waist> <legs>Iga Hakama +2</legs> <feet>Iga Kyahan +2</feet> </set> <set name="UTSU"> <ammo>Impatiens</ammo> <head>Athos's Chapeau</head> <neck>Magoraga Beads</neck> <lear>Ethereal Earring</lear> <rear>Loquac. Earring</rear> <body>Usukane Haramaki</body> <hands>Thaumas Gloves</hands> <legs>Thaumas Kecks</legs> <back>Boxer's Mantle</back> <feet>Iga Kyahan +2</feet> </set> <set name="Buff"> <ammo>Impatiens</ammo> <head>Athos's Chapeau</head> <neck>Orunmila's Torque</neck> <rear>Loquac. Earring</rear> <lear>Ethereal Earring</lear> <body>Mirke Wardecors</body> <hands>Koga Tekko +2</hands> <lring>Prolix Ring</lring> <rring>Alert Ring</rring> <back>Mujin Mantle</back> <waist>Twilight Belt</waist> <legs>Iga Hakama +2</legs> <feet>Iga Kyahan +2</feet> </set> <set name="Nuke"> <ammo>Impatiens</ammo> <head>Thaumas Hat</head> <neck>Ninjutsu Torque</neck> <rear>Loquac. Earring</rear> <lear>Stealth Earring</lear> <body>Mirke Wardecors</body> <hands>Iga Tekko +2</hands> <lring>Dark Ring</lring> <rring>Dark Ring</rring> <back>Astute Cape</back> <waist>Cimmerian Sash</waist> <legs>Iga Hakama +2</legs> <feet>Kog. Kyahan +2</feet> </set> <set name="ENMITY"> <head>Arhat's Jinpachi +1</head> <body>Arhat's Gi +1</body> <feet>Usk. Sune-Ate +1</feet> </set> <set name="NINJUTSU"> <ammo>Impatiens</ammo> <head>Nin. Hatsuburi +1</head> <neck>Ninjutsu Torque</neck> <rear>Loquac. Earring</rear> <lear>Stealth Earring</lear> <body>Mirke Wardecors</body> <hands>Kog. Tekko +2</hands> <lring>Prolix Ring</lring> <rring>Dark Ring</rring> <back>Astute Cape</back> <waist>Cimmerian Sash</waist> <legs>Iga Hakama +2</legs> <feet>Kog. Kyahan +2</feet> </set> <set name="gearup"> <item>Linkshell</item> <item>Echo Drops</item> <item>shihei</item> <item>Iga Ningi +2</item> <item>Iga Hakama +2</item> <item>Chatoyant Staff</item> </set> </group> </sets> <rules> <if mode="OR" TimeLT="7.00" TimeGT="16.59"> <var cmd="set DayOrNight Night" /> </if> <else> <var cmd="set DayOrNight Day" /> </else> <if spell="autoset"> <if area="*Windurst*|Heavens*|*San d'Oria*|Chateau*|*Bastok*|Metalworks|*Jeuno*|Ru'Lude*|*Whitegate|Al Zahbi|Chocobo*|*Colosseum|Selbina|Mhaura|Kazham|Norg|Tavnazia*" notarea="Dynamis*|*[S]" notbuffactive="Besieged"> <action type="Equip" when="idle|engaged|resting|precast|midcast|aftercast" set="Town$DayorNight" /> </if> <else> <action type="equip" when="idle" set="IDLE$DayorNight"/> </else> <action type="equip" when="engaged" set="TP"/> </if> <if NotStatus="Engaged"> <if area="*Windurst*|Heavens*|*San d'Oria*|Chateau*|*Bastok*|Metalworks|*Jeuno*|Ru'Lude*|*Whitegate|Al Zahbi|Chocobo*|*Colosseum|Selbina|Mhaura|Kazham|Norg|Tavnazia*" notarea="Dynamis*|*[S]" notbuffactive="Besieged"> <action type="Equip" when="idle|engaged|resting|precast|midcast|aftercast" set="Town$DayorNight" /> </if> <else> <action type="equip" when="aftercast" set="IDLE$DayOrNight" /> </else> </if> <else> <if BuffActive="March|March"> <action type="equip" when="aftercast" set="MarchTP" /> </if> <else> <action type="equip" when="aftercast" set="TP" /> </else> </else> <!--Magic--> <if Skill="Ninjutsu"> <if spell="Utsusemi*"> <equip when="precast" set="PrecastU" /> <equip when="midcast" set="UTSU" /> </if> <if spell="Migawari*"> <equip when="precast" set="Precast" /> <equip when="midcast" set="UTSU" /> </if> <if spell="Katon*|Suiton*|Raiton*|Doton*|Huton*|Hyoton*"> <equip when="precast" set="Precast" /> <equip when="midcast" set="Nuke" /> </if> <if spell="Myoshu*|Kakka*|Monomi*|Tonko*"> <equip when="precast" set="Precast" /> <equip when="midcast" set="Buff" /> </if> <else> <equip when="precast" set="Precast" /> <equip when="midcast" set="NINJUTSU" /> </else> </if> <!--Weapon skills--> <if type="WeaponSkill"> <if spell="Blade: Hi"> <if Area="Abyssea*"> <equip when="precast" set="HIAby" /> </if> <else> <equip when="precast" set="HINoAby" /> </else> </if> <elseif spell="Blade: Shun"> <equip when="precast" set="Shun" /> </elseif> <elseif spell="Blade: Kamu"> <equip when="precast" set="Kamu" /> </elseif> <elseif spell="Aeolian Edge"> <equip when="precast" set="AEOLIAN" /> </elseif> <else> <equip when="precast" set="WS" /> </else> </if> <!--JAs--> <if spell="Provoke"> <equip when="precast" set="ENMITY" /> </if> <elseif spell="Yonin"> <equip when="precast"> <legs>Iga Hakama +2</legs> </equip> </elseif> <elseif spell="Innin"> <equip when="precast"> <head>Iga Zukin +2</head> </equip> </elseif> <elseif spell="Futae"> <equip when="precast"> <hands>Iga Tekko +2</hands> </equip> </elseif> <elseif spell="Spectral Jig"> <command when="PreCast">cancel 71</command> </elseif> </rules> </spellcast>
Is there no longer an online collection of SC scripts one could peruse for some ideas? Or is this thread about as close as I'll find?
While the xmls found in the link provided below are old, they can give ideas if you're making one from scratch. They also are a simple format and pretty easy to follow for less advanced users that may have trouble at first understanding the complexity of say Yugl's or Mot's scripts(it's like reading chinese for me).
http://wiki.windower.net/display/SC/Home
So i've been crashing lately when I zone and my friend told me it could be due to spellcast swapping gear during the zone. He said there was a command to prevent that, any idea what it is? Could it possibly be Blinkmenot fucking with me too?
If you meant when you teleport/escape/warp, try
<if Spell="Teleport*|Escape|Warp">
<return />
</if>
Place this rule before the rest of the rules.
Looks like that if I used Impetus then WS right away, it wouldn't switch for that WS nor any WS thereafter, but if I waited a few seconds after activation, then it was actually changing into the correct gear? Lol. Thank you, though. Gonna try adding that tonight to spellcast.
Attempting to add some melee stuff into my mage spellcasts, and for some reason after I ws or do anything on sch, it immediately reverts back to my idle set while im still engaged and I can't figure out why. I'm sure its something pretty stupid I've missed. Its also not equiping my flame belt for realmrazer, which doesn't make any sense why it wouldn't equip it. SC is so confusing sometimesThanks!
http://pastebin.com/ttXvYeHy
A few reasons:
Basically, these keep equipping post-cast if you have buffs active. You need to enclose them within <if notStatus="Engaged"> to get this to work. The Flame Belt may be a resources error.Code:<!--Sublimation--> <if buffactive="Sublimation: Activated"> <equip when="Idle|Aftercast" set="Sublimation" /> </if> <!-- set of gear to equip when Addendum: Black is active and finished casting a spell or coming back from resting mp (idle set) --> <if buffactive="Addendum: Black"> <equip when="Idle|Aftercast" set="BLM_Mode" /> </if> <!-- set of gear to equip when Addendum: White is active and finished casting a spell or coming back from resting mp (idle set) --> <elseif buffactive="Addendum: White"> <equip when="Idle|Aftercast" set="WHM_Mode" /> </elseif> <else> <equip when="Idle|Aftercast" set="WHM_Mode" /> </else> <!-- set of gear to equip when resting --> <equip when="Resting" set="Resting" /> <!--set gear for + movement during sandstorms --> <if buffactive="Sandstorm"> <equip when="Idle|Aftercast" set="Sandstorm" /> </if> <if spell = "Sandstorm"> <equip when ="Aftercast" set="Sandstorm" /> </if>
I'll try that thanks! The flame belt worked earlier on my whm I could have sworn, but I'll check again. Appreciate the help so much Yugl!
I need some help with making my spellcast equip Sao. Sune-Ate +2 when I 1 hour. What I have currently works sometimes but isn't consistent, I've tried a few different methods but haven't managed to get solid consistency.
Part in question:
Entire xmlCode:<elseif type="WeaponSkill"> <castdelay delay="$Delay-JA" /> <if Buffactive="Meikyo Shisui"> <equip when="precast"> <feet Lock="True">Sao. Sune-Ate +2</feet> </equip> </if> <elseif Buffactive="Sengikori" notBuffactive="Meikyo Shisui"> <equip when="precast"> <feet Lock="True">Unkai Sune-ate +2</feet> </equip> </elseif> <elseif Buffactive="Sekkanoki"> <equip when="precast"> <hands Lock="True">Unkai Kote +2</hands> </equip> </elseif> <elseif spell="Tachi: Shoha"> <equip set="%Spell-$VAR-WS|$Twilightset" /> <if Buffactive="Meikyo Shisui"> <equip set="%Spell-$VAR-WS|$Twilightset" /> </if> </elseif> <elseif spell="Tachi: Fudo"> <if day="Earthsday|Darksday"> <var cmd="set shura shura" /> </if> <else> <var cmd="set shura BlankSet" /> </else> <equip set="%Spell-$VAR-WS|$shura|$Twilightset" /> <if Buffactive="Meikyo Shisui"> <equip set="%Spell-$VAR-WS|$shura|$Twilightset" /> </if> </elseif> <elseif Spell="Tachi: Kasha|Tachi: Gekko|Tachi: Rana|Tachi: Jinpu|Requiescat|Stardiver"> <equip set="%Spell|$Twilightset" /> </elseif> <else> <equip set="WS Base|$Twilightset" /> </else> <action type="Command" when="aftercast">input /echo %spell TP return: <tp></action> </elseif>
Since the code begins with <If Buffactive="Meikyo"> and the rest use <elseif>, anytime you have Meikyo up (May be some delay), you'll equip the feet, but avoid WS gear.Code:<elseif type="WeaponSkill"> <castdelay delay="$Delay-JA" /> <if Buffactive="Meikyo Shisui"> <equip when="precast"> <feet Lock="True">Sao. Sune-Ate +2</feet> </equip> </if> <elseif Buffactive="Sengikori" notBuffactive="Meikyo Shisui"> <equip when="precast"> <feet Lock="True">Unkai Sune-ate +2</feet> </equip> </elseif> <elseif Buffactive="Sekkanoki"> <equip when="precast"> <hands Lock="True">Unkai Kote +2</hands> </equip> </elseif> <elseif spell="Tachi: Shoha"> <equip set="%Spell-$VAR-WS|$Twilightset" /> <if Buffactive="Meikyo Shisui"> <equip set="%Spell-$VAR-WS|$Twilightset" /> </if> </elseif> <elseif spell="Tachi: Fudo"> <if day="Earthsday|Darksday"> <var cmd="set shura shura" /> </if> <else> <var cmd="set shura BlankSet" /> </else> <equip set="%Spell-$VAR-WS|$shura|$Twilightset" /> <if Buffactive="Meikyo Shisui"> <equip set="%Spell-$VAR-WS|$shura|$Twilightset" /> </if> </elseif> <elseif Spell="Tachi: Kasha|Tachi: Gekko|Tachi: Rana|Tachi: Jinpu|Requiescat|Stardiver"> <equip set="%Spell|$Twilightset" /> </elseif> <else> <equip set="WS Base|$Twilightset" /> </else> <action type="Command" when="aftercast">input /echo %spell TP return: <tp></action> </elseif>
Try this:
Code:<elseif type="WeaponSkill"> <castdelay delay="$Delay-JA" /> <if Buffactive="Meikyo Shisui"> <equip when="precast"> <feet Lock="True">Sao. Sune-Ate +2</feet> </equip> </if> <elseif Buffactive="Sengikori" notBuffactive="Meikyo Shisui"> <equip when="precast"> <feet Lock="True">Unkai Sune-ate +2</feet> </equip> </elseif> <if Buffactive="Sekkanoki"> <equip when="precast"> <hands Lock="True">Unkai Kote +2</hands> </equip> </if> <if spell="Tachi: Shoha"> <equip set="%Spell-$VAR-WS|$Twilightset" /> <if Buffactive="Meikyo Shisui"> <equip set="%Spell-$VAR-WS|$Twilightset" /> </if> </if> <elseif spell="Tachi: Fudo"> <if day="Earthsday|Darksday"> <var cmd="set shura shura" /> </if> <else> <var cmd="set shura BlankSet" /> </else> <equip set="%Spell-$VAR-WS|$shura|$Twilightset" /> <if Buffactive="Meikyo Shisui"> <equip set="%Spell-$VAR-WS|$shura|$Twilightset" /> </if> </elseif> <elseif Spell="Tachi: Kasha|Tachi: Gekko|Tachi: Rana|Tachi: Jinpu|Requiescat|Stardiver"> <equip set="%Spell|$Twilightset" /> </elseif> <else> <equip set="WS Base|$Twilightset" /> </else> <action type="Command" when="aftercast">input /echo %spell TP return: <tp></action> </elseif>
Trying to insert a variable-controlled TH lock, but the way lots of example spellcasts do it seems to cause a small lockup with each action.
What I am curently using works, but if there is a way I can do it where it wont get this small lockup, I would love it.
Is there a more elegant way to do this without parsing it every time?Code:<rules> <if Advanced='"$FullTimeTH" = "1"'> <equip when="all"> <sub lock="yes">Thief's Knife</sub> <hands lock="yes">Asn. Armlets +2</hands> <!-- <feet lock="yes">Raid. Poulaines +2</feet> --> </equip> </if>
Set the variable to TH/BlankSet instead of 0/1 values. Make a set named BlankSet that has no gear. Make a set named TH with TH gear. Your TP set should then say
<equip set="TP|$FullTimeTH" />
I assume so, but I haven't seen your XML. Check and see!
Anyone got the code that automatically pops stratagems before spells if they're not active? Preferably without using variables.
Edit: made the code to pop them, however created an infinite loop that won't pop the actual spell until you unload it, in which windower will crash. Any ideas?
(Protect's just a dummy spell atm, wanting to use this for Embrava)Code:<if spell="Protect"> <var cmd="set Target %spelltarget"/> <command when="precast"> input /ja "Penury" <me>; wait 0.1; input /ja "Celerity" <me>; wait 0.1; input /ja "Accession" <me>; wait 0.1; input /ja "Perpetuance" <me>; wait 0.1; input /ma "Protect" $Target; </command> </if>