Jump to content

Is this possible to do instead of having to make a vendor?


jjws888
 Share

You are about to reply to a thread that has been inactive for 4675 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I have completely given up trying to make a working vendor, so i've thought of something else.

 

Can I make it so that when someone clicks on a prim, a web page opens up to the item i'm selling in the marketplace?

This would be a easier for me.

 

How would I go about doing this? Would I have to place a script in the prim? If that's not it, how?

Link to comment
Share on other sites

Unless you want features such as automatic updates, you don't really need a scripted vendor solution. Scriptless "Linden vendors" are easy to create and cause a lot less lag. Just rez a prim, edit it, click the "For Sale" and "Contents" checkboxes in the edit window, and enter a price.

As for a link to the Marketplace: Yes, this is possible :) All you need to do is rez a prim, create a new script in the prim's inventory, edit the script, delete the text, paste the following text in, and change the URL in the third line to your own Marketplace URL:

 

// change the text and URL within the quotes as requiredstring text = "Visit my store on the Marketplace!";string _url = "https://marketplace.secondlife.com/stores/4825";default{    state_entry() // set prim size and apply textures    {        llSetPrimitiveParams( [PRIM_SIZE, <0.05,4,2.5>,        PRIM_TEXTURE, 0, "8dcd4a48-2d37-4909-9f78-f7a9eb4ef903",        <1,1,0>, <0,0,0>, 0,        PRIM_TEXTURE, 1, "8dcd4a48-2d37-4909-9f78-f7a9eb4ef903",        <1,1,0>, <0,0,0>, 0,        PRIM_TEXTURE, 2, "4b45a003-6f7e-a6db-bce2-fcc43940a95f",        <0.5,1,0>, <-0.25,0,0>, 0,        PRIM_TEXTURE, 3, "8dcd4a48-2d37-4909-9f78-f7a9eb4ef903",        <1,1,0>, <0,0,0>, 0,        PRIM_TEXTURE, 4, "4b45a003-6f7e-a6db-bce2-fcc43940a95f",        <0.5,1,0>, <0.25,0,0>, 0,        PRIM_TEXTURE, 5, "8dcd4a48-2d37-4909-9f78-f7a9eb4ef903",        <1,1,0>, <0,0,0>, 0,         PRIM_FULLBRIGHT, 2, TRUE, PRIM_FULLBRIGHT, 4, TRUE] );    }    touch_start(integer total_number) // open URL dialog on touch    {        llLoadURL(llDetectedKey(0), text, _url);    }}

 

The script looks more complex than it needs to be because it resizes the prim and applies textures (click here to see what it looks like). If you want to design your own unique display, you can use this simple script instead:

 

default{    touch_start(integer total_number) // open URL dialog on touch    {        llLoadURL(llDetectedKey(0), "Visit my store on the Marketplace!",         "https://marketplace.secondlife.com/stores/4825");    }}

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4675 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...