|
Huge Homewood
Registered User
Join date: 6 Feb 2007
Posts: 11
|
10-05-2007 01:43
Hey there. We all know the drill. you own a shopping mall and offer rentable shops. there is allways at last 1 renter that ask allways how much prims he has left. so i move on to search for a prim coutner that say you how much prims are in use // how much prims did he used. and that on a single click. i saw one day this but the owner didn´t told me about how to make this. i just eed to click on it and it says "you currently use 30 prims"
can someone help me to find one or to make one?
Thanks a lot Huge Homewood
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
10-05-2007 07:23
Tried the Products Wanted or Employment Opportunities forums?
|
|
Huge Homewood
Registered User
Join date: 6 Feb 2007
Posts: 11
|
10-05-2007 11:10
nah not realy i think its a scripting question. i mean its some sort of land information query so i think the code wouldn´t be so long. maby 2-3 rows don´t know 
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
10-05-2007 11:34
I imagine youd start with llGetParcelPrimCount.... but considering how malls are set up, and the fact that the above doesn't detect /per owner, I'd imagine, you need some sort sensor to get the exact count, at least at the script level..... or just look in land properties, , objects, and check the count for <user name>... isn't that how it's normally done?
|
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
10-05-2007 12:49
I think llGetParcelPrimOwners is what you are looking for, double check the wiki to be sure, i'm half asleep right now or I would for you.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
10-05-2007 12:58
Yeah, the relevant info comes from llGetParcelPrimOwners, but there's more than a little confusion over how / when it works on group-owned land when there's nobody in the sim with the right parcel permissions. So, if it doesn't work for tenants when the owner isn't around... well, see  . Oh, and there's some other slight trickiness about objects owned by group, but may not be a problem since in this application it's just a match to the key of the agent who touched the scripted prim.
|
|
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
|
10-06-2007 09:04
(Just an FYI based on my experience.)
I made and have been using a prim counter that uses llGetParcelPrimOwners and is deeded to the same group that owns the underlying land.
The prim counter has been working reliabily for others, over a period of weeks, even when I am offline.
-2fast
|