Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. //++++++++++++++++Copyright Darkfyre Algoma 5-14-2011++++++++++++++++++
  2. //~~~~~~THIS SCRIPT MAY NOT BE COPIED, ALTERED, USED IN ANY WAY THEN IT's ORIGINAL PURPOSE~~~~~
  3. float MaxScale = 1; // Max scale for X size
  4. integer rezzerChan = -9000;
  5. //==================Stage texture=======================
  6. string seedling= "7a247955-ac67-4398-b42e-957ea4002be7"; // UUID texture for seedling stage
  7. string leaves= "0c4386a2-aed8-41ae-81d5-9d7c52382165"; // UUID texture for leaves stage
  8. string picktime= "0c4386a2-aed8-41ae-81d5-9d7c52382165"; // UUID texture for read to pick stage
  9. string dead= "3d9efe64-4b0e-4351-91a8-5c584c1afceb"; // UUID texture for dead/dried stage
  10. //=====================================================
  11. //=================Stage give item=====================
  12. string GiveRipe= "bo peep cup"; //Ripe item to give from object inventory (name of object)
  13. string GiveDried= "Teryl Seed *2nd Generation*"; //Dried item to give from object inventory (name of object)
  14. //=====================================================
  15.  
  16.  
  17.  
  18. integer RipeTrigger=FALSE;
  19. integer DriedTrigger=FALSE;
  20. string texture;
  21.  
  22. default
  23. {
  24. state_entry()
  25. {
  26. llSetTimerEvent(5);
  27. llSetScale(<0.1,0.01,0.01>);
  28. texture = seedling;
  29. RipeTrigger=FALSE;
  30. DriedTrigger=FALSE;
  31. }
  32. on_rez(integer rezzing)
  33. {
  34. llResetScript();
  35. }
  36.  
  37. timer()
  38. {
  39. llSetTexture(texture, ALL_SIDES);
  40. vector scale = llGetScale();///
  41. if(scale.x>=MaxScale)///////////////--check scale for max size
  42. {llSetTimerEvent(0);}//////////
  43. else
  44. {
  45. llSetScale(llGetScale()+<0.02,0.01,0.01>);
  46. llSetPos(llGetPos()+<0,0,0.01>);
  47. }
  48. // seedling stage starts at rez
  49. // other stages below
  50. if(scale.x>=.01 & scale.x<=.20)// seedling
  51. {
  52. texture = seedling;
  53. }
  54. if(scale.x>=.21 & scale.x<=.74)// leaves
  55. {
  56. texture = leaves;
  57. }
  58. if(scale.x>=.75 & scale.x<=.95)// picktime
  59. {
  60. RipeTrigger=TRUE;
  61. texture = picktime;
  62. }
  63. if(scale.x>=.95)// dead
  64. {
  65. DriedTrigger=TRUE;
  66. RipeTrigger=FALSE;
  67. texture = dead;
  68. }
  69. }
  70. touch_start(integer total_number)
  71. {
  72. if(RipeTrigger==TRUE)
  73. {
  74. llSay(0, "refillteryl");
  75. llGiveInventory(llDetectedKey(0),GiveRipe);
  76. llDie();
  77. }
  78. if(DriedTrigger==TRUE)
  79. {
  80. llSay(rezzerChan,"REZ");
  81. llGiveInventory(llDetectedKey(0),GiveDried);
  82. llDie();
  83. }
  84. }
  85. }
  86. /*
  87. .010 to .020 = seedling
  88. .021 to .074 = leaves
  89. .075 to .095 = picktime
  90. .096 to .100 = dead
  91. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement