Difference between revisions of "LlSetPayPrice"

From Second Life Wiki
Jump to navigation Jump to search
Line 2: Line 2:
|func_id=302|func_sleep=0.0|func_energy=10.0
|func_id=302|func_sleep=0.0|func_energy=10.0
|func=llSetPayPrice
|func=llSetPayPrice
|p1_type=integer|p1_name=price
|p1_type=integer|p1_name=price|p1_desc=PAY_* constant or positive value
|p2_type=list|p2_name=quick_pay_buttons
|p2_type=list|p2_name=quick_pay_buttons|p2_desc=PAY_* constants and/or positive integer values
|sort=PayPrice
|sort=PayPrice
|func_desc=Sets the default amount for price text field and pay buttons of the appearing dialog when someone chooses to pay this object.
|func_desc=Sets the default amount for pay text field and pay buttons of the appearing dialog when someone chooses to pay this object.
|examples=This will give the user a dialog box without the '''price''' field and only one button with a value of 150.
|examples=This will give the user a dialog box without the '''price''' field and only one button with a value of 150.
<pre>llSetPayPrice(PAY_HIDE, [150,PAY_HIDE,PAY_HIDE,PAY_HIDE])</pre>
<pre>llSetPayPrice(PAY_HIDE, [150,PAY_HIDE,PAY_HIDE,PAY_HIDE])</pre>
|spec
|spec
|caveats
|caveats
|constants={{LSLC|FixMe}}
|constants=
{{{!}}
{{!}}
{{{!}}{{Prettytable}}
{{!}}-{{Hl2}}
! colspan="2" {{!}} Constant
! Description
{{!}}-
{{!}} [[PAY_HIDE]]
{{!}} -1
{{!}} Do not show this quick pay button.
{{!}}-
{{!}} [[PAY_DEFAULT]]
{{!}} -2
{{!}} Use the default value for this quick pay button.
{{!}}}
{{!}}
{{{!}}{{Prettytable}}
{{!}}-{{Hl2}}
! colspan="2" {{!}} Button Order
{{!}}-
{{!}}1
{{!}}2
{{!}}-
{{!}}3
{{!}}4
{{!}}}
{{!}}
{{{!}}{{Prettytable}}
{{!}}-{{Hl2}}
! colspan="2" {{!}} Defaults
{{!}}-
{{!}}$1
{{!}}$5
{{!}}-
{{!}}$10
{{!}}$20
{{!}}}
{{!}}}
|helpers
|helpers
|also_functions
|also_functions

Revision as of 16:03, 23 February 2007

Summary

Function: llSetPayPrice( integer price, list quick_pay_buttons );
0.0 Forced Delay
10.0 Energy

Sets the default amount for pay text field and pay buttons of the appearing dialog when someone chooses to pay this object.

• integer price PAY_* constant or positive value
• list quick_pay_buttons PAY_* constants and/or positive integer values

Constant Description
PAY_HIDE -1 Do not show this quick pay button.
PAY_DEFAULT -2 Use the default value for this quick pay button.
Button Order
1 2
3 4
Defaults
$1 $5
$10 $20

Examples

This will give the user a dialog box without the price field and only one button with a value of 150.

llSetPayPrice(PAY_HIDE, [150,PAY_HIDE,PAY_HIDE,PAY_HIDE])

Deep Notes

Signature

function void llSetPayPrice( integer price, list quick_pay_buttons );