I want my bot to check nearby houses / farms, so far I have only got this code to show "Scarecrow" Gardens. I want it to check the expiration of all nearby housing / farms and log ones within a time frame.
I thought getAllTerritorys did it, but I was wrong.
Just point me to something please
I thought getAllTerritorys did it, but I was wrong.
PHP:
List<DoodadObject> localDoodads = getDoodads();
for (int i = 0; i < localDoodads.Count; i++)
{
if (!localDoodads[i].name.Contains("Scarecrow") && !localDoodads[i].name.Contains("Cottage"))
continue;
Log("Name: " + localDoodads[i].name + " Owned ID: " + localDoodads[i].ownerObjId.ToString() + " Plant Time: " + localDoodads[i].plantTime.ToString() + " Farm ID: " + localDoodads[i].commonFarmId.ToString());
Thread.Sleep(timerDelay);
double theDistance = me.dist(localDoodads[i]);
Log("Distance: " + theDistance.ToString());
Thread.Sleep(timerDelay);
}
Just point me to something please
