AimeryBolam Posted January 23, 2021 Share Posted January 23, 2021 I have a basic script in a piece of jewelry that gives someone something on click. But I'd like it to notify me when someone clicks on it to get it. Is there a simple piece of code to do that? Hopefully this will be an easy one. 😛 Thanks! Link to comment Share on other sites More sharing options...
panterapolnocy Posted January 23, 2021 Share Posted January 23, 2021 If you're wearing it... string gInventoryName = "cookie"; default { on_rez(integer sp) { llSetMemoryLimit(llGetUsedMemory() + 2048); } touch_start(integer total_number) { key touchedBy = llDetectedKey(0); llOwnerSay("I was touched by secondlife:///app/agent/" + (string)touchedBy + "/about"); llGiveInventory(touchedBy, gInventoryName); } } Â 1 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