|
Nora Wayne
Registered User
Join date: 6 Jul 2006
Posts: 21
|
03-08-2007 15:56
I'm looking for a script (and I'll pay for it) that will allow an object to be invisible until the designated avatar shows up. I want to have an item up for sale but only have it appear for that avatar. If anybody knows where I can find something like this it would be a HUGE help Thanks!
~ Nora
|
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
03-08-2007 16:39
You could use nearly any simple vendor script and add something like the following to the money event: // add the following constant to the top of your script key SELL_TO_AVATAR = "uuid of the target avatar goes here";
money(key id, integer amount) { // insert the section below into your script's money event if (id != SELL_TO_AVATAR) { llGiveMoney(id, amount); llInstantMessage(id, "Sorry, this item has been reserved for purchase by someone else. Your money has been refunded."; return; } // rest of your script continues below
|
|
Nora Wayne
Registered User
Join date: 6 Jul 2006
Posts: 21
|
03-08-2007 16:58
Awesome thank you so much!
|
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
03-08-2007 17:04
I guess I should note... that snippet of code doesn't make anything invisible. The idea would be that you put your item in a box along with the vendor script. Then tell your purchaser to pay the box for whatever you're selling. Most likely, nobody else would try to pay the box if it doesn't look like an obvious vendor, but the code snippet is a safety net just in case.
It's also possible to have an object rez when the designated avatar is nearby or clicks somewhere to trigger the rez... but I think the above option is the easiest and most reliable if you already have a simple vendor script.
|