I've got a timer script and a sensor script running that used to be reliable, and suddenly for the last few months aren't triggering properly. Anybody have an idea if there's been a change that might be affecting them?
It's not the sim being reset ... the correct values are still stored in memory when I check on them, and the scripts seem to be running.
The first one checks the date every 86400 seconds (1 day), and does stuff it's the correct day of the month (like the 10th).
timer()
{
CurrentDate = llGetDate();
if(8 == llSubStringIndex(CurrentDate, payment_day))
{
DO STUFF
llSetTimerEvent(86400.0); //86400 seconds = 1 day
llResetTime();
}
else
{
llSetTimerEvent(86400.0);
llResetTime();
}
}
The second one scans the area every minute when an avatar is logged in to the object (a tip jar), and logs the person out if he's left.
state loggedin
{
state_entry()
{
llSensorRepeat("", LoggedAV, AGENT, 30.0, PI, 60.0);//#s = range in m and time in sec, searches sphere for logged-in avatar
}
no_sensor()
{
state loggedout;
}
Thanks for any help!


