Item Search
     
BG-Wiki Search
Results 1 to 13 of 13
  1. #1
    RIDE ARMOR
    Join Date
    Oct 2009
    Posts
    18
    BG Level
    1

    Spellcast Disable Equipments?

    Hi,

    I've been missing with spellcast for some time but I can't figure out:

    1- How to setup a rule that when I'm engage it disable switching weapons only or that it equip a certain weapon
    after casting while engaged?


    2- How can I disable equipment change during job ability while allowing equipment change for other spells?

    Thanks a lot

  2. #2
    Old Merits
    Join Date
    Apr 2009
    Posts
    1,174
    BG Level
    6
    FFXI Server
    Valefor

    Quote Originally Posted by Sontawila View Post
    Hi,

    I've been missing with spellcast for some time but I can't figure out:

    1- How to setup a rule that when I'm engage it disable switching weapons only or that it equip a certain weapon
    after casting while engaged?
    Code:
    		
    <if Status="Engaged">
         <action type="Disable" slot="main|sub|ranged" />
    </if>
    <else>
         <action type="enable" slot="main|sub|ranged" />
    </else>

    Quote Originally Posted by Sontawila View Post
    2- How can I disable equipment change during job ability while allowing equipment change for other spells?

    Thanks a lot
    Simple answer is write your rules correctly.

    Spellcast only changes your gear when a rule tells it to. So if you right your rules for spells correctly then when you are using a JA there is nothing for it to change.

    if you really need to actually do this then:
    Code:
    <if type="JobAbility">
             <action type="Disable" slot="main|sub|ranged|ammo|head|body|neck|lear|rear|legs|waist|hands|lring|Rring|Back" />
    </if>
    <else>
             <action type="enable" slot="main|sub|ranged|ammo|head|body|neck|lear|rear|legs|waist|hands|lring|Rring|Back" />
    </else>
    Not the neatest code ever but it should do what you want (although I still don't know why you would want this).

    Also, check the windower website (which I think is currently working) for SC advice

  3. #3
    RIDE ARMOR
    Join Date
    Oct 2009
    Posts
    18
    BG Level
    1

    Quote Originally Posted by Argettio View Post
    Code:
    		
    <if Status="Engaged">
         <action type="Disable" slot="main|sub|ranged" />
    </if>
    <else>
         <action type="enable" slot="main|sub|ranged" />
    </else>
    The problem with this is that the slots stays disabled even after the fight. The same goes for the jobability (I use a JA and it doesnt change equipment however the slots are now locked and no other changes are allowed)

    Any idea how to avoid this?

    Thanks again

  4. #4
    Banned.

    Join Date
    Oct 2007
    Posts
    5,674
    BG Level
    8

    Easier to just use locks, they occur for only that iteration of your code.

  5. #5
    RIDE ARMOR
    Join Date
    Oct 2009
    Posts
    18
    BG Level
    1

    How would I use that in a rule that will prevent weapon switching if TP is more than 10 or if to lock all equipment before, during and after using a JA?

    Something like this?:
    <if TPGT="15">
    <action type="lock" slot="main|sub|ranged" />
    </if>

  6. #6
    Old Merits
    Join Date
    Jan 2007
    Posts
    1,102
    BG Level
    6
    FFXI Server
    Phoenix

    I guess a better question would be. What are you trying to accomplish? There might be a better/easier way to do what you want then how your currently thinking.

  7. #7
    RIDE ARMOR
    Join Date
    Oct 2009
    Posts
    18
    BG Level
    1

    Ok, I'd like to equip a certain set for precast (fast cast) and then revert to Standard set after cast.
    1- The problem with this is that it changes even on JA and WS.
    2- Then when engaged and using lock or disable when TP is more than 15 keep the slot locked even if TP is lower than that.

    I'd also like to revert back to the Engaged set after casting any spells while engaged. I've manged only to do this by typing:

    <if Status="Engaged">
    <action type="equip" when="aftercast" set="Engaged" />
    </if>

    Here is a the first part of my rules:
    <rules>

    <action type="equip" when="precast" set="Fast Cast" />
    <action type="equip" when="aftercast" set="Standard" />
    <action type="aftercastdelay" delay="1" />



    <if spell="autoset">
    <action type="equip" when="resting" set="Resting Gear" />
    <action type="equip" when="idle" set="Standard" />
    <action type="equip" when="Engaged" set="Engaged" />
    </if>
    <if Status="Engaged">
    <action type="equip" when="aftercast" set="Engaged" />
    </if>

    And so on...

  8. #8
    Old Merits
    Join Date
    Jan 2007
    Posts
    1,102
    BG Level
    6
    FFXI Server
    Phoenix

    Well that is your problem
    Here is a the first part of my rules:
    <rules>

    <action type="equip" when="precast" set="Fast Cast" />
    <action type="equip" when="aftercast" set="Standard" />
    <action type="aftercastdelay" delay="1" />
    The aftercast is perfectly fine there however dont define a precast there. its going to apply it on everything do something like this:

    <if Type="*Magic|Ninjutsu">
    <action type="equip" when="precast" set="Fast Cast" />
    <action type="equip" when="midcast" set="Standard|%Skill" />
    </if>

    this will precast in fast cast. then try to cast in standard gear replacing pieces with appropriatly defined skill gear

    example
    Spell = "Thunder III"
    Skill will therefore be.. "ElementalMagic"
    precast = Fast Cast set
    MidCast = Standard set with ElementalMagic set overriding
    Aftercast = Standard set unless enguged then its Engaged set (as you defined prior)

  9. #9
    RIDE ARMOR
    Join Date
    Oct 2009
    Posts
    18
    BG Level
    1

    Thank you for this it worked fine (by typing <if Type="*Magic|Ninjutsu"> though)

    Now I need to figure out how to make the character when engaged and tp is less then whatever the rule is (say 15) change to the right staff for cast then change back to engaged equipment. Any thoughts?

  10. #10
    Old Merits
    Join Date
    Jan 2007
    Posts
    1,102
    BG Level
    6
    FFXI Server
    Phoenix

    use a flag? (var you set to 0 or 1)

    As for staff use some of the examples on windower.net

    define <element>staff items that are whatever staff you use
    then equip in weapon %SpellElementstaff
    that therefore gets resoved to look for say... "Icestaff"
    which your defination of Icestaff could be HQ or NQ depending on what you own.

    Really your best bet would be looking around at the examples on windower.net

  11. #11
    RIDE ARMOR
    Join Date
    Oct 2009
    Posts
    18
    BG Level
    1

    Thank you Hanyoko for the replies. I think you misunderstood my question. I know how to set var and set the staff based on spells

  12. #12
    RIDE ARMOR
    Join Date
    Oct 2009
    Posts
    18
    BG Level
    1

    The problem is whenever I'm engaged and have TP less than 15 (based on my rule) it didnt change to the appropriate staff. link on the next post to full code.

  13. #13
    RIDE ARMOR
    Join Date
    Oct 2009
    Posts
    18
    BG Level
    1

    Here is the link:

    Windower.net Pastebin - Pastebin [Windower.net]

    Again, thanks for the replies and I will keep trying to figure it out

Similar Threads

  1. BLM spellcasting and equipment swaping.
    By Zellgadiss in forum FFXI: Everything
    Replies: 2
    Last Post: 2008-05-20, 03:39
  2. RNG equipment
    By Wolfreign in forum FFXI: Everything
    Replies: 4
    Last Post: 2004-12-29, 10:35
  3. Ranger Equipment
    By in forum FFXI: Everything
    Replies: 2
    Last Post: 2004-12-23, 21:13
  4. RNG Equip
    By Shibs in forum FFXI: Everything
    Replies: 3
    Last Post: 2004-10-26, 03:19
  5. THF advice, Equip HNM stuff like that
    By in forum FFXI: Everything
    Replies: 2
    Last Post: 2004-10-23, 18:32
  6. Tanking Equipment Advice
    By Sillia in forum FFXI: Everything
    Replies: 1
    Last Post: 2004-10-23, 15:41
  7. AF2: only lot if you can equip
    By joft in forum FFXI: Everything
    Replies: 6
    Last Post: 2004-07-29, 07:31