Yes, thank you. I am posting the original scropt that came WITH the Multi-Vendor board. I'm sure it is probably a simple addition to the script to take it from a 2-way split to a 3-way one. Unfortunately, I am not so knowledgeable in scripting to alter this one. I have done some very simple editing, but have no idea how to do this particular alteration.
Here is the "original" vendor script in its entire form:
//Vendor - Split Income With Partner (Version 3.0)
//Do not remove the following information...
//Originally Coded by Nick Fortune and called Sales Assistance- 09/01/2004
//Updated by Chaiboy Rang - 07/29/2007
//Updated by Chimera Firecaster - 05/01/2010
//Small Revision Chimera Firecaster - 02/19/2011
//Extensive revisions Chimera Firecaster - April, 2014
//
//Information on the 2014 revisions . . .
// - It's easier to enter a price directly in the script rather than
// setting it up in the description of the item, a technique which
// was used in all previous versions of this script.
// - I've also set up the "Pay" dialog box so that it only includes
// the price of the item. In previous versions the customer could
// enter a lower or higher amount. This is less confusing to the
// customer and less chance of errors on the part of the creator
// - I've also included information on Second Life's "Allow Total
// Access" message. It's important to allow access or the partner
// will not receive their share of the proceeds.
// - Another new addition is a check feature. The script checks
// to make sure the UUID is valid and if it is valid, it reports
// back with the unique name (log-in name) of the partner
// - Improved the text of several messages
// - Finally, the script was reformatted in current LSL standards
//
// More information on this scripts and other free Second Life scripts can
// be found on my website at: http://chimerafire.wordpress.com/
//
//General purpose of script:
// This script allows you to sell items and split the profit with a partner.
//
// What you need to do:
//
// 1. Using a "box" prim, flatten it out and make a poster. I'll call this the
// "Vendor Poster." Add a texture which illustrates your product. To the
// contents of the poster, add this script plus your product AND the demo of
// your product.
//
// 2. Look in the "Contents" of the vendor poster, right-click on this script
// and select OPEN. You'll make a couple of modifications. Look for
// "Enter the price of Your Item" (below) Change 111111 to the amount you are
// charging for the product.
//
// 3. You'll also need to enter the name of the item you are selling and the name
// of the demo item. The name must be exactly the same as name in the item's
// "General" tab. The best way to do this is to right click on the item you are
// selling and select "Edit." Look under the "General" tab and copy the "Name" to
// the clipboard. Then paste the name in the appropriate place in the script
// as indicated below. By using copy and paste, you'll be assure the name is
// exactly the same. Do that also for the demo Item.
//
// 4. Two more values are required to appropriately pay your partner's share.
// FIRST, you need to enter your partner's UUID key.
// If you don't know what that is, do a search on web for information
// on how to obtain it. Or you may visit: http://chimerafire.wordpress.com/
// for a free script to obtain an avatar's UUID key.
// SECONDLY, you need to enter the percentage of the total that you are paying
// your partner. The default percentage is 50%. You can make this whatever
// you and your partner have mutually agreed upon. Enter the value as a
// decimal. For example, if you are paying your partner 40%, enter the
// value as .40
//
// 5. Save the script by clicking the "Save" button at the bottom of the script
// editor. When you save it, Second Life will trigger the following message:
// "Warning. [Name of Your Vendor Poster] wants total access to your Linden Dollar
// account. If you allow access, it can remove funds at any time . . . Do not
// allow access if you do not fully understand why it wants access to your
// account." In order for this script to work properly and provide your
// partner with their share, you must click on the "ALLOW TOTAL ACCESS"
// button. What this means is that vendor poster that you have created can remove
// your partner's share each time someone purchases the product. If you
// don't allow access then your partner will never receive any money. and all
// of the money will end up going to you. Since it is the script in the vendor
// poster which is distributing the money, it only does so when you have a sale,
// and you do not have to worry about your account being emptied.
//
// 6. Look in the "General" tab of the vendor poster and make sure that
// "TOUCH DEFAULT" IS turned on AND make sure that "FOR SALE" is NOT checked.
// This will save you several hours of heartache (Can you guess that I spent a
// day dealing with it...yikes, yes!) If you have any Pay settings turned on, the
// script will not work properly, so don't forget to check these settings
//
// 7. Just to make sure everything is ready, do a "Re-set" of the script. You can do
// that by opening the script and clicking on the "Reset" button. You'll get the
// Allow Total Access message again. Be sure to click the "ALLOW TOTAL ACCESS"
// button as explain above or your partner will not receive his or her share.
//
//
//Note: this is a FREE script. It is given generously to the Second Life
// community without the expectation of anything in return. It may be
// distributed, but please do not charge for it. That's bad form and will
// most certainly bring bad karma to those who dishonor the kindness of others.
//-----Do Not Remove Above Header
//INFORMATION THAT YOU NEED TO ADD . . .
// 1. PUT YOUR PARTNER'S KEY IN THE NEXT LINE BETWEEN THE QUOTES: where the x's are your partner's key
key gPartner = "xxx-xxx-xxx-xxxx-xxxxx";
// 2. PUT THE PERCENTAGE YOU WISH TO PAY YOUR PARTNER IN THE NEXT LINE
float gPercent = .50;
// 3. PUT THE PRICE OF THE ITEM IN THE NEXT LINE BY REPLACING 111111 WITH YOUR PRICE
integer gPrice = 149;
///----------------Don't need to change anything below this line-------------------
key gOwner;
integer gCut;
integer gPerms = FALSE;
string gObject;
default
{
state_entry()
{
if (gPartner)
{
llOwnerSay("Your partner's UUID is: "+(string)gPartner);
llOwnerSay("Your partner's name (log-in name) is: " + "secondlife:///app/agent/" + (string)gPartner + "/about");
}
else
{
llOwnerSay("There's a problem. Check your partner's UUID. Second Life is reporting that it is not valid.");
}
gOwner = llGetOwner();
if (gPrice == 111111)
{
llInstantMessage(gOwner, "Ooops! You are missing the price for your item. "+
"Enter the price where indicated in the script, save the script and start again.");
}
else
{
llSetPayPrice(PAY_HIDE, [gPrice, PAY_HIDE, PAY_HIDE, PAY_HIDE]);
if (gPartner != "")
{
gCut = llRound(gPrice * gPercent);
}
gObject = llGetInventoryName(INVENTORY_OBJECT,0);
llRequestPermissions(gOwner,PERMISSION_DEBIT);
}
}
on_rez(integer passed)
{
if(llDetectedKey(0) != llGetOwner())
{
llResetScript();
}
}
run_time_permissions(integer type)
{
if ((type & PERMISSION_DEBIT) != PERMISSION_DEBIT)
{
gPerms = FALSE;
llInstantMessage(gOwner, "The proper permissions have NOT been set. Your partner will NOT "+
"receive his/her percentage. In order for your partner to receive their share, you must "+
"'Allow Access' Re-set the script and choose 'Allow Access'");
llRequestPermissions(gOwner,PERMISSION_DEBIT);
}
else
{
gPerms = TRUE;
llInstantMessage(gOwner, "The proper permissions have been set so that you'll be able to "+
"share the proceeds with your partner.");
if ((gPrice) && (gObject != ""))
{
if (gPartner != "")
{
llInstantMessage(gOwner, "Item being sold: "+gObject+".\nFor the amount of: "+(string)gPrice+"$L. "+
"\nPartner will receive: "+(string)gCut+"$L cut.");
}
else
{
llInstantMessage(gOwner, "Selling "+gObject+" for "+(string)gPrice+"$L. [NO Partner Defined.]");
}
}
else
{
llInstantMessage(gOwner, "I have permissions, but your box is missing contents or missing a price.");
llInstantMessage(gOwner, "Fix error and touch to reset when ready.");
}
}
}
touch_start(integer total_number)
{
if (llDetectedKey(0) == llGetOwner())
{
llResetScript();
}
else
{
llWhisper(0, "If you would like to purchase this item, right click and select PAY.");
}
}
//Note that the test amount < gPrice or amout > gPrice is not necessary since the Pay dialog box
//will only show the correct amount. I've left this in the event you need have
//more price variability
money(key giver, integer amount)
{
if (gPerms == TRUE)
{
if (amount < gPrice)
{
llSay(0, gObject+" costs L$" + (string) gPrice);
llSay(0, "You paid $L"+(string)amount+", which is not enough!");
llGiveMoney(giver, amount);
}
else
{
llSay(0, "Thank you for your purchase!");
llGiveInventory(giver, gObject);
if (amount > gPrice)
{
llGiveMoney(giver, amount - gPrice);
}
if (gPartner != "")
{
llGiveMoney(gPartner, gCut);
}
}
}
}
}
END OF SCRIPT
As you can see, this script is designed to work with the board it comes with, and does a 2-way split with a partner, which works fine. I can set the UUID, the percentage of the split & the price of the outfit, which is then divided per the script.
I'm sure that there is a way to adapt this script and add another UUID for a 3-way split, but again, I am not really that knowledgeable with scripts, as of yet anyways. :0)
My delemma is, with the landlord taking 50% of the sale, which I know is a bit much, if I use this script, which would work, I would then have to keep track of what is sold, and then pay my partner directly the share that they would be entitled to. Because this is not an actual enterprise to make a living in SL, but more of a hobby that allows me a bit of creativity that I would like to subsidize somewhat with perhaps SOME return on my expenditures.
Thanks so much to everyone who has responded so kindly. I really do appreciate all of your assistance and input, and am so thankful for anything that perhaps can be done with this.
Much love, peace and joy,
Barbi