tozededao
Community Developer
- Joined
- Jan 15, 2010
- Messages
- 1,225
- Reaction score
- 5
Hello, I'm trying to make a plugin for Voll farm by running straight to him, similar to DockCorruptedFarmer.
I was trying to debug the Terrain Data Entries to see which one matched Voll zone but I wasn't able to do so via DevTab because it was showing me this Exception:
This is basically what I was trying to do :
This way I would get all the entries and respective distance to them, I would just walk to the one that has voll inside and see the closest one.
I was trying to debug the Terrain Data Entries to see which one matched Voll zone but I wasn't able to do so via DevTab because it was showing me this Exception:
Code:
An exception occurred:
System.Exception: Line number 6, Error Number: CS1002, 'Expected ;;
in DevTab.Gui.Dev_Execute(String class, String code, IEnumerable`1 assemblies) in **plugins\DevTab\Gui.xaml.cs:line 154
This is basically what I was trying to do :
Code:
LokiPoe.TerrainDataEntry[,] tgtEntries = LokiPoe.TerrainData.GetTgtEntries();
for (int i = 0; i < tgtEntries.GetLength(0); i++)
{
for (int j = 0; j < tgtEntries.GetLength(1); j++)
{
LokiPoe.TerrainDataEntry terrainDataEntry = tgtEntries[i, j];
if (terrainDataEntry != null)
{
Log.Alert(terrainDataEntry.TgtName.toString());
Log.Alert("distance is" + LokiPoe.Me.Position.Distance(FindWalkablePathToTerrainObject(i, j)));
}
}
}
This way I would get all the entries and respective distance to them, I would just walk to the one that has voll inside and see the closest one.






