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

Time protect for Scarecrow Garden

DonSlonik

New Member
Joined
Sep 21, 2014
Messages
23
Reaction score
0
How can I know the time of the protect for Scarecrow Garden?


I do like this. I understand that plantTime doesn't suit.
Code:
    foreach (var doodadObject in getDoodads())
    {
    	if ((me.dist(doodadObject) < 10) && (doodadObject.id == 973))
    	{
    		Log("Phase:"+doodadObject.phaseId+"\t id:"+doodadObject.id+"\t objId:"+doodadObject.objId+"\t name:"+doodadObject.name);
    		Log(Convert.ToString(doodadObject.plantTime));
    	}
    }
 
Hi.
Scarecrow is Creature (Housing). So you should call getCreatures(), find there creature that is your scarecrow, after:
(yourCreature as Housing).UpdateTaxInfo();
Log((yourCreature as Housing).taxPayedTime); //UnixTimeStamp
 
Back
Top