Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Profile Pick Awards

Morgana Hilra
Addicted to....Hair
Join date: 25 Oct 2006
Posts: 25
08-19-2008 01:44
Does anyone know where I can find the script to add a sign to my store to give gift certificates out to the ppl that have our store in their picks?
And is there a way to limit it to once per week/month?
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
08-19-2008 02:09
As far as I can tell, there's no way to check an avatar's picks list in a script. Even if you could, you'd only be able to check avatars you know about (e.g. ones who have walked through your store or whatever).
Morgana Hilra
Addicted to....Hair
Join date: 25 Oct 2006
Posts: 25
08-19-2008 02:12
well, i know there is a way luv, they are all over the grid, but, when I check the scripts they all say they are from that person, and I asked the ppl and they say they bought it and wont say where, lol.
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
08-19-2008 02:29
what you're looking at is called "picks camping"

Check out this link: http://uncensored.slexchange.com/modules.php?CategoryID=100&SearchCurrentCategory=on&SearchCurrentCategory=on&name=Marketplace&SearchKeyword=picks&
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
08-22-2008 03:24
Aha... perhaps this is how the picks are determined for an awards system:

http://sl.nmc.org/2008/08/21/avatar-profile-on-the-web/


It seems that if you know an avatar's UUID, then you can access their SL profile as a webpage, which includes a list of their "Top Picks" (i.e. not ALL picks, which is why the awards systems all seem to require you to have the pick at/near the top). E.g. here's mine:

http://world.secondlife.com/resident/cb62238b-5ff9-44b4-b705-4ac11cb05b68


Now obviously that data is all in pretty formatted HTML. It *may* be available through XML somehow too, but I'm not entirely sure. Either way though, it's way too much for a lowly LSL script to handle, so I suspect the picks awards systems rely on an external server requesting and 'scraping' avatar's profiles via the web. (It's reasonably easy to do, since the layout of each profile page is very predictable). The system will extract the top pick from the list, and return it to the LSL script in-world.

(Fairly) simple. And at risk of sounding petty, I was right! You can't actually fetch the data purely through LSL... you need that external ugly scraping business. (Admittedly, it's exactly the same as how people use RSS feeds in-world... you can't process the XML in LSL, so you get it 'scraped' externally and returned in a much more concise format).


An interesting side effect of this particular method of determining picks is that it is probably fairly easy to fool. I suspect it works by the name of the place, rather than more unique, in which case you might be able to create a place with the exact same name elsewhere, and add that to your picks instead. I haven't tried it, but if it works, then folks should probably know about it. (I could be wrong though, as each 'place' in SL has its own asset UUID... the system might use that instead, but I don't think it's possible to retrieve that using LSL).
ab Vanmoer
Registered User
Join date: 28 Nov 2006
Posts: 131
08-22-2008 12:41
From: Pedro McMillan

An interesting side effect of this particular method of determining picks is that it is probably fairly easy to fool. I suspect it works by the name of the place, rather than more unique, in which case you might be able to create a place with the exact same name elsewhere, and add that to your picks instead. I haven't tried it, but if it works, then folks should probably know about it. (I could be wrong though, as each 'place' in SL has its own asset UUID... the system might use that instead, but I don't think it's possible to retrieve that using LSL).

Actually if you look at the HTML, each place name contains a unique link eg
http://world.secondlife.com/place/f2640cab-27ac-e4b5-c021-e4f30a5f4626 to the place.
The last part is the asset UUID of the the place, so this could be used to confirm the place is the correct one.
ab
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
08-25-2008 01:14
Is it possible to automatically obtain that information in-world using LSL? (Presumably the system would need it in order to confirm the pick that way).
Catwise Yoshikawa
Registered User
Join date: 15 Aug 2007
Posts: 93
09-18-2008 07:41
That's exactly the thing I was searching for. Not paying lindens but making gifts, sounds better for me also ^^
_____________________
Neko, swings, trees, scripts, AO's, English to Spanish translation services and much more...

Blog ---> http://nyc-creations.blogspot.com
SLX ---> https://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=47841
In-world Store ---> http://slurl.com/secondlife/Blue%20Quill/214/118/69
Klug Kuhn
Registered User
Join date: 7 Sep 2007
Posts: 126
Profile Picks Finder
09-25-2008 00:53
For those who are after to get profile picks, here is a little module which is similar as if there was a function like:

list llGetPicksDetails(key avatar)

The link is
http://www.slexchange.com/modules.php?name=Marketplace&file=item&ItemID=922662

Sorry for posting a product link here, but this is to help out who are frustrating about to get picks from the response body truncated limit 2048 bytes in llHTTPRequest().

Hope this help~