Organized

Enemy Recon [SK]

Jul 13th, 2017
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. #enemy recon
  2.  
  3. options:
  4. N: &7
  5. C: &6
  6. A: &8»
  7. AA: &8«
  8. PER: &cEnemy Recon &8»&7
  9.  
  10. command /enemyrecon <text>:
  11. permission: skript.op
  12. trigger:
  13. if arg 1 is "on":
  14. set {scenario::enemy_recon} to true
  15. broadcast "&aEnabled enemy recon"
  16. else if arg 1 is "off":
  17. delete {scenario::enemy_recon}
  18. broadcast "&cDisabled enemy recon"
  19.  
  20. command /reconset <offlineplayer> <int>:
  21. permission: skript.op
  22. trigger:
  23. if {scenario::enemy_recon} is not set:
  24. sendError(sender, "Enemey Recon is not enabled")
  25. stop
  26. if arg 1 is "*":
  27. loop all players:
  28. set {temp::er::kills::%loop-player%} to arg 2
  29. broadcast "{@PER} Everyone's recons were set to '&a%arg 2%{@N}' by %sender%."
  30. stop
  31. if {temp::er::kills::%arg 1%} is arg 2:
  32. sendError(sender, "'%arg 1%' already has %arg 2% recons left")
  33. stop
  34. set {temp::er::kills::%arg 1%} to arg 2
  35. send "{@PER} %sender% set %arg 1%'s recons to '&a%{temp::er::kills::%arg 1%}%{@N}'." to all ops
  36. send "{@PER} Your recons were set to '&a%{temp::er::kills::%arg 1%}%{@N}'." to arg 1
  37.  
  38.  
  39. command /myrecons:
  40. trigger:
  41. if {scenario::enemy_recon} is not set:
  42. sendError(sender, "Enemey Recon is not enabled")
  43. stop
  44. if {temp::er::kills::%sender%} is not set:
  45. send "{@PER} You have &cno{@N} recons available."
  46. else:
  47. send "{@PER} You have &a%{temp::er::kills::%sender%}%{@N} recons available."
  48.  
  49. command /er <player>:
  50. aliases: /recon
  51. trigger:
  52. if {scenario::enemy_recon} is not set:
  53. sendError(sender, "Enemey Recon is not enabled")
  54. stop
  55. if sender is arg-1:
  56. sendError(sender, "Cannot create a report on yourself")
  57. stop
  58. if {temp::er::kills::%sender%} is less than 1:
  59. sendError(sender, "You do not have any more recons left")
  60. stop
  61. if {temp::er::kills::%sender%} is not set:
  62. sendError(sender, "You do not have any more recons left")
  63. stop
  64. open chest with 6 rows named "{@PER} '%arg 1%'" to player
  65. loop integers from 0 to 35:
  66. set {_s} to (slot loop-integer of arg-1)
  67. format slot loop-integer+18 of sender with {_s} with lore " {@A} &7Durability: {@C}%{_s}'s max durability-{_s}'s durability%&8/{@C}%{_s}'s max durability%|| {@A} &7Slot: {@C}%loop-integer+1%||||" to be unstealable
  68. loop integers from 0 to 17:
  69. format slot loop-integer of sender with lime stained glass pane named "&0♿" to be unstealable
  70. format slot 1 of player with helmet of arg-1 to be unstealable
  71. format slot 2 of player with chestplate of arg-1 to be unstealable
  72. format slot 6 of player with leggings of arg-1 to be unstealable
  73. format slot 7 of player with boots of arg-1 to be unstealable
  74. loop split "Health:%arg-1's health*10%%%&8/{@C}%arg-1's max health*10%%%+XP:%level of arg 1%+Location:{@C}%floor(x-coordinate of arg-1)%{@N}, {@C}%floor(y-coordinate of arg-1)%{@N}, {@C}%floor(z-coordinate of arg-1)%+Biome:%biome of arg-1%" at "+":
  75. set {_f::*} to split "%loop-value%" at ":"
  76. set {_%{_f::1}%} to " {@A} {@N}%{_f::1}%: {@C}%{_f::2}%"
  77. format slot 4 of player with book named "{@PER} Report: &a%arg 1%" with lore "%{_health}%||%{_xp}%||%{_location}%||%{_biome}%" to be unstealable
  78. format slot 17 of player with red stained glass pane named " {@A} &cClose" to close
  79. remove 1 from {temp::er::kills::%sender%}
  80. chance of 30%
  81. broadcast "{@PER} &a%sender%{@N} was caught spying on &a%arg 1%{@N}."
  82.  
  83. on skript unload:
  84. delete {temp::*}
  85.  
  86. on death of player:
  87. attacker is a player
  88. if {scenario::enemy_recon} is true:
  89. add 1 to {temp::er::kills::%attacker%}
  90. send "&cEnemy Recon {@A} You have '&a%{temp::er::kills::%{_p}%}%{@N}' recons." to attacker
Advertisement
Add Comment
Please, Sign In to add comment