Jump to content


Photo

Spellcast Error equiping SUB


Best Answer Arcon , 18 September 2013 - 05:14 AM

<if status="engaged">
	<if subjob="NIN|DNC">
		<var cmd="set Sub NSub" />
	</if>
	<else>
		<var cmd="set Sub SSub" />
	</else>
	<command when="Precast|Aftercast|Engaged">input /equip main "$Main";wait 0.5;input /equip sub "$Sub"</action>
	<disable slot="main|sub|ammo" />
</if>
<else>	
	<equip when="aftercast|idle" set="StaffStandard" />
</else>

Same as above, only removed <action> tags. They have been deprecated for many years now. They were planned to be removed in the next SpellCast version (although it might not be released at this point).

Go to the full post


    4 replies to this topic

    #1 trap is jesus

    trap is jesus

      Member

    • Members
    • PipPip
    • 14 posts

      Posted 15 August 2013 - 05:05 PM

      Hello so i have my Spellcast sorted now but there is 1 things thats broke..... When i ide in my Staff and Grip and engage a Mob it will switch to DD gear but it will only equip my Main and not my sub..... I get ""You can only equip a sub-weapon when your Main weapon is a One-handed weapon"" Obviously it is lol.     I also tried putting my <main</main> on top line and <sub></sub> on the very bottom line but still no luck....

      Is there any help you guys could give me please :) Thanks for any Help/reply's Given :)



      #2 MIGhunter

      MIGhunter

        Member

      • Moderators
      • 24 posts

        Posted 17 August 2013 - 05:15 AM

        I'm assuming you have dual wield.  Easiest way is to make a macro //sc c melee or make a bind so that you an quickly do it.  Another option is to put an if statement in your spellcast that checks for engaged and your sub

         

        <if status="engaged">
           <if subjub="nin|dnc|thf">
              <equip sub="weapon">
           </if>
           <else>
              <equip sub-"grip">
           </else>
        </if>
        


        #3 Alteubent

        Alteubent

          Newbie

        • Members
        • Pip
        • 7 posts

          Posted 09 September 2013 - 05:46 AM

          This is possible with normal status rules. I'm guessing the set thats being called references a baseset or that your engaged set doesnt have enough pieces of gear listed in between main and feet. My xmls have always worked using status rules the way you are trying to. If you cant get it to work post your xml and I will take a look at it.



          #4 Cptbirdseye

          Cptbirdseye

            Advanced Member

          • Members
          • PipPipPip
          • 88 posts

            Posted 18 September 2013 - 12:00 AM

            This is a normal issue when switching to dual wield weapons.  My only fix was to make variables for main and sub weapons and to use these lines of code:

             

            <if status="engaged">
            	<if subjob="NIN|DNC">
            		<action type="var" cmd="set Sub NSub" />
            	</if>
            	<else>
            		<action type="var" cmd="set Sub SSub" />
            	</else>
            	<action type="command" when="Precast|Aftercast|Engaged">input /equip main "$Main";wait 0.5;input /equip sub "$Sub"</action>
            	<action type="Disable" slot="main|sub|ammo" />
            </if>
            <else>	
            	<action type="equip" when="aftercast|idle" set="StaffStandard" />
            </else>
            


            #5 Arcon

            Arcon

              Advanced Member

            • Windower Staff
            • 1189 posts
            • LocationMunich, Germany

            Posted 18 September 2013 - 05:14 AM   Best Answer

            <if status="engaged">
            	<if subjob="NIN|DNC">
            		<var cmd="set Sub NSub" />
            	</if>
            	<else>
            		<var cmd="set Sub SSub" />
            	</else>
            	<command when="Precast|Aftercast|Engaged">input /equip main "$Main";wait 0.5;input /equip sub "$Sub"</action>
            	<disable slot="main|sub|ammo" />
            </if>
            <else>	
            	<equip when="aftercast|idle" set="StaffStandard" />
            </else>
            

            Same as above, only removed <action> tags. They have been deprecated for many years now. They were planned to be removed in the next SpellCast version (although it might not be released at this point).






            1 user(s) are reading this topic

            0 members, 1 guests, 0 anonymous users