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

Getting the time for next the harvest grape vine

fritsjan

New Member
Joined
Oct 4, 2013
Messages
101
Reaction score
0
hey guys,

I need to get the remaining time for the next harvest of a grape vine. If i use doodad.growthTime it will return 0, this is because the grapvine is already matured.

I went throught the rest of the api manual but i cannot find another function to do this with. Do you guys know which function to use? Thx

Greetings fritsjan
 
Hey i am not sure what exactly you want to query but...

If you want to query what is the usual time for grow a item you should use

Code:
var grow_time= sqlCore.sqlDoodadAlmighties.Where(x => x.Value.name == "Rose").First().Value.growthTime; // time is in microsecconds
If you like to query a alredy planted doodas
Code:
List<DoodadObject> p = this.host.getDoodads().Where(x => (int)x.plantZoneId == (int)item.Item.scarecrow.plantZoneId && ((BaseObject)x).type != BotTypes.Housing && x.dbAlmighty != null && x.dbAlmighty.growthTime != 0).ToList();
then you can check the grow time of each object  
foreach (var plant in p) {
 // do somting with plant.growthTime
}
 
hey mentalspirit thx for the answer but it is not the one i am looking for. Your method works excellent for single harvestable plants such as roses but not for multi harvestable plants such as grapevines. The problem i am running into is as followed.

Plant grapevine sapling (.growthTime) will give you then the growthtime it takes until the plant matures, the same as with any single harvestable plant. After this growthtime elapses you can harvest the plant and then another counter begins ticking until the grapevine is ready to be harvested again, but then when you use (.growthTime) the growthtime of the sapling will be zero. I suspect this is because the grapvine is already matured at that point.

The function i am really looking for would be something like (.harvestTime), which gives the remaining time until you can harvest the plant. However i have looked through the api but i cannot find this function. Do you know how to get this time?

greeting fritsjan
 
Back
Top