This is a repo in Dalamud for auto-moving the character by inputting positions.
This repo is heavily inspired by awgil/ffxiv_visland.
Add XIVRunner as a submodule to your project:
git submodule add https://github.com/adambennett55/XIVRunner
Add it to your plugin's CSProj file:
<ItemGroup>
<ProjectReference Include="..\XIVRunner\XIVRunner\XIVRunner.csproj" />
</ItemGroup>
Then, in the entry point of your plugin:
var runner = XIVRunner.XIVRunner.Create(pluginInterface);
runner.Enable = true;
where pluginInterface is a DalamudPluginInterface.
Don't forget to dispose it!
The character will act in strict accordance with the order of points. So please make sure that your positions are valid. The NaviPts
is typeQueue<Vector3>
. You can modify it freely.
runner.NaviPts.Enqueue(Service.ClientState.LocalPlayer.Position
+ new System.Numerics.Vector3(10, 0, 0));
Besides, you can change the MountId
to the mount it is called.