Hi all, I'm trying to write a useful orderbot xml, but find it quite hard to start. So while I am searching the forums I tot I might as well post this as well. Do anyone have an example of how to change your character gear sets? I haven been able to find any example
You could also use ff14bot.Managers.ChatManager.SendChat(string Message) and send "/gs change #" where # is the gear set you want to change to. You'd need to make a custom OrderBot tag to do that however.
This is just a rough example, it's just blind code (I haven't tested it) but something like this should work: View attachment ChangeGear.cs
The problem I found last while trying to write a plugin for this a totally different way (which ty for reminding me of the SendChat method, prevents me from having to hook!!), and even when I converted it to this way is that it will change successfully, but this always comes up Code: [23:25:08.833 D] System.NullReferenceException: Object reference not set to an instance of an object. at TreeSharp.Decorator.<Execute>d__0.MoveNext() at TreeSharp.Composite.Tick(Object context) at TreeSharp.PrioritySelector.<Execute>d__0.MoveNext() at TreeSharp.Composite.Tick(Object context) at ff14bot.TreeRoot.() It will change successfully, and just stand there with no errors till you press the stop button, then the above error comes up.. any ideas? *Maybe why mastahg said its recommended to pause/stop the bot first before changing jobs.
kagamihiiragi17, I think you forgot to add the OnStart and IsFinished to this to cache the behavior.. I didnt test the class, but the one I wrote last night wouldnt recognize the tag unless I had them in there