Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Notecard on Touch for Non Owner?

Karyn Vaher
Registered User
Join date: 16 Nov 2008
Posts: 6
04-03-2009 17:17
I want to be able to deliver a notecard to whomever touches the item except for the actual owner. Suggestions?
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
Here ya go. ^_^
04-03-2009 17:30
string NotecardName = "My Notecard";

default
{
touch_start(integer num_detected)
{
if (llDetectedKey(0) != llGetOwner())
{
llGiveInventory(llDetectedKey(0), NotecardName);
}
}
}
_____________________
Life is a highway... And I just missed my exit.
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
04-03-2009 19:05
Tell the owner to stop touching it? :D
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
04-03-2009 21:28
From: Winter Ventura
Tell the owner to stop touching it? :D


"Doctor, my arm hurts when I do this!" ..... "Then don't do it." :p
Karyn Vaher
Registered User
Join date: 16 Nov 2008
Posts: 6
04-04-2009 01:01
Perfect, thank you!
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
04-04-2009 08:12
From: Winter Ventura
Tell the owner to stop touching it? :D

yeah, or they'll go blind.... (can I keep going just till I need glasses?)
_____________________
|
| . "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...
| -