Jump to content


Photo

Summoner aftercast


Best Answer Feary , 21 October 2013 - 07:11 PM

thanks for the tip. i havent condensed my .xml becuase i am still working on its functions. i tend to draft first, and however it comes out of my brain i jot down. Afterwards, i recode it with better logic amd condense the code.

 

i found out what was causing this issue.

 

using cusom variables named after spells.

example

 

<var name="Carbuncle">

changed it to

 

<var name="Carbuncleset">
Go to the full post


    6 replies to this topic

    #1 Feary

    Feary

      Member

    • Members
    • PipPip
    • 22 posts

      Posted 09 August 2013 - 10:16 PM

      im having an issue with my http://pastebin.com/Qge6FDDT xml.

       

      after using a pet command or bloodpact, its not returning me back to any of my aftercast rules.

       

      i have tried to add <addtochat> so see if the rule were even parsing and had no luck.



      #2 MIGhunter

      MIGhunter

        Member

      • Moderators
      • 24 posts

        Posted 10 August 2013 - 02:49 AM

        Don't use add to chat.  In the config for your xml, change it so that showgearswaps = "true"

         

        	
        	        <config
        	                        RequireVersion="2.40"
        	                        showGearSwaps="true"
                                        Debug="false"
                                        ShowSpellInfo="false"
        	                        AutoLoadXMLOnJobChange="true"
                                        />


        #3 Feary

        Feary

          Member

        • Members
        • PipPip
        • 22 posts

          Posted 11 August 2013 - 12:24 AM

          Thanks for the reply.

           

          ive been using both addtochat and showgearswaps. i prefered addtochat because i can name  and match by each set in an echo and then remove it when done  showgearswaps would formly show what all the gear values were for pre.mid and aftercast. now it just shows which has been has been changed.



          #4 Feary

          Feary

            Member

          • Members
          • PipPip
          • 22 posts

            Posted 11 August 2013 - 12:26 AM

                 <!--Equips Carbuncle Mitts for Carbuncle if enabled-->
                        <if advanced='"$CarbuncleMitts"=="1" AND "%PetName" == "Carbuncle"'>
                          <equip when="Engaged|Idle|Aftercast" set="Normalset">
                            <hands>Carbuncle Mitts</hands>
                          </equip>
                        </if>
                        <elseif advanced='"$DiabolosRope"=="1" AND "%PetName" == "Diabolos"'>
                          <equip when="Engaged|Idle|Aftercast" set="Normalset">
                            <waist>Diabolos Rope</waist>
                          </equip>
                        </elseif>
                        <else>
                          <addtochat color="121">bloodpact AfterCast</addtochat>
                          <equip when="Engaged|Idle|Aftercast" set="Normalset"/>
                        </else>
            
            


            #5 Feary

            Feary

              Member

            • Members
            • PipPip
            • 22 posts

              Posted 19 August 2013 - 10:35 PM

              still looking for some feedback.

               

              i cant seem to get the rules to work.



              #6 Arcon

              Arcon

                Advanced Member

              • Windower Staff
              • 1189 posts
              • LocationMunich, Germany

              Posted 20 August 2013 - 04:49 AM

              i have tried to add <addtochat> so see if the rule were even parsing and had no luck.

               

              What does that mean? No luck in parsing it, or no luck because it does and it just doesn't equip it?

               

              I can't see anything obviously wrong, although the rules could easily be reduced by over half their size and none of the advanced rules are needed. Check out the pet variables in here. Basically, every time you do advanced='"%Variable" == "value"' you can replace it with variable="value". It might not help with this particular problem, but it would make the code a lot easier to read and hence debug. It's also substantially faster (although you might still not notice it on any kind of modern computer).

               

              Personally I'd recommand to remove every single aftercast action and put this at the bottom:
               

              <equip when="aftercast|%status" set="%status set name" />
              
              For example, if you had an IdleDefault, EngagedDefault and AftercastDefault set, you could do:
               
              <equip when="aftercast|%status" set="%statusDefault" />


              #7 Feary

              Feary

                Member

              • Members
              • PipPip
              • 22 posts

                Posted 21 October 2013 - 07:11 PM   Best Answer

                thanks for the tip. i havent condensed my .xml becuase i am still working on its functions. i tend to draft first, and however it comes out of my brain i jot down. Afterwards, i recode it with better logic amd condense the code.

                 

                i found out what was causing this issue.

                 

                using cusom variables named after spells.

                example

                 

                <var name="Carbuncle">

                changed it to

                 

                <var name="Carbuncleset">





                1 user(s) are reading this topic

                0 members, 1 guests, 0 anonymous users