Advertisement
kevin19961

skCAM 0.1.1 - by kevin19961

Jan 21st, 2016
1,064
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. #
  2. #
  3. # | ,---.
  4. # ,---.|__/ | ,---.,-.-.
  5. # `---.| \ | ,---|| | | skCam Version 0.1 Beta
  6. # `---'` ``---'`---^` ' '
  7. #
  8. # made by:
  9. # kevin19961
  10. #
  11. # skCam is a plugin to record teleport movements and make great movies or intros for it.
  12. # You could use it to let users view all of your creations.
  13. #
  14. # INFORMATION: The recordings are not completely smooth.
  15. # You can play and edit the number at "wait 0.065 seconds" but I do not recommend
  16. # to edit the number at "wait 0.1 seconds"
  17. # Its your turn!
  18. # Please leave a like at my forum topics.
  19. #
  20. #
  21. #
  22. # ##################################################
  23. # YOUTUBE Channel (german): youtube.com/kevin19961
  24. # ##################################################
  25. #
  26. # HINT: For smoother recordings set your sensivity to 50% and your fly speed to 0.02!
  27. # Your recording will be played faster after recording!
  28. #
  29. # Save this file as "name.sk" under SERVERFOLDER\plugins\Skript\scripts
  30.  
  31.  
  32. command /record <text> <integer>:
  33. permission: record.record
  34. usage: /record <name of record> <recording time in seconds>
  35. trigger:
  36. # Countdown start
  37. message "&2&lRecording starts in 5 seconds..."
  38. wait 1 second
  39. message "&a&l4..."
  40. wait 1 second
  41. message "&6&l3..."
  42. wait 1 second
  43. message "&e&l2..."
  44. wait 1 second
  45. message "&c&l1..."
  46. wait 1 second
  47. message "&4&lRecording started started!"
  48.  
  49. # Recording start
  50. set {_duration} to arg 2 * 10 # Every 0.1 seconds an "frame"
  51. set {_pos} to 0 # Current position
  52. clear {record.%arg 1%::*} # if record with the name already exist you need to clear the list var
  53. set {record.%arg 1%.duration} to arg 2 # recording time
  54. set {record.%arg 1%} to true # for later checks
  55. set {pos.%arg 1%.%{_pos}%} to location of player # save location
  56. add {_pos} to {record.%arg 1%::*} # save the position "id"
  57.  
  58. # main recording
  59. while {_duration} is bigger than 0:
  60. add 1 to {_pos}
  61. set {pos.%arg 1%.%{_pos}%} to location of player
  62. add {_pos} to {record.%arg 1%::*}
  63. add 1 to {_records}
  64. remove 1 from {_duration}
  65. wait 0.1 seconds
  66. message "&2Recording &a%arg 1% &2ended. &a%{_records}% &2Positions saved."
  67.  
  68.  
  69.  
  70. command /recordmode:
  71. permission: record.mode
  72. trigger:
  73. if {recordmode.%player%} is set:
  74. delete {recordmode.%player%}
  75. set fly-speed of player to 0.1
  76. message "&4OFF &6Recordingmode disabled. You can now set your sensitivity (under 'Controls') back to what you want."
  77. else:
  78. set {recordmode.%player%} to true
  79. set fly-speed of player to 0.02
  80. message "&2ON &6Recordingmode enabled! Please set your sensitivity (under 'Controls') to 50."
  81.  
  82.  
  83.  
  84. command /playrecord <text>:
  85. permission: record.play
  86. trigger:
  87. set {_lastloc} to location of player
  88. message "&2Playing started."
  89. if {record.%arg%} is true:
  90. set {_dauer} to {record.%arg%.dauer}
  91. loop {record.%arg%::*}:
  92. teleport player to {pos.%arg 1%.%loop-value%}
  93. wait 0.065 seconds
  94. message "&2Playing ended."
  95. else:
  96. message "&4This recording does not exist."
  97. teleport player to {_lastloc}
  98.  
  99. # UPDATE 0.1.1 - Added /recordmode command
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement