Advertisement
Guest User

Skin applier

a guest
Jan 3rd, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //SKIN APPLIER
  2.  
  3. integer APPKEY = 987654321; // Application key, needed later. Change as you see fit, but remain consistent!
  4. integer CH;                 // Communication channel
  5.  
  6. // Routine to use the owner's UUID as the basis for a channel number. Uses the above APPKEY.
  7. integer Key2AppChan(key ID, integer App) {
  8.     return 0x80000000 | ((integer)("0x"+(string)ID) ^ App);
  9. }
  10.  
  11. string keyword="Applier"; // Keyword to prefix the command string with.
  12.  
  13. // Change the keys to the UUIDs of the textures that need to be applied.
  14. key tex_head ="16ffccd7-40c7-4fc7-be14-76bc26b47bbb";
  15. key tex_upper="6cec3f96-aac2-47c2-9738-f32336aa6fe5";
  16. key tex_lower="441409df-4a3c-4047-87c4-bdf4a0b90dee";
  17.  
  18. default
  19. {
  20.     state_entry()
  21.     {
  22.         CH = Key2AppChan(llGetOwner(), APPKEY);     // Set the communication channel, based on owner UUID and the APPKEY
  23.     }
  24.    
  25.     touch_start(integer num)
  26.     {
  27.         // Now tell the body which textures it should apply
  28.         llSay(CH,keyword+"%head_"+tex_head);
  29.         llSay(CH,keyword+"%upper_"+tex_upper);
  30.         llSay(CH,keyword+"%lower_"+tex_lower);
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement