mastahg
Administrator
- Joined
- Feb 27, 2011
- Messages
- 5,355
Whenever I try to do anything with a codechunk that uses the Actionmanager, RebornBuddy claims it can't be used the way I'm using it. Did something change between this and the x64 version? I used to use codechunks for ToT, Maker's Mark, and for Collectible accept but now none of it works and I'm unsure how to fix it. For reference, here's the codechunk I tried to use and failed to get working, it does a Careful Synthesis II and accepts collect at the end of the synth:
Code:<![CDATA[ if (await Buddy.Coroutines.Coroutine.Wait(5000, () => ff14bot.Managers.Actionmanager.CanCast(100069, null))) { ff14bot.Managers.Actionmanager.DoAction(100069, null); await Buddy.Coroutines.Coroutine.Wait(10000, () => CraftingManager.AnimationLocked); await Buddy.Coroutines.Coroutine.Wait(Timeout.Infinite, () => !CraftingManager.AnimationLocked || ff14bot.RemoteWindows.SelectYesNoItem.IsOpen); if (ff14bot.RemoteWindows.SelectYesNoItem.IsOpen) { ff14bot.RemoteWindows.SelectYesNoItem.Yes(); await Buddy.Coroutines.Coroutine.Wait(10000, () => !ff14bot.RemoteWindows.SelectYesNoItem.IsOpen); await Buddy.Coroutines.Coroutine.Wait(Timeout.Infinite, () => !CraftingManager.AnimationLocked); } } ]]>
Code:
<![CDATA[
if (await Coroutine.Wait(5000, () => ActionManager.CanCast(100069, null))) {
ActionManager.DoAction(100069, null);
await Coroutine.Wait(10000, () => CraftingManager.AnimationLocked);
await Coroutine.Wait(Timeout.Infinite, () => !CraftingManager.AnimationLocked || SelectYesNoItem.IsOpen);
if (SelectYesNoItem.IsOpen) {
SelectYesNoItem.Yes();
await Coroutine.Wait(10000, () => !SelectYesNoItem.IsOpen);
await Coroutine.Wait(Timeout.Infinite, () => !CraftingManager.AnimationLocked);
}
}
]]>
Actionmanager has been renamed ActionManager.
Also, you don't need the full namespaces.