Post deleted by User.
Darknight Spellcast Help |
||
darknight spellcast help
if you upload it i will check it out for you
copy and paste it into here using [code ][/code ] X_x; don't want to download that. or use pastebin please ; ;
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> 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
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.
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). 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* That has to be the cutest little xml I have ever seen!
Yep, simple and clean. Nothing fancy but it has exactly what he asked for and it (finally) works.
|
||
All FFXI content and images © 2002-2024 SQUARE ENIX CO., LTD. FINAL
FANTASY is a registered trademark of Square Enix Co., Ltd.
|