Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Check birthday

Jerry Ubble
Registered User
Join date: 6 Mar 2009
Posts: 6
04-16-2009 09:58
Hello.
I was wondering, how i could determin who had his birthday the last if i have the data in a list like this:
people= ["John Doe","1988-06-22",....

Any tips would be appriciated.
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
04-16-2009 10:59
You mean other than just looking at the dates and picking the most recent one? What am I missing?

And what does this have to do with SL?


Were you perhaps interested in learning how to write a script to spit out the answer? If so, I'd suggest you post in Scripting Tips. That's what it's there for. Good luck. :)
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Jerry Ubble
Registered User
Join date: 6 Mar 2009
Posts: 6
04-16-2009 12:22
Yes. i need a function that will pick the correct one.

And yes, I will move to that tread.
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
04-16-2009 13:03
From: Jerry Ubble
Yes. i need a function that will pick the correct one.

And yes, I will move to that tread.

easy way llrequest agent data

http://wiki.secondlife.com/wiki/LlRequestAgentData


DATA_BORN :string - The account creation/"born on" date as a string in an ISO 8601 format of YYYY-MM-DD.


CODE



key toucher_key;
string toucher_born;

default
{
state_entry()
{
llSay(0,"Ready for some birthdays !" );

}

touch_start(integer something)

{ toucher_key=llDetectedKey(0);
llRequestAgentData( toucher_key, DATA_BORN);

}
dataserver(key queryid, string data)
{

toucher_born = data;
llSay(0, " The toucher has born on : "+ toucher_born );
//you can compare dates to with this data
}
}



not so ease way http_request to LLsearch.
_____________________


RAW terrain files - terraform your SIM!!
http://www.wishland.info/
PD:the wiki its your friend ;)
http://wiki.secondlife.com/wiki/LSL_Portal