pay me

Thread Started By steadymobbin

1917
0
  • 39 Vote(s) - 2.74 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rate Thread
#1
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");
}

[Image: guns-bullet-shirt_recreated.jpg]
Reply




Forum Jump:

1 Guest(s)
Share this:

About Second Life Copybot

Second Life CopyBot Forum is a place where you can get items for Second Life and other vitual worlds for free. With our CopyBot viewers you can export and import any content from these virtual worlds and modify them in 3D software such as Blender, 3D studio Macx etc...