Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Donation + give script

Wolf Zimerman
Registered User
Join date: 22 Apr 2008
Posts: 5
05-04-2008 05:18
How's it going. It's been 2 years since I have been in SL, a lot has changed and what I used to know I have forgotten.

I'm looking for a script. Here is what I want to do....

1> I have a two prime item (picture and a frame). Inside (contents) contain a copy of the original item, and two note cards.

2> when clicked or right clicked (pie menu) I want to be able to sell the items inside (note cards and copy of original item) for a set amount... Say L$20.

3> I would like to keep a record of who bought/donated the L$ and the date.

Sounds pretty simple and hope to figure it out on my days off this week. I am doing this to raise money fro a charity I am involved with and will be converting the donations to real life money and giving it to the charity so it is important that I have some accounting (the name of the AV donating and the amount).

Thanks,
Wolf
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
05-04-2008 08:35
Well if you go to secondlife.com site and login with your username and pass. You can go to "My Account" / "Transactions History" and you can have a ** monthly ** listing of your linden transactions it will tell you who bough it and how much.

Saving this kind of data in SL is kinda complicated...the best is use an external database but for what you have to do...i think this is very simple. But remember that it will show transactions in a month period so remember to save those listings from time to time to your HD. You can save it to an excel (.xls) file.
Wolf Zimerman
Registered User
Join date: 22 Apr 2008
Posts: 5
05-04-2008 13:14
True for the account history part, plus would make things way less complicated since I can take it into an Access Db and run a query on where the money came from.

Thanks for the KISS (Kiss It Simple Stupid) idea about the script. No need making it more complex than it needs to be.
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
05-04-2008 17:22
There's also plenty of in-world vendor scripts that can return that data as well. The transaction log is cumbersome, external, and full of other data you don't want. Look around for simple vendor scripts, and look to add the date and time with llGetTimestamp(), and the customer can be recorded with the key returned in the money event and llKey2Name(). Nothing really complex about it, see the money event, llGetInventoryName and llGiveInventory and it's pretty easy to script your own vendor script. (also look up llSetPayprice()