Jump to content


Photo

Blm lua not working


Best Answer Gukai , 28 October 2014 - 02:58 PM

Yay works!  

 

I had issues with low-tier nukes, the stone neck kept equipping in the precast.  So I changed the rule from specifying stone1/2 & stonega to 

spell.english:startswith('Stone') then

just like in the midcast.  This fixed things.

 

showswaps displayed proper nuking sets for all spells, except impact which I havent checked since I have the body on the porter moogle.  Cure spells worked too, for both low and high tier cures.  

 

I'm a happy camper, thank you Kenshi for your help!

Go to the full post


    11 replies to this topic

    #1 Gukai

    Gukai

      Advanced Member

    • Members
    • PipPipPip
    • 95 posts

      Posted 26 October 2014 - 11:14 PM

      I'm getting pissed because I fix one thing and turn on showswaps and find something else not working.  I've decided that someone needs to look this over before I go postal.  

       

      My annoyances (some were working, now they arent):

      • Cure precast isnt activating.  showgears is displaying my stone neckpiece, none of the healing precast gear.  It doesnt matter if it's cure 2 or 4.  By the way, cure 2 is supposed to precast in the midcast gear while cure 4 has a healing magic precast set.
      • elemental precast isnt working.  showgears has the stone neckpiece on.
      • All stone spells are precasting in the miscast stone nuking gear.  thats only supposed to happen for stone 1/2 and stonega 1.  

      File is attached



      #2 sdahlka

      sdahlka

        Advanced Member

      • Members
      • PipPipPip
      • 324 posts

        Posted 26 October 2014 - 11:17 PM

        you forgot to attach your file



        #3 Gukai

        Gukai

          Advanced Member

        • Members
        • PipPipPip
        • 95 posts

          Posted 27 October 2014 - 12:58 AM

          ... its not letting me.  says im not permitted to upload my lua...   /headdesk... trying to find settings but coming up with crap



          #4 sdahlka

          sdahlka

            Advanced Member

          • Members
          • PipPipPip
          • 324 posts

            Posted 27 October 2014 - 12:59 AM

            then post it to pastbin and put the link here



            #5 Gukai

            Gukai

              Advanced Member

            • Members
            • PipPipPip
            • 95 posts

              Posted 27 October 2014 - 01:05 AM

              So glad you mentioned that... couldnt remember the site to post into and all i was finding was the github or whatnot and I knew that wasnt the one i used  years back.  

               

              Here's the link

              http://pastebin.com/CAfX1SWD

               

              I'm happily available to type back and forth over skype or something too



              #6 sdahlka

              sdahlka

                Advanced Member

              • Members
              • PipPipPip
              • 324 posts

                Posted 27 October 2014 - 01:45 AM

                ok for the stone issue the only thing i can see is that this code causes you to put on your stone set as soon as you start casting any stione spell

                        elseif spell.english:startswith('Stone') then
                            equip(sets.midcast.Stone)       
                 


                for the cure neck problem make sure all the gear you want to use on your job is in your gobbie bag or your wardrobe not your sack,satchel,case,locker,storage or safe  

                because the code you posted should work

                this might also be the issue with your elemental precast

                 

                you must remember that precast is when you put the command in midcast is once your char starts casting any spell/ability/ws

                 

                to see what even your in

                use

                gs debug_mode

                to see what gear is changed

                use

                gs show_swaps

                 

                you can use both at the same time to see what gears is equipping at what time



                #7 sdahlka

                sdahlka

                  Advanced Member

                • Members
                • PipPipPip
                • 324 posts

                  Posted 27 October 2014 - 01:58 AM

                  my above post assumes that you blm is at the lvl to equip all the items in your gearsets



                  #8 Gukai

                  Gukai

                    Advanced Member

                  • Members
                  • PipPipPip
                  • 95 posts

                    Posted 27 October 2014 - 08:25 AM

                    So here's what I did... i started putting -- before specific rules so I could at least get a base to see if the rules would work without them.  So lines 255/256, 261/262, 264/265, 267, 271/272, 274, 300/301 were -- so they wouldnt affect things.

                     

                    All spells precast and midcast worked correctly.  

                     

                    Next step is to slowly put stuff back in, keep testing things, and see where things screw up.  Unfortunately I put 261/262 back first, and everything went to crap.  Elemental spells and Cure spells were precasting in the wrong gear...both were using the neckpiece for stone spells.

                     

                    Stoneskin went fine though.  Something tells me it is involving the ordering of the rules I have...

                    	if spell.action_type == 'Magic' or spell.type == 'Ninjutsu' then
                    --		if spell.english == 'Impact' then
                    --			equip(sets.precast.HasteElemental,{body="Twilight Cloak"})
                    		if spell.english == 'Stoneskin' then
                    			equip(sets.precast.HasteStoneskin)
                    		elseif spell.english == 'Cursna' then
                    			equip(sets.midcast.Cursna)
                    		elseif spell.english == 'Stone' or 'Stone II' or 'Stonega' then
                    			equip(sets.midcast.Stone)
                    		elseif spell.skill == 'Elemental Magic' then
                    --			if spell.cast_time < 9 then
                    --				equip(sets.midcast['Elemental Magic'])
                    			equip(sets.precast.HasteElemental)
                    --			end
                    		elseif spell.skill == 'Enhancing Magic' then
                    			equip(sets.precast.HasteEnhancing)
                    		elseif spell.skill == 'Healing Magic' then
                    --			if spell.cast_time < 9 then
                    --				equip(sets.midcast['Healing Magic'])
                    			equip(sets.precast.HasteHealing)
                    --			end
                    		else equip(sets.precast.Fastcast)
                    		end
                    

                    In my precast, when I define magic, i first give rules for stoneskin, then cursna.. those work fine.  Then I define what to do for stone/stoneII/stonega, then there are the precast rules for elemental magic, enhancing, healing, etc.  For some reason the stone stuff is over-riding the precast rules that follow afterwards.  The precast rules pre-lines 261/262... fine... the stuff after those lines... messing up.

                     

                    Just an fyi, I intentionally set stone 1/2 & stonega 1 to use the midcast gearset during the precast.  the spells go off so fast that the gear doesnt change fast enough for midcast to kick in



                    #9 Kenshi

                    Kenshi

                      Advanced Member

                    • Members
                    • PipPipPip
                    • 334 posts

                      Posted 27 October 2014 - 12:39 PM

                      if spell.action_type == 'Magic' or spell.type == 'Ninjutsu' then
                              if spell.skill == 'Elemental Magic' then
                      --            if spell.cast_time < 9 then
                      --                equip(sets.midcast['Elemental Magic'])
                                    elseif spell.name == 'Impact' then
                      --                equip(sets.precast.HasteElemental,{body="Twilight Cloak"})
                                    elseif spell.name == 'Stone' or 'Stone II' or 'Stonega' then
                                        equip(sets.midcast.Stone)
                                    else 
                                        equip(sets.precast.HasteElemental)
                      --            end
                              elseif spell.skill == 'Enhancing Magic' then
                                    if spell.name == 'Stoneskin' then
                                       equip(sets.precast.HasteStoneskin)
                                    else equip(sets.precast.HasteEnhancing)
                                    end
                              elseif spell.skill == 'Healing Magic' then
                      --            if spell.cast_time < 9 then
                      --                equip(sets.midcast['Healing Magic'])
                                    elseif spell.name == 'Cursna' then
                                        equip(sets.midcast.Cursna)
                                    else
                                        equip(sets.precast.HasteHealing)
                      --            end
                              else equip(sets.precast.Fastcast)
                              end
                      end
                      

                      Try this, I use spell.name instead of spell english not sure what the diference is, but  in the variables file it appears as spell.name. I guess spell.name you have to use the languague of your client and in spell.english just the english name regardless of your client but not sure.



                      #10 Gukai

                      Gukai

                        Advanced Member

                      • Members
                      • PipPipPip
                      • 95 posts

                        Posted 27 October 2014 - 03:29 PM

                        Hi Kenshi,

                        Quick question, with the elemental magic, stone 1/2 and stonega fall under the casting time rules too.  wouldnt I need to put something like:

                         

                        if spell.skill == 'Elemental Magic' then
                           if spell.cast_time < 9 then
                                if spell.name == 'Stone' or 'Stone II' or 'Stonega' then
                                    equip(sets.midcast.Stone)
                                else equip(sets.midcast['Elemental Magic'])
                                end
                           elseif spell.name == 'Impact' then
                                equip(sets.precast.HasteElemental,{body="Twilight Cloak"})
                           end
                                          
                        

                        I'm at work so I cant try, but that just came to mind in reading your posting



                        #11 Kenshi

                        Kenshi

                          Advanced Member

                        • Members
                        • PipPipPip
                        • 334 posts

                          Posted 27 October 2014 - 07:00 PM

                          I have never used spell.cast_time but if the cast time of stone is in the range that you set yea, you are right.

                          #12 Gukai

                          Gukai

                            Advanced Member

                          • Members
                          • PipPipPip
                          • 95 posts

                            Posted 28 October 2014 - 02:58 PM   Best Answer

                            Yay works!  

                             

                            I had issues with low-tier nukes, the stone neck kept equipping in the precast.  So I changed the rule from specifying stone1/2 & stonega to 

                            spell.english:startswith('Stone') then
                            

                            just like in the midcast.  This fixed things.

                             

                            showswaps displayed proper nuking sets for all spells, except impact which I havent checked since I have the body on the porter moogle.  Cure spells worked too, for both low and high tier cures.  

                             

                            I'm a happy camper, thank you Kenshi for your help!






                            1 user(s) are reading this topic

                            0 members, 1 guests, 0 anonymous users