1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Skript Help

Discussion in 'Requests' started by FrostPVP™️, Sep 6, 2021.

  1. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    62
    Likes Received:
    3
    Can someone make a combatlog skript?
    I need it so they can't teleport anywhere and if they log out they die
    I also need a bypass and you can make the permission whatever you want
    I want there to be a 10 second wait time for when people get tagged
     
    #1 FrostPVP™️, Sep 6, 2021
    Last edited: Sep 6, 2021
  2. TweedeKamer

    TweedeKamer Member

    Joined:
    Sep 6, 2021
    Messages:
    11
    Likes Received:
    0
    This should work
     

    Attached Files:

  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    597
    Likes Received:
    37
    Small correction:

    Change
    Code (Text):
    1. on command "spawn":
    2.     if {combat.log.%player%} is true:
    3.         cancel event
    4.         send "&cTeleporting is disabled while in combat."
    5.  
    6. on command "warp":
    7.     if {combat.log.%player%} is true:
    8.         cancel event
    9.         send "&cTeleporting is disabled while in combat."
    10.  
    11. on command "tpa":
    12.     if {combat.log.%player%} is true:
    13.         cancel event
    14.         send "&cTeleporting is disabled while in combat."
    15.  
    16. on command "home":
    17.     if {combat.log.%player%} is true:
    18.         cancel event
    19.         send "&cTeleporting is disabled while in combat."
    to
    Code (Text):
    1. on command:
    2.     if command is "spawn" or "warp" or "tpa" or "home":
    3.         cancel event
    4.         send "&cTeleporting is disabled while in combat."
    and use list variables :emoji_slight_smile:
     
  4. ShyDoge

    ShyDoge Member

    Joined:
    Jul 31, 2021
    Messages:
    41
    Likes Received:
    1
    Another issue you could easily simplify is using 1 On Command event.
    enjoy this and if there are any errors don't hesitate to DM me on discord!
    Code (Text):
    1. on command:
    2.   if {combat.log.%player%} is true:
    3.     if command is "tpa", "home", "spawn", "tp", "warp":
    4.       cancel event
    5.       send "&cYou cannot teleport in combat!"
    6. on damage:
    7.   if {DoCL} is false:
    8.   else:
    9.     if victim is a player:
    10.       set {combat.log.%player%} to true
    11.       send "&cYou are in combat! Do not log out or you will be killed!"
    12.       wait 10 seconds
    13.       set {combat.log.%player%} to false
    14. on join:
    15.   if {combat.log.%player%} is true:
    16.     wait 1 tick
    17.     kill player
    18.     send "&cYou combat logged and therefore were killed!"
    19. command /cl [<boolean>]:
    20.   if arg 1 is false:
    21.     set {DoCL} to false
    22.     send "&cDisabled Combat Log"
    23.   else:
    24.     if arg 1 is true:
    25.       set {DoCL} to true
    26.       send "&aEnabled Combat Log"
    27.  
     

Share This Page

Loading...