What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[help] manual casting spells or equipment changes in orderbot

bbcd

New Member
Joined
Sep 20, 2014
Messages
15
Reaction score
0
I've been looking around for ways to use skills (in this example, stealth) with a regular orderbot profile, and the only way I've really found is a pretty nasty way using conditionals that breaks if you're mounted...which would be doable if the dismount function returned a value, but since it doesn't I don't think there's a way for me to toss it in. Are there any tags that allow this more cleanly? Alternatively, does anyone know what the action id is for using the company chocobo? I couldn't find an action for it on xivdb, just the mount entry.

Code:
<Profile>
   <Name>Stealth</Name>
   <KillRadius>50</KillRadius>
   <Order>

      <!-- Little Ala Mhigo -->
      <Gather Loops="1"> <!-- Navigate to safe spot -->
         <HotSpots>
            <HotSpot XYZ="-158.6821, 21.23233, -529.7408" Radius="1" />
         </HotSpots>
      </Gather>

      <If Condition="ff14bot.Managers.Actionmanager.DoAction(229,Core.Player)"> <!-- Cast Stealth -->
      </If>

      <Gather while="True">
         <GatherObject>Rocky Outcrop</GatherObject>
         <HotSpots>
            <Hotspot Radius="95" X="-134.0797" Y="20.30314" Z="-507.5224" name="Lightning Shard" />
         </HotSpots>
         <ItemNames>
               <ItemName>Lightning Crystal</ItemName>
               <ItemName>Lightning Shard</ItemName>
         </ItemNames>
         <GatheringSkillOrder>
            <GatheringSkill SpellName="Byregot's Ward" TimesToCast="1" />               
         </GatheringSkillOrder>
      </Gather>
   </Order>
</Profile>

And on a similar note, is there any way to either change gearsets or just equip an item? UseItem doesn't seem to equip items, so there might be a function I haven't found yet that does it. If straight up changing gearsets isn't an option, I could just change main hands then manually equip all the gear for that class...probably through more conditional tags, assuming any value at all is returned by it.
 
So the actual way to call the company chocobo mount is

Code:
ff14bot.Managers.Actionmanager.DoAction(ff14bot.Enums.ActionType.Mount, 1, Core.Player);

but I'm getting some other issues atm and will need to look at it more later.
 
There's no good way currently to manually cast spells. If you want to use Stealth, add the following custom tag to your Plugins folder under a new folder called OrderBotTags: View attachment Stealth.cs. Its usage is: <Stealth Activate="True" /> to turn stealth on and <Stealth Activate="False" /> to turn stealth off.
 
Oooo thank you very much for that. I used to program a lot, but never in C#, and with the lack of documentation I didn't really know where to start. I'll see what I can do with this.

e: Seems like this hangs when mounted. the HasAura("Mounted") always returns false, but using IsMounted returns the correct value. Unfortunately, it still hangs in that case until manually dismounting. Not sure where to go from here.
 
Last edited:
For me using Core.Player.IsMounted works perfectly. Try this updated tag and see if it works for you. It's important to note that you should disable Mounting in RB's Global Settings, otherwise RB might try to mount up after Stealth is activated, which immediately deactivates Stealth haha.

View attachment Stealth.cs
 
Ahh, works perfectly! I'm not 100% sure on why commonbehaviors works to dismount in this but not in the console and actionmanager works in the console but not in a custom tag, but I'll take it. Thanks!
 
Spoke too soon, but I'm 99% sure this isn't an issue with Stealth.cs. Seems more like RB isn't picking up user-defined tags right now. Which is also weird, because it worked after the update for a couple hours, then just stopped. Same exact profile, nothing changed. Tried running as admin and running normally. No big loss for now, I'll sit on it at the moment.

Code:
[23:19:37.421 N] Failed to load profile: Element Stealth is not supported. Please check your XML and try again. (<Stealth Activate="True" />) Line 156
[23:19:37.426 D] System.Exception: Element Stealth is not supported. Please check your XML and try again. (<Stealth Activate="True" />) Line 156
   at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
   at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
   at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
   at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
   at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
   at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
   at Clio.XmlEngine.PropertyProcessor.(XElement , Type )
   at Clio.XmlEngine.PropertyProcessor..(XElement )
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Clio.XmlEngine.PropertyProcessor.(XElement , PropertyInfo )
   at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
   at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
   at ff14bot.NeoProfiles.NeoProfile.Load(XElement element, String path)
   at ff14bot.NeoProfiles.NeoProfile.Load(String path)
   at ff14bot.NeoProfiles.NeoProfileManager.Load(String profilePath, Boolean rememberPath)
 
Spoke too soon, but I'm 99% sure this isn't an issue with Stealth.cs. Seems more like RB isn't picking up user-defined tags right now. Which is also weird, because it worked after the update for a couple hours, then just stopped. Same exact profile, nothing changed. Tried running as admin and running normally. No big loss for now, I'll sit on it at the moment.

Code:
[23:19:37.421 N] Failed to load profile: Element Stealth is not supported. Please check your XML and try again. (<Stealth Activate="True" />) Line 156
[23:19:37.426 D] System.Exception: Element Stealth is not supported. Please check your XML and try again. (<Stealth Activate="True" />) Line 156
   at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
   at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
   at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
   at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
   at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
   at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
   at Clio.XmlEngine.PropertyProcessor.(XElement , Type )
   at Clio.XmlEngine.PropertyProcessor..(XElement )
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Clio.XmlEngine.PropertyProcessor.(XElement , PropertyInfo )
   at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
   at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
   at ff14bot.NeoProfiles.NeoProfile.Load(XElement element, String path)
   at ff14bot.NeoProfiles.NeoProfile.Load(String path)
   at ff14bot.NeoProfiles.NeoProfileManager.Load(String profilePath, Boolean rememberPath)

Where did you put Stealth.cs relative to your RB folder?
 
Rebornbuddy\Plugins\OrderBotTags\Stealth.cs

Seriously did not change anything from when it worked to when it stopped as far as plugins and profiles go. And today it started working again. Maybe just something weird going on last night...which I should know better than to say, but with the information I have I'm not sure what else LOL
 
Back
Top