Scripter wanted to take the following script and make it work =x
One object, two prices. It looks like it should work to me, but it don't. I've tried asking under Scripting Tips before but no one's ever been willing. Lemme know your charge first. I'm also still fussing with it.
---
//Title: Multiple Person Vendor (Originally One Person Vendor)
//Date: 01-28-2004 04:38 PM
//Version: 1.0.0
//Scripter: Ama Omega
//Modified: Malina Chuwen 9-27-08
//
integer price = 10; // adjust accordingly
integer second = 20;
string item = "Object";
string itemb = "Object2";
default
{
state_entry()
{
llSetPayPrice(PAY_HIDE, [price, second, PAY_HIDE, PAY_HIDE]);
}
}
state run
{
money(key id, integer amount)
{
if (amount = price);
llGiveInventory(id,item);
if (amount = second);
llGiveInventory(id,itemb);
}
}
--------
--------------------------
--------
With this in the first part, it kinda works.. It shows both prices, but gives both items with either one paid:
default
{
state_entry()
{
llRequestPermissions( llGetOwner(), PERMISSION_DEBIT );
llSetPayPrice(PAY_HIDE, [price, second, PAY_HIDE, PAY_HIDE]);
}
run_time_permissions(integer perms)
{
if (perms & PERMISSION_DEBIT)
state run;
}
}