Jump to content


Photo

spellcast


    9 replies to this topic

    #1 krilton

    krilton

      Advanced Member

    • Members
    • PipPipPip
    • 71 posts

      Posted 14 September 2014 - 10:39 PM

      for a plugin that is "supposedly" dead, it should has been updated by someone. I use to be able to use the $pet to have pet gear returned if casting a spell now it goes straight to my idle gear. I know its not any xml because i've restore that script to a prior backup date.



      #2 sdahlka

      sdahlka

        Advanced Member

      • Members
      • PipPipPip
      • 324 posts

        Posted 14 September 2014 - 11:11 PM

        as stated before if any thing breaks in spell cast i will not be fixed
         
        if you want spellcast functionality you need to use:
        shortcuts - for the spell shortcuts (i.e. for cure use /c1)

        gearswap - for gear swaps

         

        not to mention

        gearswap is faster

        gearswap is more capable

        if you can write it in lua you can do it in gearswap(almost)



        #3 krilton

        krilton

          Advanced Member

        • Members
        • PipPipPip
        • 71 posts

          Posted 14 September 2014 - 11:36 PM

          ok, riddle me this batman...

           

          what is the easiest way to convert my spellcast script to a lua script?



          #4 sdahlka

          sdahlka

            Advanced Member

          • Members
          • PipPipPip
          • 324 posts

            Posted 15 September 2014 - 12:21 AM

            it depend on your spellcast script

             

            here is some info

            http://wiki.windower...:gearswap:start

             

            this is the best place to find help

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

             

            here is some ware lost of premade scripts are located

            http://www.bluegartr...wap-Shop-Thread

             

            here is a basic tut

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

             

            unfortunately there is no way to convert directly to gearswap you have to do it by hand



            #5 sdahlka

            sdahlka

              Advanced Member

            • Members
            • PipPipPip
            • 324 posts

              Posted 15 September 2014 - 12:27 AM

              this is a basic layout if you dont need the function just remove it or add a return in it or it will error
               
              http://pastebin.com/LMkPUbZv



              #6 krilton

              krilton

                Advanced Member

              • Members
              • PipPipPip
              • 71 posts

                Posted 15 September 2014 - 02:17 AM

                when time permits and i can look over everything you have given and begin the coverting process, i thank you for what you have given.



                #7 krilton

                krilton

                  Advanced Member

                • Members
                • PipPipPip
                • 71 posts

                  Posted 15 September 2014 - 02:30 AM

                  Two other things that hopefully you can answer.

                   

                  First, being able to revert back to "pet" gear automatically after curing

                  Lastly, being able to determine gear used by where you are at... (Set A only in towns while Set B is everywhere else)



                  #8 sdahlka

                  sdahlka

                    Advanced Member

                  • Members
                  • PipPipPip
                  • 324 posts

                    Posted 15 September 2014 - 02:48 AM

                    Two other things that hopefully you can answer.

                     

                    First, being able to revert back to "pet" gear automatically after curing

                    Lastly, being able to determine gear used by where you are at... (Set A only in towns while Set B is everywhere else)

                    for citys you can do something like this but you would still have to heal once in a city

                    http://pastebin.com/6wT7bcnu

                    there is a way to automate it on zone change but that you would have to figure it out on your own

                     

                    the pet one you can do this

                    http://pastebin.com/jJyyhduW

                     

                    by no meens are these the be all end all ways to do them just examples

                    also these links will only work for 24 hrs



                    #9 Iryoku

                    Iryoku

                      Advanced Member

                    • Windower Staff
                    • 488 posts

                      Posted 18 September 2014 - 12:16 AM

                      There is a partially working Spellcast-to-Gearswap translator. I was never really able to get people to test it, and interest died out so I stopped working on it. It's also quite a bit more strict than Spellcast was, as it's based on a new parser that was going to be used for Spellcast 3. You can use the online frontend or download a command line version to run it locally on your PC. If you use the online version you need to upload all of the include files as well.

                       

                      The online version has zero error reporting, so if there's a problem translating your script it will just give you a blank page. Even if it works for your script, the result may not be completely compatible with Gearswap. The logic should all be correct, but some variable names may be wrong and the scaffolding needed to emulate certain Spellcast idiosyncrasies may not function correctly.

                       

                      If you find any bugs, or have feedback, I'd love to hear about it.

                       

                      Edit: In no way do I advocate writing Lua the way the translator does. The translator takes a very mechanical approach, and is attempting to faithfully recreate the behavior of Spellcast. It also does some very radical code transformations, and makes heavy use of constant folding and branch pruning to keep things under control. This tends to create some very strange constructions in the resulting output.


                      Edited by Iryoku, 18 September 2014 - 12:27 AM.


                      #10 krilton

                      krilton

                        Advanced Member

                      • Members
                      • PipPipPip
                      • 71 posts

                        Posted 21 September 2014 - 02:08 AM

                        I've been using a lua script that was listed from BG's website and for the most part it does everything my spellcast script did and then some.

                        One thing it does should my gear change while in town, having avatar already summoned, and i exit that my avatar set is automatically loaded. Now, is there some way i could reverse that so when i go into town that my idle set auto equips?






                        1 user(s) are reading this topic

                        0 members, 1 guests, 0 anonymous users