Difference between revisions of "LlReturnObjectsByOwner/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 2: Line 2:
|inject-2=
|inject-2=
{{Issues/SVC-6281}}
{{Issues/SVC-6281}}
{{LSL_Function/permission|PERMISSION_RETURN_OBJECTS}}
{{LSL_Function/permission/ja|PERMISSION_RETURN_OBJECTS}}
{{LSL_Function/avatar|owner|group=*}}
{{LSL_Function/avatar/ja|owner|group=*}}
|func_id=|func_sleep=0.0|func_energy=
|func_id=|func_sleep=0.0|func_energy=
|func=llReturnObjectsByOwner|sort=ReturnObjectsByOwner
|func=llReturnObjectsByOwner|sort=ReturnObjectsByOwner

Revision as of 13:12, 2 November 2023

要約

関数: integer llReturnObjectsByOwner( key owner, integer scope );

If the script is owned by an agent, PERMISSION_RETURN_OBJECTS may be granted by the owner. If the script is owned by a group, this permission may be granted by an agent belonging to the group's "Owners" role.
that is the number of objects successfully returned to their owners or an ERR_* flag.を integer で返します。

• key owner アバターの UUID
• integer scope OBJECT_RETURN_* flag

実行するには、llRequestPermissions による PERMISSION_RETURN_OBJECTS 権限が必要です。 If the return value is negative, it represents an error flag.

仕様

Throttle

Throttled at max parcel land impact capacity region-wide per hour.

scope Flag Description
OBJECT_RETURN_PARCEL Return all objects on the same parcel as the script which are owned by owner.
The script must be owned by an estate manager or over a parcel owned by the owner of the script.
OBJECT_RETURN_PARCEL_OWNER Return all objects owned by owner which are over parcels owned by the owner of the script.
OBJECT_RETURN_REGION Return all objects in the region owned by owner.
The script must be owned by the estate owner or an estate manager.
Error Flags Description
ERR_GENERIC -1 A nebulous and inexplicable error, nothing is known about it.
ERR_PARCEL_PERMISSIONS -2 Permission lacked to perform task on specified parcel.
ERR_MALFORMED_PARAMS -3 Parameters are malformed.
ERR_RUNTIME_PERMISSIONS -4 Script lacks the runtime permission to perform the requested task.
ERR_THROTTLED -5 Task has been throttled. Try again later.

警告

  • 権限の自動付与に頼らないようにしましょう。常に run_time_permissions イベントを使用しましょう。
  • スクリプトに PERMISSION_RETURN_OBJECTS の権限が不足していると、スクリプトはエラーを DEBUG_CHANNEL で叫び、操作に失敗します (しかしスクリプトは処理を続けます)。
  • いったん PERMISSION_RETURN_OBJECTS 権限が付与されると、スクリプトの中で (例えば、新しい llRequestPermissions 呼び出しなどにより) 権限をはく奪することができません。スクリプトはオブジェクトが derez (削除、取り外し、取り込み) されない限り権限が失われません。
  • Parcel owner, estate owner and estate managers can not have their objects returned by this method.
  • Objects which are owned by the group the land is set to will not be returned by this method.
    • Objects owned by other groups will be returned to their previous owner if the object is transferable. If not transferable they are deleted.

Important Issues

~ All Issues ~ Search JIRA for related Bugs
   Shared group inventory

サンプル

注意点

For group-owned land you may want to explicitly code a group owner's key into the script as there is no way to determine if a user is a group owner.

関連項目

イベント

•  run_time_permissions 権限取得イベント

関数

•  llGetPermissions 付与されている権限を取得します
•  llGetPermissionsKey 権限を許可したエージェントを取得します
•  llRequestPermissions 権限を要求します
•  llReturnObjectsByID/ja
•  llGetParcelPrimOwners/ja
•  llDie/ja

記事

•  権限/スクリプト

特記事項

経緯

Date of Release 18/06/2013

All Issues

~ Search JIRA for related Issues
   Shared group inventory

Signature

function integer llReturnObjectsByOwner( key owner, integer scope );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。