Suspicioso
New Member
- Joined
- Aug 19, 2016
- Messages
- 3
I'm trying to make a plugin that automatically sets the combat routine so the dialog box doesn't appear. It doesn't matter where I put RoutineManager.PreferedRoutine, it's never used. I've verified the name of the CR is correct, I've also debugged and verified the PreferedRoutine field is being updated correctly, but it's still being ignored.
Example.
I've even tried creating a task and setting the preferred routine every 100ms, the dialog box still appears.
Edit: Unrelated. Is there a way to prevent RB from compiling libraries each time it's launched? I feel like it needlessly extends start up and wastes away disk lifetimes for those of us using SSDs.
Example.
Code:
public CombatRoutine()
{
RoutineManager.PickRoutineFired += RoutineManager_PickRoutineFired;
}
private static void RoutineManager_PickRoutineFired(object sender, EventArgs e)
{
switch (Core.Player.CurrentJob)
{
case ClassJobType.DarkKnight:
RoutineManager.PreferedRoutine = DefaultRoutine = "Kefka";
break;
case ClassJobType.Astrologian:
RoutineManager.PreferedRoutine = DefaultRoutine = "Orran";
break;
default:
RoutineManager.PreferedRoutine = DefaultRoutine = "Ultima";
break;
}
}
I've even tried creating a task and setting the preferred routine every 100ms, the dialog box still appears.
Edit: Unrelated. Is there a way to prevent RB from compiling libraries each time it's launched? I feel like it needlessly extends start up and wastes away disk lifetimes for those of us using SSDs.
Last edited: