Voodoo Scientist Posted March 3, 2011 Share Posted March 3, 2011 I have seen a bunch of gift givers that work with the same group command but is it possible to have a prim belong to one group and the gift be given to a certian other group. Reason for this is My store is in an area where scripts are disabled except for the store owners group, and customers are not allowed in this group.I dont understand LSL at all but it seem like you could fairly easily change llSameGroup to if avatar key matches "6r8i756r8i7r76rr6r" give him a cupie doll. Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted March 3, 2011 Share Posted March 3, 2011 I don't think it's possible to do what you want. This function (and llDetectedGroup as well) only checks against the group the containing object. I can't even think of a good workaround - sine I can't think of a way to extract the active group of an avatar. Link to comment Share on other sites More sharing options...
Beverly Ultsch Posted March 3, 2011 Share Posted March 3, 2011 I think there is a way to do this, but there are certain things to watch out for. Create two prims, set one to the group you want to recive the gifts, then put a script similar to this in it Link to comment Share on other sites More sharing options...
Void Singer Posted March 3, 2011 Share Posted March 3, 2011 I can confirm Beverly's method works, although I can't remember if it survives region resets or region crossings.... you can check for those ing the changed event, by hard coding the groups key into the script, then checking it is still the same in the changed event when CHANGED_REGION, or CHANGED_REGION_RESTART is triggered with a call to llList2String( llGetObjectDetails( llGetKey(), [OBJECT_GROUP] ), 0 ); if it fails to match, have it tell you with llInstantMessage( llGetOwner(), "I am broken" ); which will go to your e-mail if you are offline, and have messages set to go to e-mail when you aren't inworld Link to comment Share on other sites More sharing options...
Qwalyphi Korpov Posted March 3, 2011 Share Posted March 3, 2011 The resident who provided the previous content, if any, has replaced it with this generic statement. Link to comment Share on other sites More sharing options...
Voodoo Scientist Posted March 3, 2011 Author Share Posted March 3, 2011 Reply Thanks for the awsome help. I didnt know where to ask first, but I spen a few hours searching google for the answer first. ! was finding was the standard group gift scrips only, I didn't know how to ask google specificaly what I wanted. Link to comment Share on other sites More sharing options...
iAntonio Vyper Posted June 15, 2011 Share Posted June 15, 2011 Smart trick, clear tutorial too - thanks! And it still works after some rolling restarts. :manvery-happy: Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now