Guest User

[M3+] - Venus Anime Head (v.1.12.17)

a guest
Feb 9th, 2016
890
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Specular map applier script for [M3+] - Venus Anime Head (v.1.12.17)
  2. //If you want to use this with any other version of the M3 head or the venus head or the kemono body or whatever, you will need to figure out the link and face numbers and replace them in the script.
  3.  
  4. integer listen_id;
  5. integer channel;
  6. string specmap = "UUID goes here"; // your specular map UUID
  7. vector repeats = <10,10,0>; // horizontal and vertical repeats
  8. vector offsets = <0,0,0>; // horizontal and vertical offsets
  9. float rot = 0.0; // texture angle
  10. integer gloss = 51; // glossyness
  11. integer env = 0; // environment reflection
  12. vector color = <1.000, 1.000, 1.000>; // specular color
  13.  
  14.  
  15. default
  16. {
  17.  
  18. state_entry()
  19. {
  20. }
  21.  
  22. touch_start(integer total_number)
  23. {
  24. if(llDetectedKey(0) == llGetOwner())
  25. {
  26. channel = ( -1 * (integer)("0x"+llGetSubString((string)llGetKey(),-5,-1)) );
  27. listen_id = llListen( channel, "",llGetOwner(), "");
  28.  
  29. list button_text = ["Apply",
  30. "Delete script"];
  31.  
  32. llDialog(llGetOwner(),"What do?",button_text,channel);
  33. llSetTimerEvent(30.0);
  34. }
  35. }
  36.  
  37. listen(integer channel, string name, key id, string message)
  38. {
  39. if (message=="Apply")
  40. {
  41.  
  42. //Base
  43. llSetLinkPrimitiveParamsFast( 1, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  44. llSetLinkPrimitiveParamsFast( 1, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  45. llSetLinkPrimitiveParamsFast( 1, [ PRIM_SPECULAR, 1, specmap, repeats, offsets, rot, color, gloss, env ] );
  46. llSetLinkPrimitiveParamsFast( 1, [ PRIM_ALPHA_MODE, 1, 0, 0 ] );
  47.  
  48. //Eyelids
  49. llSetLinkPrimitiveParamsFast( 15, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  50. llSetLinkPrimitiveParamsFast( 15, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  51. llSetLinkPrimitiveParamsFast( 15, [ PRIM_SPECULAR, 3, specmap, repeats, offsets, rot, color, gloss, env ] );
  52. llSetLinkPrimitiveParamsFast( 15, [ PRIM_ALPHA_MODE, 3, 0, 0 ] );
  53.  
  54. llSetLinkPrimitiveParamsFast( 19, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  55. llSetLinkPrimitiveParamsFast( 19, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  56. llSetLinkPrimitiveParamsFast( 19, [ PRIM_SPECULAR, 3, specmap, repeats, offsets, rot, color, gloss, env ] );
  57. llSetLinkPrimitiveParamsFast( 19, [ PRIM_ALPHA_MODE, 3, 0, 0 ] );
  58.  
  59. llSetLinkPrimitiveParamsFast( 14, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  60. llSetLinkPrimitiveParamsFast( 14, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  61. llSetLinkPrimitiveParamsFast( 14, [ PRIM_SPECULAR, 3, specmap, repeats, offsets, rot, color, gloss, env ] );
  62. llSetLinkPrimitiveParamsFast( 14, [ PRIM_ALPHA_MODE, 3, 0, 0 ] );
  63.  
  64. llSetLinkPrimitiveParamsFast( 18, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  65. llSetLinkPrimitiveParamsFast( 18, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  66. llSetLinkPrimitiveParamsFast( 18, [ PRIM_SPECULAR, 4, specmap, repeats, offsets, rot, color, gloss, env ] );
  67. llSetLinkPrimitiveParamsFast( 18, [ PRIM_ALPHA_MODE, 4, 0, 0 ] );
  68.  
  69. //Eyelashes
  70. llSetLinkPrimitiveParamsFast( 12, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  71. llSetLinkPrimitiveParamsFast( 12, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  72. llSetLinkPrimitiveParamsFast( 12, [ PRIM_SPECULAR, 3, specmap, repeats, offsets, rot, color, gloss, env ] );
  73. llSetLinkPrimitiveParamsFast( 12, [ PRIM_ALPHA_MODE, 3, 0, 0 ] );
  74.  
  75. llSetLinkPrimitiveParamsFast( 7, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  76. llSetLinkPrimitiveParamsFast( 7, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  77. llSetLinkPrimitiveParamsFast( 7, [ PRIM_SPECULAR, 3, specmap, repeats, offsets, rot, color, gloss, env ] );
  78. llSetLinkPrimitiveParamsFast( 7, [ PRIM_ALPHA_MODE, 3, 0, 0 ] );
  79.  
  80. llSetLinkPrimitiveParamsFast( 8, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  81. llSetLinkPrimitiveParamsFast( 8, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  82. llSetLinkPrimitiveParamsFast( 8, [ PRIM_SPECULAR, 3, specmap, repeats, offsets, rot, color, gloss, env ] );
  83. llSetLinkPrimitiveParamsFast( 8, [ PRIM_ALPHA_MODE, 3, 0, 0 ] );
  84.  
  85. //Ears
  86. llSetLinkPrimitiveParamsFast( 11, [ PRIM_SPECULAR, ALL_SIDES, specmap, repeats, offsets, rot, color, gloss, env ] );
  87. llSetLinkPrimitiveParamsFast( 11, [ PRIM_ALPHA_MODE, ALL_SIDES, 0, 0 ] );
  88.  
  89. //Tongue (remove the "//" next to every llSetLinkPrimitiveParamsFast to apply speculars to the tongue)
  90. // llSetLinkPrimitiveParamsFast( 13, [ PRIM_SPECULAR, 6, specmap, repeats, offsets, rot, color, gloss, env ] );
  91. // llSetLinkPrimitiveParamsFast( 13, [ PRIM_ALPHA_MODE, 6, 0, 0 ] );
  92.  
  93. //Face_e01
  94.  
  95. llSetLinkPrimitiveParamsFast( 14, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  96. llSetLinkPrimitiveParamsFast( 14, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  97. llSetLinkPrimitiveParamsFast( 14, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  98. llSetLinkPrimitiveParamsFast( 14, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  99.  
  100. //Face_e02
  101.  
  102. llSetLinkPrimitiveParamsFast( 16, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  103. llSetLinkPrimitiveParamsFast( 16, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  104. llSetLinkPrimitiveParamsFast( 16, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  105. llSetLinkPrimitiveParamsFast( 16, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  106.  
  107. //Face_e03
  108.  
  109. llSetLinkPrimitiveParamsFast( 3, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  110. llSetLinkPrimitiveParamsFast( 3, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  111. llSetLinkPrimitiveParamsFast( 3, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  112. llSetLinkPrimitiveParamsFast( 3, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  113.  
  114. //Face_e04
  115.  
  116. llSetLinkPrimitiveParamsFast( 24, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  117. llSetLinkPrimitiveParamsFast( 24, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  118. llSetLinkPrimitiveParamsFast( 24, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  119. llSetLinkPrimitiveParamsFast( 24, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  120.  
  121. //Face_e05
  122.  
  123. llSetLinkPrimitiveParamsFast( 6, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  124. llSetLinkPrimitiveParamsFast( 6, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  125. llSetLinkPrimitiveParamsFast( 6, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  126. llSetLinkPrimitiveParamsFast( 6, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  127.  
  128. //Face_e06
  129.  
  130. llSetLinkPrimitiveParamsFast( 17, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  131. llSetLinkPrimitiveParamsFast( 17, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  132. llSetLinkPrimitiveParamsFast( 17, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  133. llSetLinkPrimitiveParamsFast( 17, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  134.  
  135. //Face_e07
  136.  
  137. llSetLinkPrimitiveParamsFast( 21, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  138. llSetLinkPrimitiveParamsFast( 21, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  139. llSetLinkPrimitiveParamsFast( 21, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  140. llSetLinkPrimitiveParamsFast( 21, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  141.  
  142. //Face_e08
  143.  
  144. llSetLinkPrimitiveParamsFast( 9, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  145. llSetLinkPrimitiveParamsFast( 9, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  146. llSetLinkPrimitiveParamsFast( 9, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  147. llSetLinkPrimitiveParamsFast( 9, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  148.  
  149. //Face_e09
  150.  
  151. llSetLinkPrimitiveParamsFast( 22, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  152. llSetLinkPrimitiveParamsFast( 22, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  153. llSetLinkPrimitiveParamsFast( 22, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  154. llSetLinkPrimitiveParamsFast( 22, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  155.  
  156. //Face_e10
  157.  
  158. llSetLinkPrimitiveParamsFast( 10, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  159. llSetLinkPrimitiveParamsFast( 10, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  160. llSetLinkPrimitiveParamsFast( 10, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  161. llSetLinkPrimitiveParamsFast( 10, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  162.  
  163. //Face_e11
  164.  
  165. llSetLinkPrimitiveParamsFast( 5, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  166. llSetLinkPrimitiveParamsFast( 5, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  167. llSetLinkPrimitiveParamsFast( 5, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  168. llSetLinkPrimitiveParamsFast( 5, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  169.  
  170. //Face_e12
  171.  
  172. llSetLinkPrimitiveParamsFast( 20, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  173. llSetLinkPrimitiveParamsFast( 20, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  174. llSetLinkPrimitiveParamsFast( 20, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  175. llSetLinkPrimitiveParamsFast( 20, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  176.  
  177. //Face_e13
  178.  
  179. llSetLinkPrimitiveParamsFast( 23, [ PRIM_SPECULAR, 0, specmap, repeats, offsets, rot, color, gloss, env ] );
  180. llSetLinkPrimitiveParamsFast( 23, [ PRIM_ALPHA_MODE, 0, 0, 0 ] );
  181. llSetLinkPrimitiveParamsFast( 23, [ PRIM_SPECULAR, 2, specmap, repeats, offsets, rot, color, gloss, env ] );
  182. llSetLinkPrimitiveParamsFast( 23, [ PRIM_ALPHA_MODE, 2, 0, 0 ] );
  183.  
  184. }
  185.  
  186.  
  187. if (message=="Delete script")
  188. {
  189. llRemoveInventory(llGetScriptName());
  190. }
  191.  
  192. }
  193. timer(){
  194. llListenRemove(listen_id);
  195. llSetTimerEvent(0.0);
  196. }
  197. }
RAW Paste Data