Announcement

Collapse
No announcement yet.

Spellcast

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Re: Spellcast

    Originally posted by Cotners View Post
    A useful script might be one that sleeps a mob and then overwrites it with sleep2 about 60 seconds later.
    It is possible to script that. The problem is you don't want your script forcing you to cast that sleep if something more important comes up, or missing the sleep if you're in the middle of another spell. That, and it gets into the "playing the game for you" area. The more ubiquitous script simply tracks when your sleeps were cast and puts warnings in your chat log that the sleep on X mob will wear off in Y seconds. I'm not currently using that but it's quite useful. I'm not in the habit of overwriting just because I'm durable enough to take the hit, and the mob walking over and taking a swing at me is usually suitable reminder that I need to resleep it, if I don't notice in the log.
    lagolakshmi on Guildwork :: Lago Aletheia on Lodestone

    Comment


    • #32
      Re: Spellcast

      No love for stacking Sleep II on top of Sleep, huh?

      The approach I outlined earlier should be viable, but I'd still worry about getting locked out on an interrupted casting. Alternatively you could just make it toggle a variable between two states so that it tries to cast whichever version you didn't cast previously. It'd still be kinda sloppy but you'd only ever be two clicks on the same macro from breaking out of a lock.
      Server: Midgardsormr -> Quetzalcoatl -> Valefor
      Occupation: Reckless Red Mage
      Name: Drjones
      Blog: Mediocre Mage

      Comment


      • #33
        Re: Spellcast

        That's not a bad idea either. What I really want to do of course is use the actual current recast time as a comparison value. I feel like there has to be a way to write an advanced rule to do that. That'll be my project for this evening after I take a new SWN member pic.
        lagolakshmi on Guildwork :: Lago Aletheia on Lodestone

        Comment


        • #34
          Re: Spellcast

          Ideally what we want is something that indicates whether or not a spell was cast successfully or got interrupted. From there setting a timer for toggling should be simple enough.
          Server: Midgardsormr -> Quetzalcoatl -> Valefor
          Occupation: Reckless Red Mage
          Name: Drjones
          Blog: Mediocre Mage

          Comment


          • #35
            Re: Spellcast

            I know it's ghettofied but why not just put both spells in the macro and let the game's natural recast timers sort it out?

            Just like this:

            /ma "Sleep" <t>
            /ma "Sleep II" <t>

            Put a wait in there if it doesn't recognize the second spell so soon after the first one, but I used to put my SMN BP macros that way, like

            /pet "Fire II" <t>
            /pet "Stone II" <t>
            /pet "Blizzard II" <t>
            /pet "Thunder II" <t>
            /pet "Aero II" <t>
            /pet "Water II" <t>

            and the game would pick out the one that would actually work while giving me "A command error has occurred" for all the other ones. It's ghetto as hell but it saved me from having to make a different set of macros for every avatar.

            I'm not sure if it would parse the same way for Sleeps since those are both spells native to the caster and not dependent on a certain pet to be out. And it is kind of a ghetto way to do it, but the game will pick one based on which cooldown is up, although it will not know to overwrite Sleep with Sleep II. Which I guess is something you are wanting to do. So I guess that doesn't really do what you want it to do. But it's something, I guess.
            sigpic
            ~Aksannyi~~Hades~~75WHM~75RDM~75BLM~75SMN~73WAR~67SCH~47BRD~
            ~Mama Gamer~~Quitted July 2009/Bannt October 2009~~Excellence LS~
            ~I has a blog~~http://aksannyi.livejournal.com/~
            ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~




            Comment


            • #36
              Re: Spellcast

              Originally posted by Aksannyi View Post
              I know it's ghettofied but why not just put both spells in the macro and let the game's natural recast timers sort it out?

              Just like this:

              /ma "Sleep" <t>
              /ma "Sleep II" <t>

              Put a wait in there if it doesn't recognize the second spell so soon after the first one
              /ma Sleep <stnpc>
              /ma "Sleep II" <lastst>

              That's what I used to do. Iirc without the /wait it gives "command error occurred" or something and never casts the second spell—probably because lastst doesn't get set quickly enough. With the /wait it becomes much more challenging to cast sleep between attack rounds if you're getting beat on and your stoneskin is down. Also it was impossible to use that method if you have your macros daisy-chained through eachother to switch all your gear, or for that matter if you wanted to swap more than 3 things, which obviously isn't a problem now that I'm using spellcast but that's probably why I stopped doing it.
              lagolakshmi on Guildwork :: Lago Aletheia on Lodestone

              Comment


              • #37
                Re: Spellcast

                Originally posted by Aksannyi View Post
                I know it's ghettofied but why not just put both spells in the macro and let the game's natural recast timers sort it out?

                Just like this:

                /ma "Sleep" <t>
                /ma "Sleep II" <t>

                Put a wait in there if it doesn't recognize the second spell so soon after the first one, but I used to put my SMN BP macros that way, like

                /pet "Fire II" <t>
                /pet "Stone II" <t>
                /pet "Blizzard II" <t>
                /pet "Thunder II" <t>
                /pet "Aero II" <t>
                /pet "Water II" <t>

                and the game would pick out the one that would actually work while giving me "A command error has occurred" for all the other ones. It's ghetto as hell but it saved me from having to make a different set of macros for every avatar.

                I'm not sure if it would parse the same way for Sleeps since those are both spells native to the caster and not dependent on a certain pet to be out. And it is kind of a ghetto way to do it, but the game will pick one based on which cooldown is up, although it will not know to overwrite Sleep with Sleep II. Which I guess is something you are wanting to do. So I guess that doesn't really do what you want it to do. But it's something, I guess.
                I do this for Aspir and Aspir 2. I will hit the macro once to cast aspir and hit it again for aspir2. it does require a slight delay in there. I will check my macros when I get home from work.
                sigpic

                Comment


                • #38
                  Re: Spellcast

                  Bumping this for two reasons:

                  1. I'm curious to know if Taskmage got anywhere with his Sleep project.

                  2. I got bored and decided to spend some time tweaking my code for hopefully improved efficiency and I'd like some feedback: [XML] RDM.XML - Pastebin.com
                  Server: Midgardsormr -> Quetzalcoatl -> Valefor
                  Occupation: Reckless Red Mage
                  Name: Drjones
                  Blog: Mediocre Mage

                  Comment


                  • #39
                    Re: Spellcast

                    Ya'll may find this useful... I added this code to swap to the appropriate macros after a job change. Actually, the macro swaps take place the first time you perform an action that spellcast would catch after changing jobs. No more forgetting to change macro books/sets for me!

                    <variables>
                    <var Name="SetMacros">1</var>
                    </variables>
                    <rules>
                    <!-- Change Macros to Default Book! -->
                    <if advanced='"$SetMacros"=="1"'>
                    <action type="command">sc var set SetMacros "0";</action>
                    <action type="command">input /macro book 12;</action>
                    <!-- Change Macro Set based on Subjob -->
                    <if subjob="DNC">
                    <action type="command">input /macro set 10;</action>
                    </if>
                    <elseif SubJob="NIN">
                    <action type="command">input /macro set 9;</action>
                    </elseif>
                    <elseif SubJob="WAR">
                    <action type="command">input /macro set 8;</action>
                    </elseif>
                    <else>
                    <action type="command">input /macro set 10;</action>
                    </else>
                    </if>

                    WHM99 - RDM99 - WAR99 - BRD99 - MNK99 - BLM99 - DNC99 - SCH 99 - BST 99
                    WorldSlayers ~ Asura http://sillygalka.blogspot.com

                    Comment

                    Working...
                    X