Advertisement
pointystick

Kinzart Dire Wolf Texture Applier (Box)

Jan 6th, 2019
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///////////////////////////////////////////////////////
  2. // Welcome to the Kinzart Dire Wolf custom texture set
  3. //  applier script!
  4. //
  5. // It is recommended that you copy/paste this into
  6. //  a new script so people know who to ask for support
  7. //  from. If they message us, we won't know who to
  8. //  send them to!
  9. //
  10. // It is also essential that you set this script
  11. //  to copy-only. Modification permission lets them
  12. //  take the texture UUIDs, and transfer permission
  13. //  lets them hand it out for free.
  14. //
  15. // To set up this script, simply paste the texture UUID
  16. //  into the appropriate bodypart.
  17. //
  18. // To use this script, put it in a box and click the box.
  19. //  Note that clicking the box will DELETE it afterwards.
  20. //  So take a copy before testing.
  21. //
  22. // 29 DEC 2018 - Stickman Ingmann
  23.  
  24. // You can update this to send a custom message thanking
  25. //  the user for their business.
  26. string MSG_SUCCESS = "Thank you for buying the Kinzart Dire Wolf! Please enjoy your new textures.";
  27.  
  28. string head = "";
  29. string neck = "";
  30. string torso = "";
  31. string arm = "";
  32. string leg = "";
  33. string tail = "";
  34.  
  35. ///////////////////////////////////////////////////////
  36. // You don't need to edit below this.
  37. default {
  38.   state_entry() {
  39.     llSetText("Click to apply the texture\nto your KZK Dire Wolf!", <1.0, 1.0, 1.0>, 1.0);
  40.   }
  41.  
  42.   touch_start(integer num) {
  43.     if (llGetOwner() == llDetectedKey(0)) {
  44.       if (head) {
  45.         llRegionSayTo(llGetOwner(), 23, "st thead "+head);
  46.       }
  47.       if (neck) {
  48.         llRegionSayTo(llGetOwner(), 23, "st tneck "+neck);
  49.       }
  50.       if (torso) {
  51.         llRegionSayTo(llGetOwner(), 23, "st ttorso "+torso);
  52.       }
  53.       if (arm) {
  54.         llRegionSayTo(llGetOwner(), 23, "st tarm "+arm);
  55.       }
  56.       if (leg) {
  57.         llRegionSayTo(llGetOwner(), 23, "st tleg "+leg);
  58.       }
  59.       if (tail) {
  60.         llRegionSayTo(llGetOwner(), 23, "st ttail "+tail);
  61.       }
  62.       llOwnerSay(MSG_SUCCESS);
  63.       llSetTimerEvent(10.0);
  64.     }
  65.   }
  66.  
  67.   on_rez(integer a) {
  68.     llSetTimerEvent(0.0);
  69.   }
  70.  
  71.   timer() {
  72.     llDie();
  73.   }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement