Darknight Spellcast Help

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » FFXI » Jobs » Dark Knight » darknight spellcast help
darknight spellcast help
 
Offline
Posts:
By 2012-11-19 22:22:08
| Edit  | Link | Quote | Reply
 
Post deleted by User.
Offline
Posts: 99
By ndc1190 2012-11-19 22:25:59
Link | Quote | Reply
 
if you upload it i will check it out for you
 
Offline
Posts:
By 2012-11-19 22:33:16
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 
Offline
Posts:
By 2012-11-19 22:36:20
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 
Offline
Posts:
By 2012-11-19 22:37:07
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 Valefor.Clairefox
Offline
Server: Valefor
Game: FFXI
user: Clairefox
Posts: 87
By Valefor.Clairefox 2012-11-19 22:49:15
Link | Quote | Reply
 
copy and paste it into here using [code ][/code ] X_x; don't want to download that. or use pastebin please ; ;
 
Offline
Posts:
By 2012-11-19 23:00:37
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 
Offline
Posts:
By 2012-11-19 23:04:53
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 Bismarck.Aselin
Offline
Server: Bismarck
Game: FFXI
user: Aselin
Posts: 397
By Bismarck.Aselin 2012-11-19 23:05:30
Link | Quote | Reply
 
Corrected:
Code
<?xml version="1.0" ?>

<spellcast>
        <config debug="false"
        showgearswaps="false"
        quickcommands="true"
        showspellinfo="false"
        AutoLoadXMLOnJobChange="true"
        />                     
        <sets>
                <group name="DRK" Default="true">       
                        <set name = "DRKStoreTP" >
                                <main>Ragnarok</main>
                                <sub>Rose Strap</sub>
                                <ammo>Hagneia Stone</ammo>
                                <head>Bale burgeonet +2</head>
                                <neck>Houyi Gorget</neck>
                                <lear>Brutal Earring</lear>
                                <rear>Bale Earring</rear>
                                <body>Ace's mail</body>
                                <hands>Bale burgeonet +2</hands>
                                <lring>Rajas Ring</lring>
                                <rring>Tyrant's ring</rring>
                                <back>Tactical mantle</back>
                                <waist>Goading Belt</waist>
                                <legs>Calmecac Trousers</legs>
                                <feet>Ace's leggings</feet>
                        </set>   
                        <set name = "DRKWSset" >
                                <main>Ragnarok</main>
                                <sub>Rose Grip</sub>
                                <ammo>Fracas Grenade</ammo>
                                <head>Mekira-oto</head>
                                <neck>Breeze Gorget</neck>
                                <lear>Brutal Earring</lear>
                                <rear>Bale Earring</rear>
                                <body>Ace's mail</body>
                                <hands>Heafoc mitts</hands>
                                <lring>Pyrosoul Ring</lring>
                                <rring>Rajas Ring</rring>
                                <back>Atheling mantle</back>
                                <waist>Breeze belt</waist>
                                <legs>Bale flanchard +2</legs>
                                <feet>Dilaram's sollerets</feet>
                        </set> 
                </group>
        </sets>

        <variables>     
        </variables>

        <rules>  
                <if job="DRK/SAM" >
					<if status="engaged" >
                        <equip set="DRKStoreTP" />
					</if>
					<elseif type="weaponskill" >
						<equip set="DRKWSset" />
					</elseif>
                </if>  
        </rules>
</spellcast>
Offline
Posts: 14
By Caranthir 2012-11-20 02:26:20
Link | Quote | Reply
 
This should do the trick.
Code
<?xml version="1.0" ?>
<spellcast>
	<config>
		RequireVersion="2.40"
		debug="false"
		showgearswaps="false"
		HideErrors="false"
		quickcommands="true"
		showspellinfo="false"
		DefaultAftercast="Idle"
		NormalSet="Idle"
		EngagedSet="DRKStoreTP"
	</config>
	<sets>
		<group default="yes" name="Dark Knight">      
			<set name="Idle">
			</set>
			<set name="DRKStoreTP" >
				<main>Ragnarok</main>
				<sub>Rose Strap</sub>
				<ammo>Hagneia Stone</ammo>
				<head>Bale burgeonet +2</head>
				<neck>Houyi Gorget</neck>
				<lear>Brutal Earring</lear>
				<rear>Bale Earring</rear>
				<body>Ace's mail</body>
				<hands>Bale gauntlets +2</hands>
				<lring>Rajas Ring</lring>
				<rring>Tyrant's ring</rring>
				<back>Tactical mantle</back>
				<waist>Goading Belt</waist>
				<legs>Calmecac Trousers</legs>
				<feet>Ace's leggings</feet>
			</set>  
			<set name="DRKWSset" >
				<ammo>Fracas Grenade</ammo>
				<head>Mekira-oto</head>
				<neck>Breeze Gorget</neck>
				<lear>Brutal Earring</lear>
				<rear>Bale Earring</rear>
				<body>Ace's mail</body>
				<hands>Heafoc mitts</hands>
				<lring>Pyrosoul Ring</lring>
				<rring>Rajas Ring</rring>
				<back>Atheling mantle</back>
				<waist>Breeze belt</waist>
				<legs>Bale flanchard +2</legs>
				<feet>Dilaram's sollerets</feet>
			</set>
		</group>
	</sets>
	<variables>    
	</variables>
	<rules>
		<if status="idle">
			<equip when="idle" set="Idle" />
		</if>
		<if Status="Engaged">
			<equip When="engaged" Set="DRKStoreTP" />
			<if type="Weaponskill">
				<equip when="precast" set="DRKWSset" />
				<equip when="aftercast" set="%status" />
			</if>
		</if>
	</rules>
</spellcast>

See my DRK spellcast, it might give you some more to go on.
http://pastebin.com/rgSExSge
 Cerberus.Diabolique
Offline
Server: Cerberus
Game: FFXI
user: Uchitoru
Posts: 526
By Cerberus.Diabolique 2012-11-20 04:01:04
Link | Quote | Reply
 
Bale Burgeonet +2 is in your <hands/> as well as head by the way, might want to edit that. Such an odd xml, not sure why you'd need spellcast to do so little.
 Fenrir.Moldtech
Offline
Server: Fenrir
Game: FFXI
user: Moldtech
Posts: 574
By Fenrir.Moldtech 2012-11-20 05:20:35
Link | Quote | Reply
 
Encumbered!
 
Offline
Posts:
By 2012-11-26 00:59:20
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 658
By Ragnarok.Flippant 2012-11-26 01:19:49
Link | Quote | Reply
 
The problem is that it is looking for a set based on the value of "%status," which will return (based on your current status, of course) either Idle or Engaged (or Resting). There are two ways to fix this without reconstructing the rules, and I suppose the better way would be to replace all instances of "DRKStoreTP" with "Engaged." There are only two places, so just make sure you get both of them.

Please be aware that this rule structure is setting yourself up for a lot of redundancy if and when you decide to build upon your XML.

If you send me a PM to remind me tomorrow, I can help you out a bit more on this (don't have time/resources at the moment).
[+]
Offline
Posts: 14
By Caranthir 2012-12-21 11:00:50
Link | Quote | Reply
 
Code
<?xml version="1.0" ?>
<spellcast>
	<config>
		RequireVersion="2.46"
		debug="false"
		showgearswaps="false"
		HideErrors="false"
		quickcommands="true"
		showspellinfo="false"
		DefaultAftercast="Idle"
		NormalSet="Idle"
		RestingSet="Resting"
		EngagedSet="DRKStoreTP"
	</config>
	<sets>
		<group default="yes" name="Dark Knight">     
			<set name="Resting">
			</set>
			<set name="Idle">
			</set>
			<set name="DRKStoreTP" >
				<main>Ragnarok</main>
				<sub>Rose Strap</sub>
				<ammo>Hagneia Stone</ammo>
				<head>Bale Burgeonet +2</head>
				<neck>Houyi Gorget</neck>
				<lear>Brutal Earring</lear>
				<rear>Bale Earring</rear>
				<body>Ace's Mail</body>
				<hands>Bale Gauntlets +2</hands>
				<lring>Rajas Ring</lring>
				<rring>Tyrant's Ring</rring>
				<back>Tactical Mantle</back>
				<waist>Goading Belt</waist>
				<legs>Calmecac Trousers</legs>
				<feet>Ace's Leggings</feet>
			</set>
			<set name="Aftermathset">
			</set>
			<set name="DRKWSset" >
				<ammo>Fracas Grenade</ammo>
				<head>Mekira-oto</head>
				<neck>Breeze Gorget</neck>
				<lear>Brutal Earring</lear>
				<rear>Bale Earring</rear>
				<body>Ace's Mail</body>
				<hands>Heafoc Mitts</hands>
				<lring>Rajas Ring</lring>
				<rring>Pyrosoul Ring</rring>
				<back>Atheling Mantle</back>
				<waist>Breeze Belt</waist>
				<legs>Bale Flanchard +2</legs>
				<feet>Dilaram's Sollerets</feet>
			</set>
			<set name="DarkMagicset">
			</set>
			<set name="Fastcastset">
			</set>
		</group>
	</sets>
	<rules>
		<if status = "dead">
			<cancelspell/>
			<return/>
		</if>
		<if BuffActive="Sleep|Petrification|Stun|Terror|Charm">
			<return/>
		</if>
		<if Type="*Magic|BardSong|Ninjutsu" BuffActive="Silence">
			<return/>
		</if>	
		<if Type="Weaponskill|JobAbility|PetCommand" BuffActive="Amnesia">
			<cancelspell/>
			<return/>
		</if>
		<if status="idle">
			<equip when="idle|aftercast" set="Idle" />
		</if>
		<if status="resting">
			<equip when="resting" set="Resting"/>
		</if>
		<if Status="Engaged">
			<equip When="engaged|aftercast" Set="DRKStoreTP" />
			<if BuffActive="Aftermath*">
				<equip when="engaged|aftercast" set="Aftermathset"/>
			</if>
		</if>
		<if type="*Magic">
			<equip when="midcast" set="Fastcastset" />
			<if skill="DarkMagic">
				<equip when="precast" set="DarkMagicset" />
			</if>
		</if>
		<if type="Weaponskill">
			<if SpellTargetDistanceGT="5">
				<addtochat color="121">Target out of range!!</addtochat>
				<cancelspell />
				<return />
			</if>
			<if tplt="100">
				<addtochat color="121">Not enough TP!!</addtochat>
				<cancelspell />
				<return />
			</if>
			<equip when="precast" set="DRKWSset" />
		</if>
	</rules>
</spellcast>

THAT is what I should have put. My desire to help was greater than my knowledge. Sorry about that.
Now I understand that your 3 states are Idle, Resting and Engaged. Idle and Engaged have a sub-state of Casting which breaks down into Precast, Midcast and Aftercast.
Therefor, any action you can perform while Idle or Engaged must redirect you back to the appropriate state when you're finished performing the action. The reason why it's so important that the rules regarding those two states include the additional "|aftercast" in order for the rule to function properly, is that you can cast while either Idle or Engaged, and while to us players this is very obvious, for Spellcast, it MUST be defined, and that's one way you can do it.
It's really a matter of common sense but with unfamiliar territory, things like that aren't always readily apparent.
*Edit: Added a few special features*
[+]
 Cerberus.Kvazz
Offline
Server: Cerberus
Game: FFXI
user: kvazz
Posts: 5345
By Cerberus.Kvazz 2012-12-21 11:05:30
Link | Quote | Reply
 
That has to be the cutest little xml I have ever seen!
Offline
Posts: 14
By Caranthir 2012-12-21 11:09:22
Link | Quote | Reply
 
Yep, simple and clean. Nothing fancy but it has exactly what he asked for and it (finally) works.
[+]
Log in to post.