Advertisement
fleft17

Untitled

Oct 13th, 2014
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. options:
  2.  
  3. P: &8[Depths]
  4. C: &7
  5. H: &9
  6.  
  7. Scenario: Depths
  8. Command: /depths
  9. Permission: skript.depths
  10.  
  11. Creator: /u/silverteeth
  12. Skripter: Fleft
  13.  
  14.  
  15.  
  16. command {@Command} [<text>]:
  17. trigger:
  18. if arg-1 is "on" or "enable":
  19. command sender has permission "{@Permission}":
  20. if {Depths.Enabled} is not set:
  21. set {Depths.Enabled} to true
  22. broadcast "{@P}{@C} Enabled by {@H}%command sender%!"
  23. else:
  24. message "{@P}{@C} Already enabled!" to the command sender
  25. stop trigger
  26. else:
  27. execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
  28. message "{@P}{@C} You don't have permission for that!" to the command sender
  29.  
  30. else if arg-1 is "off" or "disable":
  31. command sender has permission "{@Permission}":
  32. if {Depths.Enabled} is true:
  33. delete {Depths.Enabled}
  34. broadcast "{@P}{@C} Disabled by {@H}%command sender%!"
  35. else:
  36. message "{@P}{@C} Already disabled!" to the command sender
  37. stop trigger
  38. else:
  39. execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
  40. message "{@P}{@C} You don't have permission for that!" to the command sender
  41.  
  42.  
  43. else if arg-1 is "toggle" or "switch":
  44. if {Depths.Enabled} is true:
  45. command sender command "/{@Command} off"
  46. stop trigger
  47. if {Depths.Enabled} is not set:
  48. command sender command "/{@Command} on"
  49. stop trigger
  50.  
  51. else if arg-1 is "help" or "?" or "info":
  52. message "" to the command sender
  53. if command sender has permission "{@Permission}":
  54. message "{@P}{@C} /{@Command} {@H}on/off/toggle" to the command sender
  55. message "{@P}{@C} Scenario by: {@H}{@Creator}"
  56. message "{@P}{@C} Skript by {@Skripter}"
  57.  
  58. else if arg-1 is not set:
  59. command sender command "/{@Command} help"
  60. else:
  61. command sender command "/{@Command} help"
  62.  
  63.  
  64. on damage:
  65. {Depths.Enabled} is true:
  66. if attacker is an entity:
  67. if attacker is a player:
  68. stop trigger
  69. else:
  70. set {_damage} to damage
  71. if victim's y-coordinate is less than 15:
  72. set damage to ({_damage}*5)
  73. else if victim's y-coordinate is less than 30:
  74. set damage to ({_damage}*3)
  75. else if victim's y-coordinate is less than 45:
  76. set damage to ({_damage}*2)
  77. else if victim's y-coordinate is less than 60:
  78. set damage to ({_damage}*1.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement