Spellcast Error.. Somewhere!

Langues: JP EN DE FR
Yellow Box
5646 users online
Forum » FFXI » Jobs » Blue Mage » Spellcast Error.. Somewhere!
Spellcast Error.. Somewhere!
 Bahamut.Sobius
Offline
Serveur: Bahamut
Game: FFXI
User: Sobius
Posts: 123
By Bahamut.Sobius 2013-04-20 12:24:49
Link | Citer | R
 
Please forgive me if this has been addressed somewhere else:

I have shamelessly stolen Prothescar's Blue Mage XML to finally replace my own outdated one (stolen from someone else years ago). Everything is working perfectly, except for one small thing: If I cast a spell outside of combat, it stays in that set and will not change back to my idle gear. Did I do something to mess it up when I inputted my own gear? I understand computer code about as much as I understand Chinese.

Here is the code; I think the problem is near the bottom(?)

Thanks in advance for any help!

Oh as an aside, I noticed in the raw data I copied from the link that it lists "Thaumas Nails" as "Thaumas Boots" in the script. Is that supposed to be there?
 Phoenix.Suji
Offline
Serveur: Phoenix
Game: FFXI
User: suji
Posts: 962
By Phoenix.Suji 2013-04-20 12:33:35
Link | Citer | R
 
That's just how this xml is written. If I'm not mistaken, autoset triggers only when you change status somehow and that's the only place where idle is equipped, so it won't work if you kill something with a spell while out of combat.
 Bahamut.Sobius
Offline
Serveur: Bahamut
Game: FFXI
User: Sobius
Posts: 123
By Bahamut.Sobius 2013-04-20 12:34:52
Link | Citer | R
 
Ah I see. Is there a line I can add somewhere that will always change me back to idle when I am out of combat? My old XML did that but as I said, I am terrible with programming.

Thanks for the response regardless.
 Bahamut.Bojack
Offline
Serveur: Bahamut
Game: FFXI
User: Bojack316
Posts: 2216
By Bahamut.Bojack 2013-04-20 12:37:28
Link | Citer | R
 
The problem is you have this: <action type="equip" when="aftercast" set="TP" /> in all your spell rules and no rules for going back to your idle set anywhere. I would take out all of the "<action type="equip" when="aftercast" set="TP" />" from every one of the spell rules then add this just under the <rules> tag right before the spell rules start:

Code
<!-- Basic -->		
<if status="engaged">
<equip when="engaged|aftercast" set="TP" />
</if>
<elseif status="idle">
<equip when="idle|aftercast" set="Idle" />
</elseif>
 Bahamut.Sobius
Offline
Serveur: Bahamut
Game: FFXI
User: Sobius
Posts: 123
By Bahamut.Sobius 2013-04-20 13:02:14
Link | Citer | R
 
Problem is fixed, thanks so much!
 Ragnarok.Xenophire
Offline
Serveur: Ragnarok
Game: FFXI
User: Xenophire
Posts: 169
By Ragnarok.Xenophire 2013-04-20 14:09:12
Link | Citer | R
 
If you go and download Notepad++, it'll actually tell you which line has the error.
Pretty sure that's the stuff you need. I haven't played in a while, but if there's ever an error in your XML, it'll say something like, "Error in line 84."
 Asura.Redshift
Offline
Serveur: Asura
Game: FFXI
User: Redshift
Posts: 42
By Asura.Redshift 2013-04-20 14:29:53
Link | Citer | R
 
The XML posted in OP is so terribly inefficient... No elseifs,elses or grouping of rules. It makes spellcast literally go through every single line everytime you do anything
Log in to post.