<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
	<id>http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlSetPayPrice</id>
	<title>LlSetPayPrice - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlSetPayPrice"/>
	<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlSetPayPrice&amp;action=history"/>
	<updated>2026-06-01T06:20:57Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlSetPayPrice&amp;diff=602&amp;oldid=prev</id>
		<title>Wzc：创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: llSetPayPrice( integer price, list quick_pay_buttons ); |…”</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlSetPayPrice&amp;diff=602&amp;oldid=prev"/>
		<updated>2020-08-13T13:32:07Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: llSetPayPrice( integer price, list quick_pay_buttons ); |…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{函数详情&lt;br /&gt;
|函数名 = Function: llSetPayPrice( integer price, list quick_pay_buttons );&lt;br /&gt;
|参数= 参数：&lt;br /&gt;
•整数价格–支付常数或正值&lt;br /&gt;
•列出快速支付按钮–四个支付常量和/或正整数值&lt;br /&gt;
|返回值= 返回值：当有人选择支付此对象时，建议显示对话框的“支付”文本字段和“支付”按钮的默认金额。&lt;br /&gt;
&lt;br /&gt;
|注意事项=不应信任此函数来限制应向对象支付的金额；始终验证支付的金额是否为预期金额。&lt;br /&gt;
在一个对象的所有脚本中只使用一次对该函数的调用，以防止混淆使用了哪些值。您仍然需要在money事件中检查金额是否与预期相符。&lt;br /&gt;
此函数仅在从对象的根基元调用时有效。其效果适用于对象中的所有基本体。从一个幼稚的孩子那里叫它没有效果。&lt;br /&gt;
prim中的llSetPayPrice（）设置可以阻止对prim的付款，即使删除了带有llSetPayPrice（）的脚本，该设置也会持续。&lt;br /&gt;
请注意，pay选项将只在具有一个正在运行的脚本和money事件的prims中显示（或者，如果根用户有一个正在运行的脚本和money事件，则在对象的所有prims中）。&lt;br /&gt;
即使脚本在没有llSetPayPrice函数的情况下重新编译，即使脚本被替换为另一个包含money事件但不包含llSetPayPrice的脚本，这种效果似乎仍然存在。&lt;br /&gt;
金钱不能支付给附件；“支付”将直接支付给佩戴者。&lt;br /&gt;
&lt;br /&gt;
|示例=&lt;br /&gt;
这将为用户提供一个没有price字段的对话框，只有一个值为150的按钮。&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
llSetPayPrice(PAY_HIDE, [150,PAY_HIDE,PAY_HIDE,PAY_HIDE])&lt;br /&gt;
integer price = 10;&lt;br /&gt;
 &lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        llSetPayPrice(PAY_HIDE, [PAY_HIDE ,PAY_HIDE, PAY_HIDE, PAY_HIDE]);&lt;br /&gt;
        llRequestPermissions(llGetOwner(), PERMISSION_DEBIT);&lt;br /&gt;
    }&lt;br /&gt;
    run_time_permissions(integer perm)&lt;br /&gt;
    {&lt;br /&gt;
        if(perm &amp;amp; PERMISSION_DEBIT)&lt;br /&gt;
            state cash;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
state cash&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        llSetPayPrice(price, [price ,PAY_HIDE, PAY_HIDE, PAY_HIDE]);&lt;br /&gt;
    }&lt;br /&gt;
    money(key id, integer amount)&lt;br /&gt;
    {&lt;br /&gt;
        if(amount != price)&lt;br /&gt;
        {&lt;br /&gt;
            llGiveMoney(id, amount);&lt;br /&gt;
            llInstantMessage(id, &amp;quot;You paid &amp;quot;+(string)amount+&amp;quot;, which is the wrong price, the price is: &amp;quot;+(string)price);&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
            //insert your give code here.&lt;br /&gt;
            llInstantMessage(id, &amp;quot;You paid the right price&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|相关函数=&lt;br /&gt;
[[llGiveMoney]]&lt;br /&gt;
&lt;br /&gt;
|相关事件=[[money]]&lt;br /&gt;
}}&lt;br /&gt;
附录：（表格）&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! header 1&lt;br /&gt;
! header 2&lt;br /&gt;
! header 3&lt;br /&gt;
|-&lt;br /&gt;
| row 1, cell 1&lt;br /&gt;
| row 1, cell 2&lt;br /&gt;
| row 1, cell 3&lt;br /&gt;
|-&lt;br /&gt;
| row 2, cell 1&lt;br /&gt;
| row 2, cell 2&lt;br /&gt;
| row 2, cell 3&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Wzc</name></author>
		
	</entry>
</feed>