Either that or start with some day and then count in OnHeartbeat next sixs like this.
void main()
{
int daysPassed = GetLocalInt(OBJECT_SELF,"DAYS_PASSED");
int previousDay = GetLocalInt(OBJECT_SELF,"PREVIOUS_DAY");
int currentDay = GetCalendarDay();
if(currentDay != previousDay)
{
SetLocalInt(OBJECT_SELF,"PREVIOUS_DAY",currentDay);
if(daysPassed > 5)
{
SetLocalInt(OBJECT_SELF,"DAYS_PASSED",0);
//start a conversation there, but on whom???
}
else
{
SetLocalInt(OBJECT_SELF,"DAYS_PASSED",daysPassed+1);
}
}
}
I wroted it here, so I don't garantee it will work.
Modifié par ShaDoOoW, 25 janvier 2011 - 07:23 .