These forums are CLOSED. Please visit the new forums HERE
is this possible? |
|
|
jamie Cheeky
Registered User
Join date: 19 Jun 2006
Posts: 42
|
11-24-2008 04:47
I want to be able to give out free gifts but only to people that have my shops picks in their profile, is there a way to limit to give to just this gorup...thanks in advance!
|
|
Atom Burma
Registered User
Join date: 30 May 2006
Posts: 685
|
11-24-2008 06:01
yup, super easy
string group_name="group name"; // replace with group name string item_to_give = "group item"; // Replace with name of Item to Give out default { touch_start(integer total_number) { if (!llSameGroup(llDetectedKey(0))) llSay(0, llKey2Name(llDetectedKey(0)) + ", please join and activate the \""+group_name+"\" group." ; else { llGiveInventory(llDetectedKey(0),item_to_give); } } } It's only for the group that your land is set to, I don't know another way to limit to just group, picks, not a clue, maybe somebody else does. But that script will just give to people wearing the same group tag as it is, just make sure to edit it and change the default variables first. |
|
Jhary Priestly
JPC
Join date: 18 Jan 2007
Posts: 19
|
11-24-2008 06:22
You can check if your land is in their profile. It is done for example in the PPRS system by Dackedidi Miles - "just" requires some http request, some parsing of a string, and of course the UUID to your patch of land.
But I guess right now at least 5 people are starting to build such an item giver ) |
|
Dackedidi Miles
Registered User
Join date: 2 Feb 2007
Posts: 6
|
PICK CHECK in LSL is not possible
11-25-2008 10:29
If you HTTP Request an avatar profile, you receive over 2048 chars.
Its not possible to detect every PICK in that range. You need to do this in PHP. I sell an PROFILE PICK ITEM GIVER on XSL. Its an easy gadget, but it works fine. http://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=723119 |
|
Klug Kuhn
Registered User
Join date: 7 Sep 2007
Posts: 126
|
11-27-2008 15:48
I want to be able to give out free gifts but only to people that have my shops picks in their profile, is there a way to limit to give to just this gorup...thanks in advance! You may check this out when you have time. ![]() http://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=922662 |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-27-2008 21:51
If you HTTP Request an avatar profile, you receive over 2048 chars. Its not possible to detect every PICK in that range. You need to do this in PHP. which is why instead of requesting the page directly, have a search engine scan the page for you... oops big secret is out... yeah, just have google search the av's page for you... poof, you should get enough from the google call to verify a pick, no php or seperate web service needed _____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |