Spellcast Question

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » FFXI » Jobs » Thief » Spellcast Question
Spellcast Question
 Cerberus.Kengo
Offline
Server: Cerberus
Game: FFXI
user: Kengosama
Posts: 319
By Cerberus.Kengo 2012-08-06 21:10:28
Link | Quote | Reply
 
For some reason I can't seem to find what rule I'm missing to get Sneak Attack/Trick Attack/etc to swap back to my TP gear after the buff is used.

The rules I have set for Sneak Attack is as follows, and works great;

<if spell="Sneak Attack">
<equip when="precast|midcast|aftercast" set="SA" />
</if>

<if buffactive="Sneak Attack">
<equip when="precast|midcast|aftercast|idle|engaged" set="SA" />
</if>

I'm sorry if this has been asked before. I couldn't seem to find the answer after searching for the last hour or so.

Thanks.
 Cerberus.Milhouse
Offline
Server: Cerberus
Game: FFXI
user: milhouse
Posts: 13
By Cerberus.Milhouse 2012-08-06 21:29:49
Link | Quote | Reply
 
<if spell="Sneak Attack">
<equip when="precast|midcast" set="SA" />
</if>

<if buffactive="Sneak Attack">
<equip when="precast|midcast|engaged" set="SA" />
</if>

^ ?
 Phoenix.Suji
Offline
Server: Phoenix
Game: FFXI
user: suji
Posts: 962
By Phoenix.Suji 2012-08-06 21:30:09
Link | Quote | Reply
 
you have your 'aftercast' equip set specified as 'SA' so it's going to equip that after SA as well as before, etc.
 Cerberus.Kengo
Offline
Server: Cerberus
Game: FFXI
user: Kengosama
Posts: 319
By Cerberus.Kengo 2012-08-06 21:56:23
Link | Quote | Reply
 
Cerberus.Milhouse said: »
<if spell="Sneak Attack">
<equip when="precast|midcast" set="SA" />
</if>

<if buffactive="Sneak Attack">
<equip when="precast|midcast|engaged" set="SA" />
</if>

^ ?


No dice. Still keeps my SA gear in after the buff wears.
 Phoenix.Suji
Offline
Server: Phoenix
Game: FFXI
user: suji
Posts: 962
By Phoenix.Suji 2012-08-06 22:01:08
Link | Quote | Reply
 
his suggestion doesn't have any impact on aftercast. you need to specify what you want to equip after the cast using 'aftercast'
 Cerberus.Kengo
Offline
Server: Cerberus
Game: FFXI
user: Kengosama
Posts: 319
By Cerberus.Kengo 2012-08-06 22:08:22
Link | Quote | Reply
 
<if buffactive="Sneak Attack">
<equip when="precast|midcast|engaged" set="SA" />
<equip when="aftercast" set="Melee" />
</if>

?
Offline
Posts: 1285
By mortontony1 2012-08-06 22:11:26
Link | Quote | Reply
 
if buffnotactive?
 Phoenix.Suji
Offline
Server: Phoenix
Game: FFXI
user: suji
Posts: 962
By Phoenix.Suji 2012-08-06 22:19:32
Link | Quote | Reply
 
yeah, give it a go!
Offline
Posts: 1285
By mortontony1 2012-08-06 22:23:30
Link | Quote | Reply
 
I would think that would work, if buffnotactive SA and engaged then equip your melee set
 Cerberus.Kengo
Offline
Server: Cerberus
Game: FFXI
user: Kengosama
Posts: 319
By Cerberus.Kengo 2012-08-06 22:23:34
Link | Quote | Reply
 
Phoenix.Suji said: »
yeah, give it a go!

Nothing, same result.
 Cerberus.Milhouse
Offline
Server: Cerberus
Game: FFXI
user: milhouse
Posts: 13
By Cerberus.Milhouse 2012-08-06 22:25:34
Link | Quote | Reply
 
<equip when="engaged" set="tp" />
<if status="idle">
<equip when="aftercast" set="idle" />
</if>
<if status="engaged">
<equip when="aftercast" set="tp" />
</if>
<if spell="Sneak Attack">
<equip when="precast|midcast" set="SA" />
</if>
<if buffactive="Sneak Attack">
<equip when="precast|midcast|engaged" set="SA" />
</if>

?

i cant test it rn but im sure its among these lines
 Cerberus.Kengo
Offline
Server: Cerberus
Game: FFXI
user: Kengosama
Posts: 319
By Cerberus.Kengo 2012-08-06 22:54:22
Link | Quote | Reply
 
mortontony1 said: »
I would think that would work, if buffnotactive SA and engaged then equip your melee set

Silly question, how would I write it?

I've tried,

<if buffnotactive="Sneak Attack">
<equip when="engaged" set="melee" />
</if>

As soon as I use Sneak Attack and engage, it throws on my TP gear with Sneak Attack still active.
Offline
Posts: 151
By Ashandarei 2012-08-06 23:04:38
Link | Quote | Reply
 
This is what I use, when you use Sneak Attack while engaged, it'll swap you to SA gear for 5 seconds, after that it'll put you back into your TP set. Same for TA.
Code
<equip when="Idle|aftercast" set="Idle" />
<equip when="engaged|aftercast" set="TPSet" />

<if Spell="Sneak Attack">
    <equip when="precast|midcast" set="SA" />
	<aftercastdelay delay="5.0" />
</if>
<if Spell="Trick Attack">
	<equip when="precast|midcast" set="TA" />
	<aftercastdelay delay="5.0" />
</if>


If you use SA/TA before you engage, it won't put on your SA/TA gear, for that you'd need something like...
Code

<if buffactive="Sneak Attack">
     <equip when="engaged|aftercast" set="SA" />
</if>
<elseif buffactive="Trick Attack">
     <equip when="engaged|aftercast" set="TA" />
</elseif>
<else>
     <equip when="engaged|aftercast" set="TPSet" />
</else>
 Cerberus.Kengo
Offline
Server: Cerberus
Game: FFXI
user: Kengosama
Posts: 319
By Cerberus.Kengo 2012-08-06 23:21:48
Link | Quote | Reply
 
Ashandarei said: »
This is what I use, when you use Sneak Attack while engaged, it'll swap you to SA gear for 5 seconds, after that it'll put you back into your TP set. Same for TA.
Code
<equip when="Idle|aftercast" set="Idle" />
<equip when="engaged|aftercast" set="TPSet" />

<if Spell="Sneak Attack">
    <equip when="precast|midcast" set="SA" />
	<aftercastdelay delay="5.0" />
</if>
<if Spell="Trick Attack">
	<equip when="precast|midcast" set="TA" />
	<aftercastdelay delay="5.0" />
</if>


If you use SA/TA before you engage, it won't put on your SA/TA gear, for that you'd need something like...
Code

<if buffactive="Sneak Attack">
     <equip when="engaged|aftercast" set="SA" />
</if>
<elseif buffactive="Trick Attack">
     <equip when="engaged|aftercast" set="TA" />
</elseif>
<else>
     <equip when="engaged|aftercast" set="TPSet" />
</else>

The aftercast delay works beautifully, the bottom <else> rule doesn't seem to kick in.

I will continue to play with it. Thanks for the information.
 Bismarck.Stani
Offline
Server: Bismarck
Game: FFXI
Posts: 141
By Bismarck.Stani 2012-08-06 23:44:16
Link | Quote | Reply
 
Spellcast doesn't (to my knowledge) do things upon losing a buff. Autoexec (another windower plugin) does. I use the below autoexec rules to swap to my $melee set upon losing SA or TA:
Code
autoexec register losebuff_Sneak_Attack sc set $melee
autoexec register losebuff_Trick_Attack sc set $melee
 Phoenix.Suji
Offline
Server: Phoenix
Game: FFXI
user: suji
Posts: 962
By Phoenix.Suji 2012-08-07 01:15:25
Link | Quote | Reply
 
sorry, I was responding while on the phone earlier and gave you bad advice. any of the "wait X seconds after SA/TA to equip aftercast" type of rules are probably going to screw you at one point or another, though.

I use Motenten's XML which handles these cases nicely (without using autoexec) but it's also fairly complicated. He uses a variable toggle that controls whether to apply aftercast and through this mechanism aftercast is disabled whenever SA or TA are active. It would be pretty tough to write something similar on your own, assuming you don't want to use Motenten's, so I think Stani's suggestion of using autoexec to deal with re-equipping your TP set when the buff wears is probably the simplest to get working cleanly.

You can find the XML I referred to here:
http://pastebin.com/u/Motenten
 Phoenix.Seshat
Offline
Server: Phoenix
Game: FFXI
user: maeko91
Posts: 47
By Phoenix.Seshat 2012-08-07 02:56:03
Link | Quote | Reply
 
I use Ash's XML and it works perfectly. The time allotted is plenty and switches back flawlessly. You can always make a macro with dia or box step etc to trigger gear swaps with any xml, typically.
 Phoenix.Suji
Offline
Server: Phoenix
Game: FFXI
user: suji
Posts: 962
By Phoenix.Suji 2012-08-07 11:09:08
Link | Quote | Reply
 
Phoenix.Seshat said: »
I use Ash's XML and it works perfectly. The time allotted is plenty and switches back flawlessly. You can always make a macro with dia or box step etc to trigger gear swaps with any xml, typically.
So you never precharge SA and wait for a Bully + double SA for TH or anything like that? The second chunk can handle it like he said but it needs rules around it to work properly, so it's definitely not perfect in its posted form. The most reliable event that you can key off of for swapping back from SA gear is when SA actually wears off, not a time interval which has the chance of being incorrect-- that's why I support the autoexec idea if one is going for a simple solution.

I'm not trying to diss Ash's suggestion here, it's simple and easy to understand which is preferable for some folks. In general, the more you want to handle edge cases, the more complex it's going.
 Bismarck.Stani
Offline
Server: Bismarck
Game: FFXI
Posts: 141
By Bismarck.Stani 2012-08-07 12:17:33
Link | Quote | Reply
 
Phoenix.Seshat said: »
I use Ash's XML and it works perfectly. The time allotted is plenty and switches back flawlessly. You can always make a macro with dia or box step etc to trigger gear swaps with any xml, typically.

An intriguing use of both 'perfect' and 'flawless'. Your business, I suppose.
 Cerberus.Kengo
Offline
Server: Cerberus
Game: FFXI
user: Kengosama
Posts: 319
By Cerberus.Kengo 2012-08-07 20:37:28
Link | Quote | Reply
 
Bismarck.Stani said: »
Spellcast doesn't (to my knowledge) do things upon losing a buff. Autoexec (another windower plugin) does. I use the below autoexec rules to swap to my $melee set upon losing SA or TA:
Code
autoexec register losebuff_Sneak_Attack sc set $melee
autoexec register losebuff_Trick_Attack sc set $melee

So, I have autoexec loaded, and the xml open. Do I just copy and paste those rules into the xml? Also, do I need to add anything into my THF.xml for Spellcast to parse the rule?

Totally virgin to autoexec here. Thanks for the help.
 Phoenix.Seshat
Offline
Server: Phoenix
Game: FFXI
user: maeko91
Posts: 47
By Phoenix.Seshat 2012-08-08 01:58:07
Link | Quote | Reply
 
Considering the fact that everything I do is with 2+ people in game I've never had to hold SA for a double on Bully. So, yes, for me it works perfectly. In most situations that I'm in it works as intended.

But, as you said, it depends on how complex things become and how intricate you plan to be. In order to be prepared for every single possible situation out there, its not the best in any case, no. For that you'd need something more specific to get down to the wire.

So, for me it works well. If you're looking for something more intense with specifics for every millisecond, no, its not going to work for you.
 Cerberus.Kengo
Offline
Server: Cerberus
Game: FFXI
user: Kengosama
Posts: 319
By Cerberus.Kengo 2012-08-08 02:42:32
Link | Quote | Reply
 
I wanted to thank everyone for their help. I did some more poking around and was able to get it to work the way I wanted it to. If anyone was interested without having to do too much work, this is what the final result looks like;

Spellcast
Code

<if spell="Sneak Attack">
<equip when="precast|midcast|aftercast" set="SA" />
</if>
		
<if spell="Trick Attack">
<equip when="precast|midcast|aftercast" set="TA" />
</if>
		
<if buffactive="Sneak Attack">
<equip when="precast|midcast|aftercast|idle|engaged" set="SA" />
</if>
<elseif buffactive="Trick Attack">
<equip when="precast|midcast|aftercast|idle|engaged" set="TA" />
</elseif>



Autoexec
Code

<autoexec>
<register event="losebuff_Sneak_Attack">sc set Melee</register>
<register event="losebuff_Trick_Attack">sc set Melee</register> 
</autoexec>



Love it. Thanks again.
 Phoenix.Esvedium
Offline
Server: Phoenix
Game: FFXI
user: Esvedium
Posts: 73
By Phoenix.Esvedium 2012-08-08 13:00:31
Link | Quote | Reply
 
I use autoexec for my SA/TA rules.
My XML - pastebin.com/u/Esvedium
Be sure to read the notes for the thf xml, too. Gear in that is completely not up to date, but the rules work.

Re Ash's: Sometimes 5 seconds is too long, and you end up doing another attack round in your SA/TA/whatever gear. My spellcast/autoexec rules will swap to TP set .2 seconds after you lose the SA/TA buff, so you won't get another attack round off in SA/TA gear.
Log in to post.