Difference between revisions of "UUID2Channel"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with '=== Description === Well, I've figured out a more effective way of using the UUID2Channel method, you know. The one where you put a hexadecimal prefix infront of a person's UUID...')
 
Line 2: Line 2:


Well, I've figured out a more effective way of using the UUID2Channel method, you know.
Well, I've figured out a more effective way of using the UUID2Channel method, you know.
The one where you put a hexadecimal prefix infront of a person's UUID.
The one where you put a hexadecimal prefix infront of a person's UUID. Always generates
negative integers, for safety.


=== The Script ===
=== The Script ===

Revision as of 16:22, 8 April 2010

Description

Well, I've figured out a more effective way of using the UUID2Channel method, you know. The one where you put a hexadecimal prefix infront of a person's UUID. Always generates negative integers, for safety.

The Script

<lsl> // Project Neox was here. integer key2Hex(key id) {

   integer f = (integer)("0x" + (string) id);
   if(f > 0) f = f * -1;
   return f;

} </lsl>