LlGetParcelPrimOwners
From OpenSimulator
Summary
Function: list llGetParcelPrimOwners( vector pos );Returns list
of all residents who own objects on the parcel at pos and with individual land impact used.
The list is formatted as [ key agentKey1, integer agentImpact1, key agentKey2, integer agentImpact2, ... ]
, and sorted by agent key with a maximum of 100 strides.
• vector | pos | – | position in region coordinates]] |
Requires owner-like permissions for the parcel.
Specification
Ownership
- If the parcel owner and object owner are the same (including if the object and parcel are both group owned):
- All object owners are returned.
- If the parcel is group owned but the object is owned by a member of the group, the function return depends upon what powers they have been granted:
- If resident has the 'Template:HoverText' power:
- The return list includes the group and the LI of objects it owns on the parcel.
- If the resident has the 'return group set objects' power:
- The return list includes all owners who have objects set to the group on the parcel
- If the resident has the 'return non-group objects' power
- The return list includes all owners of objects that don't fall into the above two categories.
- If resident has the 'Template:HoverText' power:
- If none of the above cases match, an empty list will be returned.
Caveats
- This function causes the script to sleep for 2.0 seconds.
- Function WILL NOT work on group owned land if the owner of the object where this function resides is not currently online and connected to the sim (although now seems to be working for land owner on privately owned land even when the owner is not around).
- These limitation can be overcome by deeding the object to a group the object owner is one of the owners of.
- Remember to take a copy before deeding because you cannot undeed something.
Examples
Show a comma separated list of user IDs and their prim counts. key1, count1, key2, count2 .... etc.
default { state_entry() { list TempList = llGetParcelPrimOwners( llGetPos() ); llSay(0, llList2CSV(TempList) ); } }
Use floating text to show prim owner names and counts in count order
GeSHi Error: GeSHi could not find the language lsl2 (using path /var/www/opensimulator.org/extensions/SyntaxHighlight_GeSHi/geshi/geshi/) (code 2)
You need to specify a language like this: <source lang="html">...</source>
Supported languages for syntax highlighting:
abap, actionscript, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, bnf, c, c_mac, caddcl, cadlisp, cfdg, cfm, cpp, cpp-qt, csharp, css, d, delphi, diff, div, dos, dot, eiffel, fortran, freebasic, genero, gml, groovy, haskell, html4strict, idl, ini, inno, io, java, java5, javascript, latex, lisp, lsl, lua, m68k, matlab, mirc, mpasm, mysql, nsis, objc, ocaml, ocaml-brief, oobas, oracle8, pascal, per, perl, php, php-brief, plsql, python, qbasic, rails, reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vb, vbnet, vhdl, visualfoxpro, winbatch, xml, xpp, z80