• Visit Rebornbuddy
  • Actionmanager.LastSpell.Name

    Discussion in 'Community Developer Forum' started by Endus, Nov 5, 2014.

    1. Endus

      Endus Community Developer

      Joined:
      Jul 9, 2012
      Messages:
      458
      Likes Received:
      6
      Trophy Points:
      18
      When using:

      Code:
      Log(Actionmanager.LastSpell.Name);
      From the console, it will tell you the last spell that you used. Being able to see the last spell used comes in handy for making combos in Combat Routines.

      However, when checking Ninja/Rogue (specifically with Ninjutsu, Ten, Chi, Jin, etc.), I noticed a lot of spells either give no response or come back as "EmptySpell". Is there a reason, or is it a bug?
       
      Last edited: Nov 6, 2014
    2. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      I thought it only worked on spells that are part of a combo and Ninjutsu, Ten, Chi, Jin don't count XD

      I remember reading it pulls the data directly from the game, so if the game doesn't keep track of it, results will be null
       
    3. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      If the boy could read the chatlog you could keep a cache of what spell your CR last used, then read the battle log to verify that it hit the enemy, and make your own LastSpellUsed function. Currently the bot can't read chat, but all the code necessary is in FFXIV-App which is open source, so you could write your own code to read chat and then you'd be fine.
       
    4. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      i heard that chat parsing like that slows down your ticks a lot. You can use the returned bool on do action to make your own variable for it without the performance drop :p
       
    5. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      Do that then?
       
    6. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,231
      Likes Received:
      364
      Trophy Points:
      83
      LastSpell is really a misnomer, it really should be called LastComboSpell
       

    Share This Page