Buffactive "Sneak Attack"

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Windower » Spellcast Scripting » Other » Buffactive "Sneak Attack"
Buffactive "Sneak Attack"
 Lakshmi.Reddwarf
Offline
Server: Lakshmi
Game: FFXI
user: Reddwarf
Posts: 160
By Lakshmi.Reddwarf 2013-10-10 00:42:41
Link | Quote | Reply
 
i'm having problems with Sneak Attack, Trick Attack changing back to TP/Idle gear after i hit my macro, and i even have this code.

<if BuffActive="Sneak Attack">
<equip when="idle|engaged|resting|precast|midcast|aftercast">
<head lock="t">Uk'uxkaj Cap</head>
<neck lock="t">Asperity Necklace</neck>
<lear lock="t">Ghillie Earring +1</lear>
<rear lock="t">Ghillie Earring +1</rear>
<body lock="t">Manibozho Jerkin</body>
<lring lock="t">Rajas Ring</lring>
<rring lock="t">Epona's Ring</rring>
<back lock="t">Vespid Mantle</back>
<waist lock="t">Wanion Belt</waist>
<legs lock="t">Manibozho Brais</legs>
<hands lock="t">Assassin's Armlets +2</hands>
<feet lock="t">Raider's poulaines +2</feet>
</equip>
</if>

it will re-equip the gear, and lock it, AFTER i do another action. thats not how i want it to function, is there a fix for that?
 Bismarck.Ihina
Offline
Server: Bismarck
Game: FFXI
user: Ihina
Posts: 3187
By Bismarck.Ihina 2013-10-10 00:59:59
Link | Quote | Reply
 
That's because your code doesn't make sense.

First line says, "If I enter this part of the code(which probably means if I do anything) and [Sneak Attack] is already up....

Second line says, "Equip gear for the idle phase or the engaged phase or the resting phase or the precast phase or the midcast phase or the aftercast phase"

...
[gear macro]
...
</equip>
</if>


You probably want to change first line to <if spell="Sneak Attack">.

I don't even know what you're trying to say with line 2
 Lakshmi.Reddwarf
Offline
Server: Lakshmi
Game: FFXI
user: Reddwarf
Posts: 160
By Lakshmi.Reddwarf 2013-10-10 01:07:32
Link | Quote | Reply
 
<if spell="Sneak Attack" NotBuffActive="Stun|Amnesia|Petrification|Sleep|Paralysis">
<action type="castdelay" delay=".2" />
<action type="Equip" when="precast" set="SneakAttack" />
</if>

<if spell="Trick Attack" NotBuffActive="Stun|Amnesia|Petrification|Sleep|Paralysis">
<action type="castdelay" delay=".2" />
<action type="Equip" when="precast" set="TrickAttack" />
</if>

<if BuffActive="Sneak Attack">
<equip when="idle|engaged|resting|precast|midcast|aftercast">
<head lock="t">Uk'uxkaj Cap</head>
<neck lock="t">Asperity Necklace</neck>
<lear lock="t">Ghillie Earring +1</lear>
<rear lock="t">Ghillie Earring +1</rear>
<body lock="t">Manibozho Jerkin</body>
<lring lock="t">Rajas Ring</lring>
<rring lock="t">Epona's Ring</rring>
<back lock="t">Vespid Mantle</back>
<waist lock="t">Wanion Belt</waist>
<legs lock="t">Manibozho Brais</legs>
<hands lock="t">Assassin's Armlets +2</hands>
<feet lock="t">Raider's poulaines +2</feet>
</equip>
</if>
<if BuffActive="Trick Attack">
<equip when="idle|engaged|resting|precast|midcast|aftercast">
<head lock="t">Uk'uxkaj Cap</head>
<neck lock="t">Asperity Necklace</neck>
<lear lock="t">Ghillie Earring +1</lear>
<rear lock="t">Ghillie Earring +1</rear>
<body lock="t">Manibozho Jerkin</body>
<lring lock="t">Rajas Ring</lring>
<rring lock="t">Epona's Ring</rring>
<back lock="t">Vespid Mantle</back>
<legs lock="t">Manibozho Brais</legs>
<hands lock="t">Assassin's Armlets +2</hands>
<feet lock="t">Raider's poulaines +2</feet>
</equip>
</if>

here's my whole sneak/trick code.
 Cerberus.Keeo
Offline
Server: Cerberus
Game: FFXI
Posts: 118
By Cerberus.Keeo 2013-10-10 01:34:29
Link | Quote | Reply
 
I always used autoexec for sneak attack trick attack and lots of other things.

add thes lines to autoexec
Code xml
<register silent="true" event="losebuff_Sneak_Attack">sc var set SA 0; wait .2; Dancing Chains</register>
<register silent="true" event="losebuff_Trick_Attack">sc var set TA 0; wait .2; Dancing Chains</register>
<register silent="true" event="gainbuff_Sneak_Attack">sc var set SA 1; wait .2; Dancing Chains</register>
<register silent="true" event="gainbuff_Trick_Attack">sc var set TA 1; wait .2; Dancing Chains</register>


Then in your main spellcast put this in the variables section
Code xml
<var name="SA">0</var>
<var name="TA">0</var>


then this in your main section
Code xml
<command when="aftercast|idle|resting">wait .3; Dancing Chains</command>

<if spell="Dancing Chains"> 

	<if advanced='"$SA" = "1"'>
			<if advanced='"$TA" = "1"'>
				<action type="addtochat" color="200">==== [SATA GEAR] ====</action>
				<equip when="precast" set="THF-SATA" />
			</if>
			<else>
				<action type="addtochat" color="200">==== [SNEAK ATTACK GEAR] ====</action>
				<equip when="precast" set="THF-SA" />
			</else>
	</if>
						
	<elseif advanced='"$TA" = "1"'>
			<if advanced='"$SA" = "1"'>
				<action type="addtochat" color="200">==== [SATA GEAR] ====</action>
				<equip when="precast" set="THF-SATA" />
			</if>
			<else>
				<action type="addtochat" color="200">==== [TRICK ATTACK GEAR] ====</action>
				<equip when="precast" set="THF-TA" />
			</else>
	</elseif>
						
			<cancelspell />
</if>


then makes sure you have the right names for your gear sets e.g 3 sets THF-SATA, THF-SA, THF-TA
Log in to post.