All pastes #116225 Raw Edit

Stuff

public text v1 · immutable
·published 2006-08-05 04:50 UTC
rendered paste body
//Edit these variables:
//////////////////////

//Price (L$):
integer price = 2000;
//Reset Timer (seconds):
integer reset = 50;
//Touch text (string):
string touch_text = "New product!";
//Posters name to spawn at reset (string):
string poster_name = "self";

//////////////////////

default
{
    state_entry()
    {
        llSetPayPrice(PAY_HIDE, [price, PAY_HIDE, PAY_HIDE, PAY_HIDE]);
        llSetStatus(STATUS_PHANTOM, TRUE);
        llSetAlpha(0.0, ALL_SIDES);
        llSetLinkAlpha(LINK_SET, 0.0, ALL_SIDES);
        llSetTimerEvent(reset);
    }
    
    on_rez(integer s)
    {
        llResetScript();
    }

    touch_start(integer total_number)
    {
        llSay(0, touch_text);
    }
    
    timer()
    {
        llRezObject(poster_name, llGetPos(), ZERO_VECTOR, ZERO_ROTATION, 1);
    } 
}