Difference between revisions of "LlSetPayPrice"

From Second Life Wiki
Jump to navigation Jump to search
Line 7: Line 7:
|p2_type=list|p2_name=quick_pay_buttons|p2_desc=Four PAY_* constants and/or positive integer values
|p2_type=list|p2_name=quick_pay_buttons|p2_desc=Four PAY_* constants and/or positive integer values
|func_desc=Sets the default amount for pay 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.
|func_footnote=This function has no effect if called from a state that does not implement the [[money]] event.
|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>
Line 17: Line 18:
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
! colspan="2" {{!}} Constant
! colspan="2" {{!}} Constant
! {{HoverText|Alt|Alternate}}
! Description
! Description
{{!}}-
{{!}}-
{{!}} [[PAY_HIDE]]
{{!}} [[PAY_HIDE]]
{{!}} -1
{{!}} -1
{{!}} Do not show this quick pay button.
{{!}} <center>0</center>
{{!}} Hides this quick pay button.
{{!}}-
{{!}}-
{{!}} [[PAY_DEFAULT]]
{{!}} [[PAY_DEFAULT]]
{{!}} -2
{{!}} -2
{{!}}
{{!}} Use the default value for this quick pay button.
{{!}} Use the default value for this quick pay button.
{{!}}}
{{!}}}
{{!}}
{{!}}
{{{!}}{{Prettytable}}
{{{!}} {{Prettytable}}
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
! colspan="2" {{!}} Button Order
! colspan="2" {{!}} Button Order
{{!}}-
{{!}} <center>1</center>
{{!}} <center>2</center>
{{!}}-
{{!}}-
{{!}}1
{{!}} <center>3</center>
{{!}}2
{{!}} <center>4</center>
{{!}}-
{{!}}3
{{!}}4
{{!}}}
{{!}}}
{{!}}
{{!}}

Revision as of 19:59, 9 March 2007

Emblem-important-red.png Security Warning!

Always (ALWAYS!) check the amount paid in your money() event. This UI element isn't modal, and has had bugs exploited in the past. Never trust the client software to be secure.

Summary

Function: llSetPayPrice( integer price, list quick_pay_buttons );

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 Four PAY_* constants and/or positive integer values

This function has no effect if called from a state that does not implement the money event.

Constant Alt Description
PAY_HIDE -1
0
Hides 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])

See Also

Events

•  money

Functions

•  llGiveMoney

Deep Notes

Search JIRA for related Issues

Signature

function void llSetPayPrice( integer price, list quick_pay_buttons );