Jump to content

Group gift giver once in 24 hours... anyone?


Oceane Grumiaux
 Share

You are about to reply to a thread that has been inactive for 4085 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

im not a scripter so i cant tell you how do it yourself, but i have one from Artizan that does it.

you can settle it as group only and can settle how many time pp can get the gift by period.. once, one every 24 hour, or one very month, or whatever period you want.. give a look at Artizan store on the mp maybe.https://marketplace.secondlife.com/stores/13071

Link to comment
Share on other sites

When you write your script, be sure to save the UUID (or the username) of each person who gets a gift, and save the time ( llGetUnixTime ) that the gift was received in a parallel list.  Then, each time that a person clicks your gift vendor, check to see (1) whether the person is already on the UUID list and, if so (2) when the previous gift was received. If the answer to #1 is FALSE, give a gift and add the person's UUID and time to the appropriate lists.  If the answer to #1 is TRUE but the difference between the stored time and the current llGetUnixTime is less than 86400 seconds (1 day), don't give a gift.  If the answer to #1 is TRUE and the saved time difference is greater than 86400, give a gift and add the UUID and the new time to the ends of the lists.  Regardless of whether you give a gift or not, every time that anyone clicks the vendor,  remove all names and times that are more than a day old.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4085 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...