bed_the_skripter

combat settingss 1

Jul 26th, 2022
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. # Action Combat Tag Plus [ACT+], by EnderEyeGames/root@kali
  2.  
  3. on damage of a player:
  4. attacker is a player
  5. {actplus.immune.%victim's uuid%} is not 1:
  6. {actplus.time.%victim's uuid%} is not set:
  7. send "&c[&6CombatLog&c] &c You are now in combat. Do not log out." to victim
  8. set {actplus.time.%victim's uuid%} to 12
  9. set {actplus.combatant.%victim's uuid%} to "%attacker%"
  10. {actplus.immune.%attacker's uuid%} is not 1:
  11. {actplus.time.%attacker's uuid%} is not set:
  12. send "&c[&6CombatLog&c] &c You are now in combat. Do not log out." to attacker
  13. set {actplus.time.%attacker's uuid%} to 12
  14. set {actplus.combatant.%attacker's uuid%} to "%victim%"
  15. every 2 ticks:
  16. loop all players where [{actplus.time.%player input's uuid%} exists]:
  17. {actplus.time.%loop-player's uuid%} is less than 0.1:
  18. send action bar "&aYou are no longer in combat." to loop-player
  19. send "&c[&6CombatLog&c] &a You are no longer in combat." to loop-player
  20. delete {actplus.time.%loop-player's uuid%}
  21. delete {actplus.combatant.%loop-player's uuid%}
  22. {actplus.time.%loop-player's uuid%} is greater than 0:
  23. loop-player is not sprinting:
  24. send action bar "&cYou are in combat for %{actplus.time.%loop-player's uuid%}% seconds (%{actplus.combatant.%loop-player's uuid%}%)" to loop-player
  25. subtract 0.1 from {actplus.time.%loop-player's uuid%}
  26. loop-player is sprinting:
  27. send action bar "&cCombat time frozen while sprinting (%{actplus.combatant.%loop-player's uuid%}%)" to loop-player
  28. on command:
  29. {actplus.time.%player's uuid%} is set
  30. player does not have the permission "actplus.immune":
  31. send "&c[&6CombatLog&c] &c You cannot execute commands in combat." to player
  32. cancel event
  33. stop
  34. command is not "actimmune":
  35. send "&c[&6CombatLog&c] &c You cannot usually execute commands in combat." to player
  36. send "&c[&6CombatLog&c] &a You have the ability to escape combat with /actimmune." to player
  37. cancel event
  38. on quit:
  39. {actplus.time.%player's uuid%} exists
  40. kill player
  41. broadcast "&c[&6CombatLog&c] %player%&c logged out while fighting &l%{actplus.combatant.%player's uuid%}%"
  42. on death of a player:
  43. wait 1 tick
  44. {actplus.time.%victim's uuid%} exists
  45. set {actplus.time.%victim's uuid%} to 0
  46. on join:
  47. {actplus.immune.%player's uuid%} exists:
  48. send "&c[&6CombatLog&c] &a You're currently immune to combat tag. Disable with /actimmune" to player
  49. command /actimmune:
  50. permission: actplus.immune
  51. permission message: &c[&6CombatLog&c] &c Permission required: actplus.immune
  52. trigger:
  53. {actplus.immune.%player's uuid%} exists:
  54. delete {actplus.immune.%player's uuid%}
  55. send "&c[&6CombatLog&c] &a You are no longer immune to combat tag." to player
  56. stop
  57. {actplus.immune.%player's uuid%} is not set:
  58. set {actplus.immune.%player's uuid%} to 1
  59. send "&c[&6CombatLog&c] &a You are now immune to combat tag." to player
  60. delete {actplus.time.%player's uuid%}
  61. delete {actplus.combatant.%player's uuid%}
  62.  
  63. # End of Action Combat Tag Plus
Advertisement
Add Comment
Please, Sign In to add comment