|
Johnny Mann
Registered User
Join date: 1 Oct 2005
Posts: 202
|
07-06-2006 04:44
Hey Folks,
I have just made a vehicle thats close to being finished in the production phase.
Can someone point me in the right direction.
I want people that have purchased it from me to be able to receive the latest version.
I also dont want to send a new copy to everyone that has bought.
Basically this is what I want. When someone rezzes their copyable vehicle, I want it to check with a server I will have set up to verify if their vehicle is the latest version. If there is a new version, then of course have that sent to the user via the server set up at my store.
I'm fairly along in scripting so if someone could give me ideas how I would do this or point me in the right direction, that would be great.
Thanks.
|
|
Russell Hansen
Texi pets are here!
Join date: 11 Apr 2006
Posts: 107
|
07-06-2006 05:10
There are multiple ways to do this. A simple method is, in the on_rez event, send an email to your server, containing your current vehicle version number, and the owners key. Have your server check the number to see if it's up to date. if not, llGiveInventory the latest version to the key you received. Of course add in all the relevant error checking, performance controls etc etc, but that's the basic idea.
|
|
Johnny Mann
Registered User
Join date: 1 Oct 2005
Posts: 202
|
07-06-2006 05:24
ok so I havent messed with e-mail sending as of yet so any help on this script would be welcomed.
Perhaps what I will need to to is on_rez send the name of the object rezzed and the owner keyy to the server. Server sees the request. If name of object in server equals request name then no update is needed. If object name doesn't equal object name in server then send the new item to the user's key.
How would I use e-mails, or communication to a server located at another sim?
|
|
CJ Carnot
Registered User
Join date: 23 Oct 2005
Posts: 433
|
07-06-2006 06:26
From: Johnny Mann How would I use e-mails, or communication to a server located at another sim?
Send email to [email]serverKey@lsl.secondlife.com[/email] where serverKey is the key of your server. Remember you will have to keep your server permenantly rezzed in world once created or it'll lose its unique key, which I'm assuming you will code into your vehicles or a settings notecard.
|
|
Johnny Mann
Registered User
Join date: 1 Oct 2005
Posts: 202
|
07-06-2006 06:33
From: CJ Carnot Send email to [email]serverKey@lsl.secondlife.com[/email] where serverKey is the key of your server. Remember you will have to keep your server permenantly rezzed in world once created or it'll lose its unique key, which I'm assuming you will code into your vehicles or a settings notecard. /54/31/83840/1.htmlLooks like someone already created an easy to use script for this. Check 'er out! -Johnny
|