Description
I'm trying to write a script for fully automated gardening (moving and all). I tried to create a "pick flower" action but when i try to load it into the simulator (ofc I'm loading a .xml file with the action in it) the simulator says "Pick Flower could not be recognized as an action type".
The file is Saved as .cs
The file is in the Gardening folder inside the core
The path to it is correct (I believe)
The .xml file isn't the problem, I loaded quitfishing and it worked fine
Here's the code:
using System;
using System.Text;
using System.Threading.Tasks;
using TTMouseclickSimulator.Core.Actions;
using TTMouseclickSimulator.Core.Environment;
namespace TTMouseclickSimulator.Core.ToontownRewritten.Actions.Gardening
{
public class PickFlowerAction : AbstractAction
{
public override sealed async Task RunAsync(IInteractionProvider provider)
{
// Click on the "Pick Flower" button.
await MouseHelpers.DoSimpleMouseClickAsync(provider, new Coordinates(46, 210),
VerticalScaleAlignment.Left);
await provider.WaitAsync(200);
// Click on the "Yes" button.
await MouseHelpers.DoSimpleMouseClickAsync(provider, new Coordinates(718, 598));
}
public override string ToString() => "Pick Flower";
}
}