|
bafilius Goff
Registered User
Join date: 19 Mar 2006
Posts: 31
|
03-30-2006 16:47
Hi, I'm very new to scripting. But everytime I start a new language I always find out that the first thing I want to do seems to be the most impossible thing ever. Here's what I'm trying to do... I have an object that I want to allow to be able to sell itself to people. Exactly as it is. I can't put it within itself because the inner copy would no longer contain a copy of itself. Since there is no way to have an object replicate itself I guess I need a server vendor setup. Which introduces a whole new world of problems. I expect there could be as many as 10,000 of these things. They won't replicate like crazy, I promise. I'm not trying to grief. If there is 10,000 then it's just because 10,000 people bought it. As for the vendor server setup... I've been looking around and it seems that there is no reliable way to do this. Email seems like the best solution. However, what if I want to move the server? Then I have to find a way to update my 10,000 objects when all they really need is 1 quick contact on rez. I saw something about routing the email? That sounds very slow and involved. I was thinking of linking the objects but there is a 255 prim limit if I'm not mistaken.
The only 2 solutions I see are the routed email thing. Or getting some land with a link server that creates a new link server every 250 times this thing is bought. But it can't replicate itself so it would need a link server server...
Oh, ouch, something in my brain just went boing. I can't see. Help me please.
|
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
03-30-2006 16:51
You can set the object to sell copies of itself. No scripting needed, SL will take care of it for you.
Right click, select Edit, click on the More button, then check the 'For Sale' box, and the 'Copy' radio button.
Unless that's not what you're talking about.
|
|
bafilius Goff
Registered User
Join date: 19 Mar 2006
Posts: 31
|
03-30-2006 16:55
From: Ziggy Puff You can set the object to sell copies of itself. No scripting needed, SL will take care of it for you.
Right click, select Edit, click on the More button, then check the 'For Sale' box, and the 'Copy' radio button.
Unless that's not what you're talking about. oh, yeah, thanks, I forgot to mention the reason I needed this thing to be scripted I want to get a commission off the sales. So %90 to the reseller and %10 to me. Is there a way to activate a script when the object is bought normally?
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
03-30-2006 17:31
There is no easy way to do what you want. There is no meaningful way to do this with the current permissions system in SL.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
03-30-2006 17:31
No, scripts can only access the Pay option, not the Buy option. You'll have to use a vendor, but then, like you said, the object that gets sold isn't the object that does the selling. OK, I see your problem now 
|
|
bafilius Goff
Registered User
Join date: 19 Mar 2006
Posts: 31
|
03-30-2006 18:03
I GOT IT!!!!!
I'll do it with keys and emails. I'll build 9 servers on 3 3 prim parcels that only have to communicate with each other. If one gets moved it'll tell the other 8 where it is to keep the keys active. Each object will check each server systematically until it finds one that is still alive. That server will give the object the most current version of the list of server keys. I don't expect to move these things ever so 9 should be enough to make it robust.
My only remaining concern is if there is something in game that may force these things to rerez. Like when they shut down servers.
fixed that too, I'll include a note that says where they can go to get an active list of server keys if all else fails keeps me from doing a lot of work
that being the case I can limit it to 3 servers
I'm a genius
|
|
bafilius Goff
Registered User
Join date: 19 Mar 2006
Posts: 31
|
03-31-2006 11:47
Further improvement... I'm going to set up 3 router servers with very simple code that never needs to be changed. They'll maintain the keys as well as the key for the actual server. So when the vendors call in, they'll ask the routers for the key to the server. That way I can change the server as I please and make improvements and revisions as necessary.
Now, if I can just figure out how to do all that, it would be swell.
|