COR XML - Error Help

Langues: JP EN DE FR
users online
Forum » Windower » Spellcast Scripting » Corsair » COR XML - error help
COR XML - error help
 Phoenix.Frizzit
Offline
Serveur: Phoenix
Game: FFXI
user: Frizzit
Posts: 7
By Phoenix.Frizzit 2012-11-14 05:20:47
Link | Citer | R
 
I'm a fairly amateur Spellcast scripter, so I shamelessly took this COR XML from an earlier post in hope of modifying it for my use.

Pastebin COR.XML

When I load the file I get a "Parsing Error - Line 388 - Error Reading attributes.

I think it has something to do with the Phantom Roll definitions, but some of the script here is over my head.

I should probably use something simpler, but I really like the thought behind it.

Any suggestions would be great.
Thanks for all the help!
 Cerberus.Diabolique
Offline
Serveur: Cerberus
Game: FFXI
user: Uchitoru
Posts: 526
By Cerberus.Diabolique 2012-11-14 05:46:14
Link | Citer | R
 
Far from an expert with spellcast but
Quote:
<addtochat>[%Spell] <EXP Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
</if>

It's probably the "<EXP Bonus>" thing. "<" and ">" are opening and closing tags(or whatever), can't have those in there like that, I think. Seems like SC is looking for another command with < and is finding nothing inside and no end to it.
I'd get rid of every instance of that down in the xml(a lot of it) and see if that works for you.

Though this didn't get an error I guess, is this
Quote:
<if Spell="Detonator|*Shot|Slug*|Wildfire" NotSpell="Light*|Dark*|Ice*|Wind*|Earth*|Thunder*|Water*|Fire*">
<if advanced='"%EquipAmmo"="$QDBullet"'>
<action type="CancelSpell" />
<action type="addtochat">Stop! QD Bullet is equipped!!</action>
</if>
Correct? Xml is really different from the ones I've used, seems like there should have been some sort of closing tag after Wildfire.
[+]
 Phoenix.Frizzit
Offline
Serveur: Phoenix
Game: FFXI
user: Frizzit
Posts: 7
By Phoenix.Frizzit 2012-11-14 05:50:47
Link | Citer | R
 
I've seen some simpler ways to cancel the shot if using QD bullet.

I'll test it out and make those changes to see if it works.

Thanks for the inputs!
 Phoenix.Frizzit
Offline
Serveur: Phoenix
Game: FFXI
user: Frizzit
Posts: 7
By Phoenix.Frizzit 2012-11-14 06:07:22
Link | Citer | R
 
That was it.

Thank you very much.

Now to make my tweaks and see what works ^^

**Update - The Ammo switch seems to work great. The scripting might be confusing to me, but thats why I look at others work first. =)
 Sylph.Binckry
Offline
Serveur: Sylph
Game: FFXI
user: Binckly
Posts: 529
By Sylph.Binckry 2012-11-14 08:13:42
Link | Citer | R
 
Code
		<if EquipAmmo="Omphalos Bullet"> 
		<if NotSpell="%SpellElement Shot"> 
			<cancelspell /> 
			</if> 
			</if>

This is actually what I use for mine, maybe it'd help to have it do an add to chat thing. <_< Cause if you wanna use this, it'll cancel ANY command with bullet on unless its a QD.
 Valefor.Clairefox
Offline
Serveur: Valefor
Game: FFXI
user: Clairefox
Posts: 87
By Valefor.Clairefox 2012-11-19 14:50:08
Link | Citer | R
 
In the addtochat part too, to fix any probs with it in the future, use the code for the < and > symbols. Like this: &lt ;EXP Bonus&gt ; (But remove the space btwn t ; )
Log in to post.