![]() Although this can give misleading results if other avatars are near the object it is an alternate way to get the avatars name once a notecard is posted. // Script to present a dialog populated with a list of notecards // from the prims inventory // // Note that only the first 24. ![]() Heres the snippet but Im drawing bot ha blank and having no success in removing any objects or notecards from the list of items generated. Furthermore using the llSensor(“”, NULL_KEY, AGENT_BY_LEGACY_NAME, 10.0, PI) it scans an area of 10 meters radius. Just drag the script from your inventory into the prim you want to make the bookcase. Working on a project: Trying to give all inventory except notecard named Config and Script. The main task of this function is to detect the nearby avatars. This information consists of two elements, which are the name of the object being posted and the name of the avatar that made the post.Īs shown in the code snippet above, the sensor() function was used to detect the name of who made the post. This triggers the llEmail() method, which sends an e-mail to the owner with the respective information. This script uses the changed() function which detects the changes made to the inventory once someone drops a notecard. LlEmail(emailAddress, emailHeader, “An object named ‘” + name + “‘ was posted to you by ” + avatarName ) Integer index = llListFindList(notes,(list)name) String name = llGetInventoryName(note,i) ![]() Integer invNum = llGetInventoryNumber(note) LlSensor(“”, NULL_KEY, AGENT_BY_LEGACY_NAME, 10.0, PI) The below code snippet shows how this function works.Ĭode 1 – Accepting Objects and Sending an E-mail. This informs him about the object being mailed. Additionally, when someone performs a post an e-mail is automatically sent to the owner, Figure 1 below. The llGetInventoryName has two parameters itself: the inventory type - in this case INVENTORYNOTECARD - and which inventory item you mean. It might look the same to us reading the human-readable name that is displayed to us but that's not the name used by LSL. By dropping notecards to this object, avatars will automatically post them to the mailbox inventory. header and you can select a notecard based by its assigned number (view product image above). Each time a notecard is saved it actually has a new unique identifier. The main function of the mailbox object is to accept notecards from others. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |