RNG Spellcast Help

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » FFXI » Jobs » Ranger » RNG Spellcast Help
RNG Spellcast Help
 Leviathan.Celebrindal
Offline
Server: Leviathan
Game: FFXI
Posts: 3753
By Leviathan.Celebrindal 2012-04-18 19:17:28
Link | Quote | Reply
 
good info, and good critique of reasons for/against it. Thanks!
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-04-19 05:52:03
Link | Quote | Reply
 
I knocked together an AutoFire/AutoWS Spellcast for my mules RNG when I was levelling it, it has no gear swaps but the entire thing can be copied into another one without any conflict (or at least, it shouldn't have any).

http://pastebin.com/sFE5DA59


It won't unquiver arrows atm though (I never got to the point where I needed it to >_>;;)
 Fenrir.Greever
Offline
Server: Fenrir
Game: FFXI
user: Greever
Posts: 67
By Fenrir.Greever 2012-04-21 10:10:43
Link | Quote | Reply
 
finally got around to re-writing my rng xml, but i have a question. Im still in the process of writing my rules atm and havent tested anything yet, but i forsee a problem with what im trying to do.


Code
<if Equipmain="Hellfire">
			<if status = "engaged">
				<if commandprefix ="/range">
					<if buffactive ="barrage">
						<castdelay delay="0.2"/>
						<midcastdelay delay ="0.5"/>
						<equip when = "precast|midcast|aftercast" set ="barrage"/>
					</if>
					<elseif subjob = "/sam">
						<castdelay delay="0.2"/>
						<midcastdelay delay ="0.5"/>
						<equip when = "precast" set ="pre_shot"/>
						<equip when = "midcast|aftercast" set ="gun_tp"/>
					</elseif>	
					<elseif>
						<castdelay delay="0.2"/>
						<midcastdelay delay ="0.5"/>
						<equip when = "precast" set = "pre_shot"/>
						<equip when = "midcast|aftercast" set = "engaged"/>
					</elseif>	
				</if>
			</if>

Basically want to know if the part with /sam would work or not. or how i would handle that rule.
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-04-21 12:23:48
Link | Quote | Reply
 
Are you wanting to keep your Barrage set on after you've fired off a shot with Barrage active?

If not, try:
Code xml
<if Equipmain="Hellfire">
	<if status = "engaged">
		<if commandprefix ="/range">
			<if buffactive ="barrage">
				<castdelay delay="0.2"/>
				<midcastdelay delay ="0.5"/>
				<equip when = "precast" set ="barrage"/>
			</if>
			<elseif notbuffactive="Barrage">
				<if subjob = "/sam">
					<castdelay delay="0.2"/>
					<midcastdelay delay ="0.5"/>
					<equip when = "precast" set ="pre_shot"/>
					<equip when = "midcast|aftercast" set ="gun_tp"/>
				</if> 
				<else>
					<castdelay delay="0.2"/>
					<midcastdelay delay ="0.5"/>
					<equip when = "precast" set = "pre_shot"/>
					<equip when = "midcast|aftercast" set = "engaged"/>
				</else> 
			</elseif>
		</if>
	</if>



This one will:
>Check to see if Barrage is up - Equipping Barrage gear (precast only) if needed
>If Barrage isn't active - swap to gear depending on SJ (/SAM or not)


If you were looking for it to change Barrage gear depending on SJ, try:
Code xml
<if Equipmain="Hellfire">
	<if status = "engaged">
		<if commandprefix ="/range">
			<if buffactive ="barrage">
				<castdelay delay="0.2"/>
				<midcastdelay delay ="0.5"/>
				<equip when = "precast|midcast" set ="barrage"/>
				<if subjob = "/sam">
					<castdelay delay="0.2"/>
					<midcastdelay delay ="0.5"/>
					<equip when = "aftercast" set ="gun_tp"/>
				</if> 
				<else>
					<castdelay delay="0.2"/>
					<midcastdelay delay ="0.5"/>
					<equip when = "aftercast" set = "engaged"/>
				</else> 
			</if>
		</if>
	</if>


This one will only check SJ's and change aftercast gear depending, if Barrage is up. (I don't know when Barrage gear has to be equipped, so change the equip times appropriately >_>;)
 Fenrir.Greever
Offline
Server: Fenrir
Game: FFXI
user: Greever
Posts: 67
By Fenrir.Greever 2012-04-21 15:02:50
Link | Quote | Reply
 

Thanks, that seems to be exactly what i need. ill apply it and see how it works.
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-04-21 15:37:27
Link | Quote | Reply
 
No worries. I wasn't too sure what you were looking for it to do though, so I might've missed the mark >_>;

If it doesn't do what you want, let me know and I'll see what else I can come up with~
 Fenrir.Greever
Offline
Server: Fenrir
Game: FFXI
user: Greever
Posts: 67
By Fenrir.Greever 2012-04-21 15:45:41
Link | Quote | Reply
 
basically what i wanted it to do was when i /ra with my gun equiped for it to check my sub and if i was /sam use the gun_tp set (to keep my xhit) and if i were /war to use my regular engaged set.

Ive had the barrage thing down for a while now with my old xml, just wanted to throw in the entire section to give a better picture of the code itself
 Fenrir.Greever
Offline
Server: Fenrir
Game: FFXI
user: Greever
Posts: 67
By Fenrir.Greever 2012-04-21 16:53:16
Link | Quote | Reply
 
ok i finished my xml...but its not loading and im stumped. i keep getting a parsing error: line 122 - error reading attributes. ive tried everything but nothing fixes it. ive even deleted the section thats supposedly causing the error and still nothing




this is the entire xml.
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-04-22 04:45:07
Link | Quote | Reply
 
Missed a "=" on Line 122:
<set name="guntp" baseset="engaged">
 Fenrir.Greever
Offline
Server: Fenrir
Game: FFXI
user: Greever
Posts: 67
By Fenrir.Greever 2012-04-22 09:21:53
Link | Quote | Reply
 
Sylph.Hitetsu said: »
Missed a "=" on Line 122:
<set name="guntp" baseset="engaged">


dont u hate when ur looking for something, and its right infront of u...u know its right in front of u, but u cant see it....
[+]
 Odin.Nooje
Offline
Server: Odin
Game: FFXI
user: Nooje
Posts: 6
By Odin.Nooje 2012-04-25 16:27:24
Link | Quote | Reply
 
Was looking for some advice on how to setup a Barrage set using AE and Spellcast.
First I thought of writing it like this.
Code
<if spell="Netherspikes">
	<if spell="Barrage">
	<castdelay delay="0.3" />    
             <equip when="precast" set="Barrage" />
	</if>
<cancelspell />
</if>


Then using AE.
Code
<register event="gainbuff_Barrage|losebuff_Barrage" silent="true">input /weaponskill "Netherspikes" <t></register>


This does not seem to work as it would never switch to Barrage set when Barrage was used. Also was wondering if there would be a way to lock set when idle/engaged. Not sure also how to write it so when you do /range that it wouldn't revert back to snapshot gear.

Any suggestions would be apprciated.
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2012-04-25 16:38:58
Link | Quote | Reply
 
The problem is, you're not using "Barrage", you're using "Netherspikes". At the moment, it'll only check Barrage if you're casting Netherspikes aswell (which, I'm sure you know, is impossible).
Code xml
<if spell="Netherspikes">
	<castdelay delay="0.3" /> 
	<if buffactive="Barrage">
        <equip when="precast" set="Barrage" />
	</if>
	<elseif notbuffactive="Barrage">
		<equip when="precast" set="Whatever" />
	</elseif>
	<cancelspell />
</if>


That'll put your Barrage set on.

Alternatively,
Code xml
<if mode="and" status="Idle|engaged" buffactive="Barrage">
	<equip set="Barrage" when="Idle|Engaged|Precast|Midcast" />
</if>


<if mode="or" buffactive="Barrage" spell="Barrage">
	<if spell="Ranged">
		<equip when="precast" set="Barrage" />
	</if>
</if>
 Odin.Nooje
Offline
Server: Odin
Game: FFXI
user: Nooje
Posts: 6
By Odin.Nooje 2012-04-25 17:01:15
Link | Quote | Reply
 
Whoops, I actually did have it set like this.
Code
<if spell="Netherspikes">
	<if spell="Barrage">
		<equip when="precast" set="Barrage" />
	</if>
<cancelspell />
</if>


But I will try out what you posted above later on.
necroskull Necro Bump Detected! [69 days between previous and next post]
 Cerberus.Maeldiar
Offline
Server: Cerberus
Game: FFXI
user: Maddog
Posts: 748
By Cerberus.Maeldiar 2012-07-03 12:25:34
Link | Quote | Reply
 
Go necro!

Looking for a kind person to double check my first ever spellcast. Particular attention to ws/ja rules and delays on ranged attack/ws.

Was testing in rolanberry but its hard to tell since you kill everything in one shot and disengage triggering idle set.

Thanks in advance.

http://pastebin.com/WKCU1eBy
 Lakshmi.Rearden
Offline
Server: Lakshmi
Game: FFXI
user: Churchill
Posts: 1130
By Lakshmi.Rearden 2012-07-03 12:39:10
Link | Quote | Reply
 
I have a pretty simple one located here, it checks subjob, weapon, and last weaponskill used to determine its TP set, macros JA pieces and locks barrage gear.
 Cerberus.Maeldiar
Offline
Server: Cerberus
Game: FFXI
user: Maddog
Posts: 748
By Cerberus.Maeldiar 2012-07-03 12:57:21
Link | Quote | Reply
 
I guess that will give me some wiggle room to do other stuff then /war and spamming LS+coro 24/7 without loading another file lol.

Thanks
Log in to post.