Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Question...help needed!!!!

Yummy Freelunch
rides the short bus
Join date: 16 Jun 2006
Posts: 1,247
07-02-2009 22:33
I have a two part question.. I feel dumb askin' cuz Im not a noob..but guess I am when it comes to scripts..anyhoo...is there a script I can put into a prim where my renters can add their own logo to a prim? Same with walls and floors, is there a script where they can add their own textures to my walls and floors that they are renting? Thanks in advance!
_____________________





[url="http://slurl.com/secondlife/BADKATZ/136/134/// VISIT INWORLD! :)

Follow Badkatz Blog
[url="http://badkatzclothing.blogspot.com/?zx=c39b88c950445e10
Rhiannon Boronski
PRIMAL ART OWNER
Join date: 3 Feb 2007
Posts: 220
07-02-2009 23:48
Hi Yummy

not sure which version it is but at one time one of Hippotechs rental systems offered the feature where the renter could change a prim to show their logo. A lot of the ad boards allow you to change the texture to your own logo as well

just had a quick look on xstreet this hippotech system does the sign texture change...

https://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=89924

hope that helps

Rhia :)
Yummy Freelunch
rides the short bus
Join date: 16 Jun 2006
Posts: 1,247
07-03-2009 00:36
ahh thanks hon..but no way to do it with just a regular prim that i made? hmmm
_____________________





[url="http://slurl.com/secondlife/BADKATZ/136/134/// VISIT INWORLD! :)

Follow Badkatz Blog
[url="http://badkatzclothing.blogspot.com/?zx=c39b88c950445e10
Cappy Frantisek
Open Source is the Devil!
Join date: 27 Oct 2006
Posts: 400
07-03-2009 04:58
From: Yummy Freelunch
ahh thanks hon..but no way to do it with just a regular prim that i made? hmmm

Sure you can!
_____________________
SL is not better than FL
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
07-03-2009 05:00
i have a script i made like that for my blimp to change the sign on the side
_____________________
L$ is the root of all evil
videos work! thanks SL :)
Carbon Philter
Registered User
Join date: 4 Apr 2008
Posts: 165
07-03-2009 06:24
Put the following script in the prim you want to change the texture on.
Put the texture URL in place of xxx.
Change ALL_SIDES to the number for the prim face you want to retexture - read up on the Wiki if you need to work out wwhich face is which.

http://lslwiki.net/lslwiki/wakka.php?wakka=side

As long as your renters have it in their inventory they can get the URL of the texture.

Good luck
Carbon


default
{
state_entry()
{
string texture = "xxx";
llSetTexture(texture, ALL_SIDES);
}
}
Clarissa Lowell
Gone. G'bye.
Join date: 10 Apr 2006
Posts: 3,020
07-03-2009 07:31
Couldn't you just make your houses modifyable?
_____________________
Dante Tucker
Purple
Join date: 8 Aug 2006
Posts: 806
07-03-2009 07:41
I won't write a whole script. maybe later if I am bored. But here is a nice way of doing it.

Script listens on a channel.
Script hears a command of your choosing, said by people you want to be able to change the texture.
Script waits and listens for a UUID of a texture.
When the person that said the command says a UUID the script uses llSetTexture to set a face of the object to the UUID said.
????
Profit.
Prawnyloks Parker
"Prim Fiddler"
Join date: 6 Oct 2006
Posts: 420
07-03-2009 09:41
From: Yummy Freelunch
I have a two part question.. I feel dumb askin' cuz Im not a noob..but guess I am when it comes to scripts..anyhoo...is there a script I can put into a prim where my renters can add their own logo to a prim? Same with walls and floors, is there a script where they can add their own textures to my walls and floors that they are renting? Thanks in advance!

Not sure if there's a reason you want to do this via a script, but why not just share the prims you want them to be able to re-texture with group?
_____________________
PP Designs - The Home of Low Prim Designs - low prim prefabs & furniture



http://slurl.com/secondlife/nuclear/236/240/21 (main store)
or http://slurl.com/secondlife/huntsman/162/112/115
Tali Rosca
Plywood Whisperer
Join date: 6 Feb 2007
Posts: 767
07-03-2009 13:04
Not sure if it is particularly easy or convenient, but you could do something like


string lastTexture;
key waitingFor = NULL_KEY;

default
{
touch_start(integer i)
{
// Check for group membership. Here could go any other validation check.
if (llDetectedGroup(0))
{
waitingFor = llDetectedKey(0);
llAllowInventoryDrop(TRUE);
llSetTimerEvent(60.0);
llInstantMessage(waitingFor, "Hold down CTRL while dragging a texture to the prim.";);
}
else
{
llInstantMessage(llDetectedKey(0), "You need to be a group member to change the texture of the sign";);
}
}

changed(integer change)
{
if (change & (CHANGED_ALLOWED_DROP | CHANGED_INVENTORY))
{
// If we have more than one texture, kick out the last we used:
if (llGetInventoryNumber(INVENTORY_TEXTURE) > 1 && lastTexture != "";)
{
llRemoveInventory(lastTexture);
lastTexture = "";
}

// Pick the first remaining texture...
string textureName = llGetInventoryName(INVENTORY_TEXTURE, 0);
if (textureName != "";)
{
// and show it on face 0:
llSetTexture(textureName, 0);
lastTexture = textureName;

// Kick out any excess items (in case the user dropped other things, or more than one)
integer i = llGetInventoryNumber(INVENTORY_ALL);
while (--i >= 0)
{
string nameToRemove = llGetInventoryName(INVENTORY_ALL, i);
if (nameToRemove != textureName && nameToRemove != llGetScriptName())
{
llRemoveInventory(nameToRemove);
}
}
if (waitingFor != NULL_KEY)
llInstantMessage(waitingFor, textureName + " accepted.";);
}
waitingFor = NULL_KEY;
llSetTimerEvent(0);
llAllowInventoryDrop(FALSE);
}
}

timer()
{
llSetTimerEvent(0);
llAllowInventoryDrop(FALSE);
llInstantMessage(waitingFor, "Inventory drop window timed out.";);
waitingFor = NULL_KEY;
}
}