• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [OrderBot] City Runner - Aethernet Shard Unlocker

    Discussion in 'Other Profiles' started by kagepande, May 9, 2015.

    1. kagepande

      kagepande Community Developer

      Joined:
      Oct 20, 2014
      Messages:
      289
      Likes Received:
      11
      Trophy Points:
      18
      City Runner​

      Ul'dah, Limsa, Gridania

      [​IMG]

      Introduction to this Profile:
      These profiles will unlock all Aethernet Shards in each of the the three main cities.

      City Runner

      Information Regarding City Runner:
      These have only been tested on a fresh level 1 character whom has just unlocked the main aetheryte of each of the cities, it is highly unlikely to currently work if you run these profiles if you already have 1 or more of the shards already attuned.

      City Runner - Limsa [v1.0] - View attachment CityRunner - Limsa.xml
      City Runner - Ul'dah [v1.0] - View attachment CityRunner - Ul'dah.xml
      City Runner - Gridania [v1.0] - View attachment CityRunner - Gridania.xml

      Work-in-Progress & To-do

      Code:
      Make a combined profile for all cities.
      
      SVN Downloads - aka Easier

      https://subversion.assembla.com/svn/ffxiv-kagepande/trunk/CityRunner - All-In-One download -Recommended-


      Bug Reports & Suggestions

      How-to Report a Bug/Issue:
      POST A LOG & Tell me which profile, no seriously please post a log a clean one if possible and not one that's filled with 12 hours of you fate/monster grinding, I don't have time to sort through it all to find a line or two that tells me whats wrong.
      Also please describe your bug/issue in as much detail as you can, simply saying "It's broke" will not help me, you or other users of these profiles, do us all a favor a spend the extra minute to write it out!

      Thank you! And Enjoy these profiles!
       
    2. WoWuser123

      WoWuser123 Member

      Joined:
      Aug 4, 2011
      Messages:
      371
      Likes Received:
      4
      Trophy Points:
      18
      Thanks for this!

      It does indeed not work if you already have the Aetheryte. I've tried to add a check for it, but that doesn't seem to work.

      Code:
          <If Condition="not Managers.WorldManager.HasAetheryteId(25)">
              <If Condition="not IsOnMap(132)">
                <TeleportTo Name="New Gridania" AetheryteId="2" />
              </If>
              <If Condition="IsOnMap(132)">
                  <UseObject NpcId="25" UseTimes="1" BlacklistAfter="True" UseDistance="2" XYZ="164.0471, -2.355699, 85.37688" Radius="10"/>
              </If>
          </If>
      
      When I run 'Log("HasID:{0}",WorldManager.HasAetheryteId(25));' it keeps returning false. I'm not sure if it's because the ID is wrong or that HasAetheryteID only works for the ones you can teleport to (more likely).
       
    3. kagepande

      kagepande Community Developer

      Joined:
      Oct 20, 2014
      Messages:
      289
      Likes Received:
      11
      Trophy Points:
      18
      I know it wouldn't work if you already have one unlocked, checks can't be ran even though it returns same type as main aetherytes and has unique object and npc IDs, Ill be looking for something to use or look into the route of adding a custom tag myself to handle it if its already unlocked.
       
    4. phaedrus

      phaedrus Member

      Joined:
      Jul 12, 2013
      Messages:
      964
      Likes Received:
      1
      Trophy Points:
      18
      Any update on this?
       
    5. kirdd

      kirdd New Member

      Joined:
      May 5, 2014
      Messages:
      63
      Likes Received:
      1
      Trophy Points:
      0
      So still trying to figure this one out on how I got it to work, because honestly not sure why it started to, but it is.

      But pretty much started a brand new character and ran the profile for Gridania and it went off without any trouble. However when I made it to Limsa, the bot did what was described above and just refused to run the script and would end bot immediately.

      Began to tinker around with the script and removed the section where it said to Blacklist the shard after it was used. Ran the bot again and it took off towards the first shard in the list, though obviously without it being blacklisted it just kept trying to use that shard over and over. Tried various other things (plus what was mentioned above) in an attempt to get the bot working again but all failed. In a last ditch attempt I just commented out the first shard and the bot ran off and gathered every other shard in Limsa.

      And if that was not even more unusual, once this new character finally made it to Ul'dah, the script worked correctly with no tinkering what so ever. Really not sure what happened, but maybe this will give some idea as to what is going wrong. Can send log files if need be.
       
    6. kagepande

      kagepande Community Developer

      Joined:
      Oct 20, 2014
      Messages:
      289
      Likes Received:
      11
      Trophy Points:
      18
      This entire concept of unlocking aethernets was a shot in the dark and based off the fact of using the interact tag, last I checked when you ran a check if the player had a aethernet unlocked it always returned false, regardless if it was unlocked or not. So I just made the profiles to run, there will most likely be issues, but it sounds odd the issue you had. I might be making a new character soon so I could test then :)
       
    7. satbuster

      satbuster Member

      Joined:
      Dec 19, 2014
      Messages:
      93
      Likes Received:
      0
      Trophy Points:
      6
      Hi,

      spent a little bit of time trying to learn how to develop for RebornBuddy and came up with the following custom tag <UseAetheryte> that will either activate a new Aethernet Shard or close the dialog cleanly if Aethernet Shard has already been visited. Seems to work for me on both existing and new characters.

      Code:
      using System;
      using System.Windows.Media;
      using System.Collections.Generic;
      using System.ComponentModel;
      using System.Linq;
      using System.Runtime.InteropServices;
      using System.Text;
      using System.Threading;
      using System.Threading.Tasks;
      using System.Windows.Forms;
      using Clio.Utilities;
      using Clio.XmlEngine;
      using ff14bot.Behavior;
      using ff14bot.Helpers;
      using ff14bot.Managers;
      using ff14bot.Navigation;
      using ff14bot.NeoProfiles;
      using ff14bot.RemoteWindows;
      using TreeSharp;
      using Action = TreeSharp.Action;
      using System.Threading.Tasks;
      using Buddy.Coroutines;
      
      namespace ff14bot.NeoProfiles {
      
          [XmlElement("UseAetheryte")]
      
          public class UseAetheryteTag : ProfileBehavior {
      
              [XmlAttribute("NPCID")]
              public uint NPCID { get; set; }
      
              private bool _done;
              public override bool IsDone {
                  get {
                      return _done;
                  }
              }
      
              protected override void OnResetCachedDone() {
                  _done = false;
              }
      
              protected override Composite CreateBehavior() {
                  return new PrioritySelector(
                      new Decorator(ret => !SelectString.IsOpen,
                          new Action(r => {
                              var o = GameObjectManager.GetObjectByNPCId(NPCID);
                              if ((o != null) && o.IsTargetable) {
                                  o.Target();
                                  o.Face();
                                  o.Interact();
                                  Thread.Sleep(2000);
                              }
                              _done = false;
                          })
                      ),
                      new Decorator(ret => SelectString.IsOpen,
                          new Action(r => {
                              SelectString.ClickLineContains("Quit");
                              _done = true;
                          })
                      )
                  );
              }
      
              protected override void OnDone() {
              }
          }
      }
      
      Code:
      <MoveTo Name="Lancer's Guild Aethernet Shard" XYZ="124.1579, 11.43598, -231.7087"/>
      <UseAetheryte NPCID="27"/>
      
       
    8. hooplin

      hooplin New Member

      Joined:
      Mar 22, 2014
      Messages:
      41
      Likes Received:
      0
      Trophy Points:
      0
      how do i put this in
       

    Share This Page