What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to Increase Plant time for scarecrow plugin ?

GomuGomu

Member
Joined
Nov 9, 2014
Messages
57
Reaction score
0
Scarecrow plugin plant very good job if no people, but not look like human behavior if someone around you because it plant too fast in less second.

Anyone know ? have anyway to increase Plant time in Scarecrow plugin ?

For Example

normally it plant 1 tree per second but i want to change into 3-4 sec per tree.

Thanks a lot
 
Last edited:
Instead of doing
Code:
PlantItemsAtFarm("Cedar sapling","YourCharacterName");

do

Code:
while(PlantItemsAtFarm("Cedar sapling","YourCharacterName", 1))
Thread.sleep(3000); //3000 means 3 sec
Warning: Untested code
 
I found in code it's show like this

foreach (string plantName in plantNames)
{
int totalCount = _inventory.GetInventoryItems(plantName).Sum(x => x.TotalCount);

if (0 == totalCount)
{
continue;
}

PlantItemsAtFarm(plantName, farm.uniqHousingId, (uint)totalCount);
Thread.sleep(5000); // this i try for 5 sec
}

Randomizer.GetRandom(5000, 8000);


how to changing ? I try but still not work sorry i'm not good in programing
 
Code:
for (int i = 0; i < totalCount; i++) {
   if (PlantItemsAtFarm(plantName, farm.uniqHousingId, 1)
      Thread.sleep(5000);
   else
      break;
}
 
Back
Top