Jump to content


Photo

Spellcast


    6 replies to this topic

    #1 krilton

    krilton

      Advanced Member

    • Members
    • PipPipPip
    • 71 posts

      Posted 12 June 2014 - 12:36 AM

      Is spellcast done with as far as updates? 

       

      I've tried working on gearswap with the following bit of code and nothing happens:

       

      function get_sets
      sets.precast=(Body="Nefer Kalasiris")
      sets.aftercast={Body="Orison Bliaud +2"}
      end
       
      function precast(Cure)
      equip{sets.precast}
      end
       
      function aftercast(Cure)
      equip{sets.aftercast}
      end
       
      I have the file saved in the right spot and named accordingly because gearswap loads successfully.
       
      what am i doing wrong?


      #2 Zigbar

      Zigbar

        Advanced Member

      • Members
      • PipPipPip
      • 43 posts

        Posted 12 June 2014 - 01:48 AM

        Yes, Spellcast is dead. This is pretty basic. I took my WHM GS and took out everything that was irrelevant to your issue.

         

        function get_sets()
         
        sets.Idle = {} ---You can define a base set here if you desire---
        sets.Idle.Refresh = {body="random refresh body"}
         
        sets.Precast = {} ---You can define a base set here if you desire---
        sets.Precast.Cure = {body="Nefer Kalasiris}
         
        sets.Midcast = {} ---You can define a base set here if you desire---
        sets.Midcast.Cure = {body="Orison Bliaud +2"}
         
        function precast (spell,action)
         
        if string.find(spell.english,'Cur') and spell.english~="Cursna" then
        equip(sets.Precast.Cure)
        end
        end
         
        function midcast(spell,action)
        equipSet = {}
        
        if string.find(spell.english,'Cur') and spell.english ~= "Cursna" then
        if string.find(spell.english,'Cure') then
        equipSet = equipSet.Cure
        end
        end
        end
         
        function aftercast(spell,action)
        status_change(player.status)
        end
        
         
        function status_change(new.old)
        if new == 'Idle' then
        equip(sets.Idle)
        end
        end
         
        end
        


        #3 krilton

        krilton

          Advanced Member

        • Members
        • PipPipPip
        • 71 posts

          Posted 12 June 2014 - 04:48 PM

          that's a start but going by what you have shown, it won't do anything for an "aftercast/idle" Is there a "HOWTO" somewhere that i can read that has basic information that shows how to get everything setup and what things mean? 



          #4 sdahlka

          sdahlka

            Advanced Member

          • Members
          • PipPipPip
          • 324 posts

            Posted 12 June 2014 - 05:24 PM

            there is but im not sure ware that is but untill someone posts it if you go to

            Windower4\addons\GearSwap\beta_examples_and_information

            you can find all the info on functions, etc. and a few examples made by byrth (gearswaps writer)

             

            also here is a basic script(add and remove as you need to)(this will self destruct in 24 hours)

            http://pastebin.com/tvxKiwGT

             

            also for geaswap help the best place to go is here

            http://www.bluegartr...767#post6135767



            #5 Zigbar

            Zigbar

              Advanced Member

            • Members
            • PipPipPip
            • 43 posts

              Posted 12 June 2014 - 05:29 PM

              that's a start but going by what you have shown, it won't do anything for an "aftercast/idle" Is there a "HOWTO" somewhere that i can read that has basic information that shows how to get everything setup and what things mean? 

              What I gave you will have you idle in refresh gear. Then when you go to cure you'll switch to precast.cure gear then midcast.cure gear (the cure pot/healing skill/MND gear) and then when the spell is finished you'll switch back to idle gear.

               

              http://www.ffxiah.com/node/145

              http://www.bluegartr...ap-Help-Thread!



              #6 Arcon

              Arcon

                Advanced Member

              • Windower Staff
              • 1189 posts
              • LocationMunich, Germany

              Posted 14 June 2014 - 07:22 AM

              You should use code tags to post code, i.e. [ code]stuff[/code] (without the space), not spoiler tags (or no tags at all). That will preserve formatting and is easier to debug for other people who read it.



              #7 Arcon

              Arcon

                Advanced Member

              • Windower Staff
              • 1189 posts
              • LocationMunich, Germany

              Posted 14 June 2014 - 07:23 AM

              Also, just to point it out, Spellcast is not dead, it's just not officially supported anymore. It won't receive future bug fixes, but it works fine as of now and will continue to do so until SE breaks it. You should convert to GearSwap, but you don't have to do it by tomorrow, you can gradually phase Spellcast out.






              1 user(s) are reading this topic

              0 members, 1 guests, 0 anonymous users