• Visit Rebornbuddy
  • [ChocoboCompanionStanceDancer] Changes companion stance based on health percent

    Discussion in 'Plugins' started by Cloud30000, Sep 9, 2015.

    1. Cloud30000

      Cloud30000 New Member

      Joined:
      May 9, 2015
      Messages:
      298
      Likes Received:
      7
      Trophy Points:
      0
      This plugin will change the stance of your chocobo based on selected settings:
      [​IMG]
      The checkbox on the left toggles the use of each stance.
      The numeric selection box on the right sets the threshold for the stance to take affect.
      The dropdown chooses whether to wait until you drop below the threshold or until you rise back above it before engaging the stance.

      It will not let you set a value for a rising threshold to be lower then any active dropping thresholds and vice versa to prevent getting stuck with two stances constantly fighting to be active.

      Remember that this only works on botbases that permit plugins; so, for instance, this will work in Fatebot but will not work in Combat Assist; to get stance dancing to work in Combat Assist, it would need to be built into the actual CR.

      I've only very lightly tested this, so your mileage may vary on issues and usefullness.

      View attachment ChocoboCompanionStanceDancer.zip
       
      Last edited: Sep 14, 2015
      hkme likes this.
    2. Tinytox

      Tinytox Member

      Joined:
      Nov 5, 2014
      Messages:
      370
      Likes Received:
      7
      Trophy Points:
      18
      Great idea! Can't wait to try it out!
       
    3. Dgame

      Dgame Member

      Joined:
      Aug 19, 2014
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      16
      Thank you, Thank you!!
       
    4. Dgame

      Dgame Member

      Joined:
      Aug 19, 2014
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      16
      Not sure if working as intended. Massive logs are being created. Seems like it's spamming status checks.

      Code:
      [04:01:18.082 N] RebornBuddy 1.0.316.0
      [04:01:21.251 N] Logging in...
      [04:01:22.330 N] T: 5247460563240924434 H: 2058382390
      [04:01:23.391 D] Microsoft Windows NT 6.2.9200.0
      [04:01:24.901 D] Current Locale Eng
      [04:01:24.901 N] Currently a level 57 Paladin
      [04:01:24.905 D] Reloading AssemblyLoader<ff14bot.AClasses.BotBase> - Initializing
      [04:01:28.472 N] [Lisbeth] Lisbeth was loaded successfully.
      [04:01:28.586 D] [BotManager] Botbases have been reloaded.
      [04:01:28.586 D] Chocobot v1.0.0.0
      [04:01:28.586 D] ChocoboTrainer v1.0.316.0
      [04:01:28.586 D] Gardening bot v1.0.316.0
      [04:01:28.586 D] Lisbeth v0.0.0.0
      [04:01:28.586 D] Mud Assist v2.0.4.0
      [04:01:28.586 D] Combat Assist v1.0.316.0
      [04:01:28.587 D] Fate Bot v1.0.316.0
      [04:01:28.587 D] PvP v1.0.316.0
      [04:01:28.587 D] Fishing v1.0.316.0
      [04:01:28.587 D] Grinding v1.0.316.0
      [04:01:28.587 D] Gathering v1.0.316.0
      [04:01:28.587 D] Order Bot v1.0.316.0
      [04:01:28.612 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Initializing
      [04:01:28.875 N] [Lisbeth] Logged in.
      [04:01:29.556 N] [Agil] Agil was loaded successfully.
      [04:01:30.036 N] [Agil] Logged in.
      [04:01:32.344 N] [Destiny] Destiny was loaded successfully.
      [04:01:36.116 N] [Animus] - Book Id - 9
      [04:01:36.123 D] [PluginManager] Plugins have been reloaded.
      [04:01:36.123 D] Agil v3.5.0
      [04:01:36.123 D] Animus Book HS v1.7.1
      [04:01:36.123 D] Chanko v0.0.1.0
      [04:01:36.123 D] ChocoboCompanionStanceDancer v1.0.0.0
      [04:01:36.123 D] CombatPotGuy v1.0.0.0
      [04:01:36.123 D] Destiny v3.0.0.7
      [04:01:36.123 D] MedicineGuy v1.0.0.0
      [04:01:36.124 D] QuestDevTools v0.0.1
      [04:01:36.124 D] RebornConsole v0.0.1
      [04:01:36.124 D]  RetBot v2.1.5
      [04:01:36.124 D] CRManager v1.0.2
      [04:01:36.124 D]  Wimpy v0.0.2
      [04:01:36.126 D] Added new hook [PreCombatLogic] 97499a09-1ecc-491b-af41-a0a0e9ecae73
      [04:01:36.126 N] Wimpy hooked.
      [04:01:36.126 N] Building Actioncache
      [04:01:37.840 N] Action Name:Sprint Action Id:3
      [04:01:37.840 N] Action Name:Fast Blade Action Id:9
      [04:01:37.840 N] Action Name:Rampart Action Id:10
      [04:01:37.840 N] Action Name:Savage Blade Action Id:11
      [04:01:37.840 N] Action Name:Convalescence Action Id:12
      [04:01:37.840 N] Action Name:Awareness Action Id:13
      [04:01:37.840 N] Action Name:Flash Action Id:14
      [04:01:37.840 N] Action Name:Riot Blade Action Id:15
      [04:01:37.840 N] Action Name:Shield Bash Action Id:16
      [04:01:37.840 N] Action Name:Sentinel Action Id:17
      [04:01:37.840 N] Action Name:Provoke Action Id:18
      [04:01:37.840 N] Action Name:Tempered Will Action Id:19
      [04:01:37.840 N] Action Name:Fight or Flight Action Id:20
      [04:01:37.840 N] Action Name:Rage of Halone Action Id:21
      [04:01:37.840 N] Action Name:Bulwark Action Id:22
      [04:01:37.840 N] Action Name:Circle of Scorn Action Id:23
      [04:01:37.840 N] Action Name:Shield Lob Action Id:24
      [04:01:37.840 N] Action Name:Shield Swipe Action Id:25
      [04:01:37.840 N] Action Name:Sword Oath Action Id:26
      [04:01:37.840 N] Action Name:Cover Action Id:27
      [04:01:37.840 N] Action Name:Shield Oath Action Id:28
      [04:01:37.840 N] Action Name:Spirits Within Action Id:29
      [04:01:37.840 N] Action Name:Hallowed Ground Action Id:30
      [04:01:37.840 N] Action Name:Goring Blade Action Id:3538
      [04:01:37.840 N] Action Name:Divine Veil Action Id:3540
      [04:01:37.840 N] Action Name:Sheltron Action Id:3542
      [04:01:37.840 N] Action Name:Protect Action Id:123
      [04:01:37.840 N] Action Name:Bloodbath Action Id:34
      [04:01:37.840 N] Action Name:Foresight Action Id:32
      [04:01:37.840 N] Action Name:Cure Action Id:120
      [04:01:37.840 N] Action Name:Stoneskin Action Id:129
      [04:01:37.840 N] Action Name:Testudo Action Id:1558
      [04:01:37.840 N] Action Name:Glory Slash Action Id:1559
      [04:01:37.840 N] Action Name:Full Swing Action Id:1562
      [04:01:37.840 N] Action Name:Enliven Action Id:1580
      [04:01:37.840 N] Action Name:Purify Action Id:1584
      [04:01:37.840 N] Action Name:Push Back Action Id:1597
      [04:01:37.840 N] Done building Actioncache
      [04:01:37.865 D] Reloading AssemblyLoader<ff14bot.Interfaces.ICombatRoutine> - Initializing
      [04:01:42.407 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
      [04:01:42.407 D] Kupo [GladiatorPaladin] v1.0.316.0
      [04:01:42.407 D] Ultima v1.0.0.0
      [04:01:42.407 D] YourRaidingBuddy0.0.1 v1.0.0.0
      [04:01:47.718 D] Replaced hook [PreCombatBuff] 34d74fec-2f4b-443e-9c45-f03b466c625b
      [04:01:47.718 D] Replaced hook [Heal] 4cc4b974-3e17-45a4-a6f2-22adf65cdf54
      [04:01:47.718 D] Replaced hook [Pull] d1a71015-aaf6-45ab-a72a-af707aefc26d
      [04:01:47.718 D] Replaced hook [CombatBuff] 756a554f-de4d-45e3-89f8-1239e5ca70df
      [04:01:47.718 D] Replaced hook [Combat] 5b22859e-5e5e-4a0e-9f3c-f49b0eef1060
      [04:01:47.718 D] Replaced hook [Rest] 39b10842-5b73-48bb-ad63-62e69d89db23
      [04:04:19.112 N] Plugin ChocoboCompanionStanceDancer has been enabled.
      [04:07:57.280 D] Loading last profile
      [04:07:58.027 N] Loaded profile All_In_One
      [04:07:58.028 N] Bot Thread Started.
      [04:07:58.074 N] [Ultima] Loading: Paladin
      [04:07:58.917 N] Connection to 192.99.148.87:31214 established.
      [04:07:59.018 N] Clearing all hooks.
      [04:07:59.018 N] Adding Chanko Hook
      [04:07:59.018 D] Added new hook [TreeStart] 2696d49a-469f-469a-8b73-b7a2da06f013
      [04:07:59.018 D] Added new hook [PreCombatLogic] 97499a09-1ecc-491b-af41-a0a0e9ecae73
      [04:07:59.018 N] Wimpy hooked.
      [04:07:59.018 D] Replaced hook [PreCombatBuff] 988b3600-afd1-46fe-a717-88da14733b64
      [04:07:59.018 D] Replaced hook [Heal] e84432d6-9311-4d8d-9988-b297afdd7aa4
      [04:07:59.018 D] Replaced hook [Pull] 2cf3ebe6-011e-48fc-b217-e8aa8d2188cb
      [04:07:59.018 D] Replaced hook [CombatBuff] c7741880-e3ca-427c-aae7-fb6a60827542
      [04:07:59.018 D] Replaced hook [Combat] b4d58aa2-cc34-4e39-a1c5-0445f9cbc54b
      [04:07:59.018 D] Replaced hook [Rest] ce549ecc-d805-4960-af29-413ad73a9fad
      [04:07:59.018 N] Adding ChocoboCompanionStanceDancer Hook
      [04:07:59.019 D] Inserted new hook [TreeStart @0] 3aa6f10e-3f85-4aa1-be74-6e7d4305dfe0
      [04:07:59.029 D] Added new hook [RoutineCombat] a71f3593-8bcb-4e29-b827-25726c80fb30
      [04:07:59.030 D] Added new hook [HotspotPoi] 132328f4-30a4-4347-bf29-061ae0ccdb0c
      [04:07:59.031 D] Added new hook [SetDeathPoi] 9204f0ec-a3c7-42f9-9a7d-e44daa7c8da1
      [04:07:59.031 D] Added new hook [SetCombatPoi] a0007de0-d15a-403c-ae3d-42be446661eb
      [04:07:59.031 D] Added new hook [SetHotspotPoi] 2d3a5bbc-db2d-4d2a-9175-3bda13f49f41
      [04:07:59.031 D] Added new hook [SelectPoiType] 6a129dcb-8833-4328-95b6-70e7a8ee17d0
      [04:07:59.031 D] Replaced hook [SelectPoiType] 7e1e6568-8a06-40a3-991a-5000c02673e1
      [04:07:59.031 D] Inserted new hook [TreeStart @0] e2815d09-c74d-4ab0-981a-20123d7b05a6
      [04:07:59.033 D] Inserted new hook [TreeStart @0] c1f673d9-c41c-41ab-88c9-bf2f0ddd63ac
      [04:07:59.033 N] [Agil] Hooked.
      [04:07:59.033 N] Adding Chanko Hook
      [04:07:59.033 D] Added new hook [TreeStart] 2696d49a-469f-469a-8b73-b7a2da06f013
      [04:07:59.044 N] Adding ChocoboCompanionStanceDancer Hook
      [04:07:59.044 D] Inserted new hook [TreeStart @0] 3aa6f10e-3f85-4aa1-be74-6e7d4305dfe0
      [04:07:59.337 V] [Poi.Clear] Reason: Current behavior changed to LogMessageTag: LineNumber: 5765, IsDone: False, Message: All tasks complete!, HighPriority: False, InCombat: False, QuestId: 0, StepId: 0, PostCombatDelay: 0, QuestName: null, IsDoneCache: False, Behavior: TreeSharp.PrioritySelector, .
      [04:07:59.337 D] Removed all hooks from [HighPriorityProfileOrderBehavior_Hook]
      [04:07:59.337 D] Replaced hook [ProfileOrderBehavior_Hook] b574ccca-6862-4cee-9943-fd5e2f06e556
      [04:07:59.413 N] [Chanko] Dismounting to eat
      [04:07:59.415 D] DoAction General 23 0xE0000000
      [04:08:00.177 N] [Chanko] Eating Buffalo Milk
      [04:08:00.178 D] DoAction Item 4753 0xE0000000
      [04:08:03.010 D] DoAction Item 4868 0xE0000000
      [04:08:05.726 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:05.726 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:05.726 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:05.726 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:05.726 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:05.726 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:05.741 D] DoAction Spell 26 0x100494D9
      [04:08:05.742 N] [Ultima] Ability: Sword Oath
      [04:08:05.800 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:05.800 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:05.800 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:05.800 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:05.800 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:05.800 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:05.804 N] All tasks complete!
      [04:08:05.872 V] [Poi.Clear] Reason: Current behavior changed to TeleportTo: LineNumber: 5766, ZoneId: 0, AetheryteId: 8, Name: Limsa Lominsa, Force: False, Aetheryte: null, IsDone: False, HighPriority: False, InCombat: False, QuestId: 0, StepId: 0, PostCombatDelay: 0, QuestName: null, IsDoneCache: False, Behavior: TreeSharp.PrioritySelector, .
      [04:08:05.872 D] Replaced hook [ProfileOrderBehavior_Hook] f0f46518-d782-4d4a-ab8c-5345077c8e54
      [04:08:05.873 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:05.873 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:05.873 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:05.873 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:05.873 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:05.873 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:06.128 D] Teleporting to Limsa Lominsa Lower Decks
      [04:08:11.186 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:11.186 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:11.186 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:11.187 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:11.187 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:11.187 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:11.187 D] DoAction Spell 123 0x100494D9
      [04:08:11.187 N] [Ultima] Ability: Protect
      [04:08:11.224 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:11.224 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:11.224 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:11.224 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:11.224 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:11.224 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:14.321 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:14.321 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:14.321 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:14.321 N] [ChocoboCompanionStanceDancer] Health currently 100
      [04:08:14.321 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThreshold1 currently Free
      [04:08:14.321 N] [ChocoboCompanionStanceDancer] (ExceededThreshold) highestThresholdValue1 currently 75
      [04:08:14.601 D] Teleporting to Limsa Lominsa Lower Decks
      [04:08:22.186 N] Stopping the bot. Reason:Pushed the stop button.
       
      Last edited: Sep 10, 2015
    5. Cloud30000

      Cloud30000 New Member

      Joined:
      May 9, 2015
      Messages:
      298
      Likes Received:
      7
      Trophy Points:
      0
      forgot to disable debugging; I updated the attachment so it stops outputting so much to the log. All other functionality is the same
       
    6. Dgame

      Dgame Member

      Joined:
      Aug 19, 2014
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      16
      Thank you! Think its possible to add another 3 options? First 3 to watch over yourself and other members of the party, if you have any and the other 3 are conditions for the Chocobo. Basically just copying the same three you have now but focusing on the Chocobo's HP.
       
    7. Dgame

      Dgame Member

      Joined:
      Aug 19, 2014
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      16
      So far I've been testing and it's been working exactly how I thought it should. Nice call on the drop down options. Great work! I would consider this a must have for anyone that likes to fight with their Chocobo beside them in battle. I'll be testing this for a while and let you know if I catch any bugs.
       
    8. Cloud30000

      Cloud30000 New Member

      Joined:
      May 9, 2015
      Messages:
      298
      Likes Received:
      7
      Trophy Points:
      0
      The biggest problem with having it check conditions on the chocobo or party members is that they might conflict; the only way around that is to always use the condition based on the chocobo/party member with the lowest health. As such, I've added checkboxes to check the chocobo's health and the party members' health and use whatever health is the lowest; that's the best I can do without causing far more problems with the plugin.
       
    9. Dgame

      Dgame Member

      Joined:
      Aug 19, 2014
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      16
      I understand and thank you for your hard work.
       
    10. Cloud30000

      Cloud30000 New Member

      Joined:
      May 9, 2015
      Messages:
      298
      Likes Received:
      7
      Trophy Points:
      0
      Fixed a couple small bugs, added a checkbox to autosummon Chocobo for CRs that don't already do so
       
    11. Dgame

      Dgame Member

      Joined:
      Aug 19, 2014
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      16
      Awesome, thank you.
       
    12. Cloud30000

      Cloud30000 New Member

      Joined:
      May 9, 2015
      Messages:
      298
      Likes Received:
      7
      Trophy Points:
      0
      Added a check for Gysahl Greens before trying to summon
       
    13. Dgame

      Dgame Member

      Joined:
      Aug 19, 2014
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      16
      Sweet, thanks.
       
    14. ospeff

      ospeff New Member

      Joined:
      Oct 5, 2015
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      0
      Just started using this and it makes a quite a difference, thanks alot.
       
    15. Dgame

      Dgame Member

      Joined:
      Aug 19, 2014
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      16
      No longer switching stances as it used too. I can't understand why. Even while changing options, nothing shows in the log. It's like the plugin doesn't exist at all.
      View attachment 4048 2015-10-11 21.37.txt
       
      Last edited: Oct 12, 2015
    16. ospeff

      ospeff New Member

      Joined:
      Oct 5, 2015
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      0
      Still working for me.
       
    17. Cloud30000

      Cloud30000 New Member

      Joined:
      May 9, 2015
      Messages:
      298
      Likes Received:
      7
      Trophy Points:
      0
      Lisbeth is not compatible with any plugins; Saga decided that in order to control all Lisbeth actions, no plugins can be enabled other then his own.
       
    18. Dgame

      Dgame Member

      Joined:
      Aug 19, 2014
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      16
      Thank you for the reply, hmmm this can be problematic. I wonder if their is any workaround or update that can fix this?
       
    19. Cloud30000

      Cloud30000 New Member

      Joined:
      May 9, 2015
      Messages:
      298
      Likes Received:
      7
      Trophy Points:
      0
      You would need to talk to Saga about that.
       
    20. Blade

      Blade New Member

      Joined:
      Jul 21, 2015
      Messages:
      41
      Likes Received:
      0
      Trophy Points:
      0
      Thank you, this is a really nice plugin to have :)
       

    Share This Page