Second Life Copybot
pay me - Printable Version

+- Second Life Copybot (https://secondlifecopybot.com)
+-- Forum: SECOND LIFE PRODUCTS (https://secondlifecopybot.com/forum-1.html)
+--- Forum: SCRIPTS (https://secondlifecopybot.com/forum-1022.html)
+---- Forum: SCRIPTS (https://secondlifecopybot.com/forum-8.html)
+----- Forum: Business Scripts (https://secondlifecopybot.com/forum-44.html)
+----- Thread: pay me (/thread-606.html)



pay me - steadymobbin - 02-18-2013

PHP Code:
integer price 10//enter your price here
string text ""//write a text between the quote marks that will be displayed as float text (optional). If you want multiple lines, write \n like this: "Object for sale\n10L$", this will display "Object for sale" in one line, "10L$" in the other.

default
{
state_entry()
{
llSetPayPrice(PAY_HIDE, [pricePAY_HIDEPAY_HIDEPAY_HIDE]);
llSetText(text, <111>, 1);
}

touch_start(integer total_number)
{
if (
llGetInventoryNumber(INVENTORY_NOTECARD) > 0)
llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_NOTECARD0));
}

money(key idinteger amount)
{
if (
amount == price)
{
integer i;
integer len llGetInventoryNumber(INVENTORY_OBJECT);
for(
i=0i<leni++)
llGiveInventory(idllGetInventoryName(INVENTORY_OBJECTi));
}
else
llInstantMessage(id"Sorry, that is not the right amount");
}