De DigiWiki.
default
{
touch_start(integer total_number)
{
llOwnerSay("Ouch!" );
}
}
//-- llOwnerSay extension for preventing silent failures
//-- paste this code at the top of the script and replace
//-- any calls to llOwnerSay below it with uOwnerSayPlus
uOwnerSayPlus( string vStrMsg ){
key owner = llGetOwner();
if (llKey2Name( owner )){
llOwnerSay( vStrMsg ); //-- single owner that the region still has a handle for
}else if (llList2Key( llGetObjectDetails( llGetKey(), [OBJECT_GROUP] ), 0 ) == owner){
llWhisper( 0, "/me : " +vStrMsg ); //-- group owned, must send the message publicly
}else{
llInstantMessage( owner, vStrMsg ); //-- single owner, not present, send them an IM
}
}