Windower: Manually trigger autosets from command line? - Windower

Jump to content

Code Snippets

Please be courteous when asking for help on your XML and _DO_NOT_ paste the full XML into your paste.

1-6 lines is ok, but if you need to paste your full XML please go to Windower Pastebin and paste your full XML there, then give a link to the paste in your post.

Set the paste type to XML and length to 1 month.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Manually trigger autosets from command line?

#1 User is offline   theo 

  • Script Kiddy
  • Group: Members
  • Posts: 6
  • Joined: 08-March 08

Posted 07 March 2010 - 01:48 PM

I'm trying to find a way to manually trigger autosets via command line. For example, something like this would be helpful:

spellcast set %AutoSet


Essentially, I want to be able to tell spellcast to process my rules and equip the correct gear at will. There are times where I don't want to wait for it to occur naturally via the "engaged", "precast" etc events.
0

#2 User is offline   MegaMan 

  • Novice
  • PipPip
  • Group: Members
  • Posts: 26
  • Joined: 14-March 08

Posted 11 March 2010 - 01:43 AM

//sc set " [name]"

example

//sc set standard
0

#3 User is offline   IneptVagrant 

  • Hacked the Gibson
  • PipPipPipPipPipPipPipPipPipPip
  • Group: +Power Members
  • Posts: 1,444
  • Joined: 01-August 05

Posted 11 March 2010 - 10:14 AM

There isn't an ez way to do it.

You can engineer it with another spell. In spellcast check for spell="autoset", and another dummy spell, than check vs %status for all autoset rules, and add precast to the when arguments

Then to trigger the rules, cast that dummy spell (in example its stonga V)
<if spell="autoset|stonga V" >
	<if status="idle">
		<equip when="%status|precast" set="idle" />
	</if>
	<elseif status="engaged">
		<equip when="%status|precast" set="engaged" />
	</elseif>
	<elseif status="resting">
		<equip when="%status|precast" set="resting" />
	</elseif>
	
	<if spell="stonga V">
		<cancelspell />
		<return />
	</if>
</if>

0

#4 User is offline   Yekyaa 

  • Elite Member
  • PipPipPipPipPip
  • Group: +App Developers
  • Posts: 246
  • Joined: 16-June 05
  • Gender:Male
  • Name: Yekyaa
  • Server: Asura
  • Jobs: RDM, THF, WHM, BLM, BLU, SAM, SMN, NIN @75
  • Race: Mithra

Posted 13 March 2010 - 10:44 PM

View PostIneptVagrant, on 11 March 2010 - 08:14 AM, said:

There isn't an ez way to do it.

You can engineer it with another spell. In spellcast check for spell="autoset", and another dummy spell, than check vs %status for all autoset rules, and add precast to the when arguments

Then to trigger the rules, cast that dummy spell (in example its stonga V)
<if spell="autoset|stonga V" >
	<if status="idle">
		<equip when="%status|precast" set="idle" />
	</if>
	<elseif status="engaged">
		<equip when="%status|precast" set="engaged" />
	</elseif>
	<elseif status="resting">
		<equip when="%status|precast" set="resting" />
	</elseif>
	
	<if spell="stonga V">
		<cancelspell />
		<return />
	</if>
</if>



Make sure you spell it properly though for it to work ie "Stonega V". I use Firaga IV and Firaga V.
As long as it's a spell you're unable to cast, but the game still has an entry for it, you can use this method.
I use it to change to town gear automatically upon entering some cities with autoexec casting the spell for me.

I also use the "Invisible" spell as a catchall in order to cast Tonko/Camouflage/Hide dependant on my subjob.
"Blink" covers my Zephyr Wall/Blink/Utsusemi dependant on main/subjobs as well.

This post has been edited by Yekyaa: 13 March 2010 - 10:45 PM

0

#5 User is offline   theo 

  • Script Kiddy
  • Group: Members
  • Posts: 6
  • Joined: 08-March 08

Posted 14 March 2010 - 05:58 PM

Thanks for the suggestions -

I had tried using the "dummy spell" method before, and it never seemed to work. In my chat log I got the "...A command error occurred" message and the gear wouldn't swap in. But I tried it again with the code Inept posted and it seems like its working fine now!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users