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.

Solved a

Discussion in 'Requests' started by Adrihun, Feb 1, 2017.

Tags:
  1. Adrihun

    Adrihun Member

    Joined:
    Feb 1, 2017
    Messages:
    368
    Likes Received:
    6
    a
     
    #1 Adrihun, Feb 1, 2017
    Last edited: Mar 8, 2017
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Why not use the combattag plugin?
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    a
     
    #3 ShaneBee, Feb 1, 2017
    Last edited by a moderator: Mar 8, 2017
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    This a script request, not a help one.
    you must move this to "Request" forums.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    You also need to use the correct format or no one will listen to you.
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Go to the requests section and go to the sticky thread at the top then make a new thread and fill out the format for you.
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    I will post my old combattag skript after you use the format! :emoji_slight_smile:
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Whipped this up really quick. Hasn't been tested.
    Code (Skript):
    1. on damage of player:
    2.     if attacker is a player:
    3.         if {tagged::%uuid of attacker%} is not uuid of victim:
    4.             send "You have tagged %victim%." to attacker
    5.      
    6.         if {tagged::%uuid of victim%} is not set:
    7.             send "You have been tagged by %attacker%." to victim
    8.  
    9.         set {tagged::%uuid of attacker%} to uuid of victim
    10.         set {tagged.time::%uuid of attacker%} to 15
    11.         if {tagged.while::%uuid of attacker%} is not set:
    12.             set {tagged.while::%uuid of attacker%} to true
    13.             while {tagged.while::%uuid of attacker%} is set:
    14.                 remove 1 from {tagged.time::%uuid of attacker%}
    15.                 if {tagged.time::%uuid of attacker%} is 0:
    16.                     delete {tagged.while::%uuid of attacker%}
    17.                     delete {tagged::%uuid of attacker%}
    18.                     delete {tagged.time::%uuid of attacker%}
    19.                     send "You are no longer in combat." to attacker
    20.                 wait 1 second
    21.      
    22.         set {tagged::%uuid of victim%} to uuid of attacker
    23.         set {tagged::%uuid of victim%} to 15
    24.         if {tagged.while::%uuid of victim%} is not set:
    25.             set {tagged.while::%uuid of victim%} to true
    26.             while {tagged.while::%uuid of victim%} is set:
    27.                 remove 1 from {tagged.time::%uuid of victim%}
    28.                 if {tagged.time::%uuid of victim%} is 0:
    29.                     delete {tagged.while::%uuid of victim%}
    30.                     delete {tagged::%uuid of victim%}
    31.                     delete {tagged.time::%uuid of victim%}
    32.                     send "You are no longer in combat." to victim
    33.                 wait 1 second
    34.  
    35. on quit:
    36.     if {tagged::%uuid of player%} is set:
    37.         kill the player
    38.         broadcast "%player% has been killed for logging out while in combat."
    39.     delete {tagged.while::%uuid of player%}
    40.     delete {tagged::%uuid of player%}
    41.     delete {tagged.time::%uuid of player%}
    42.  
    43. command /combattag:
    44.     trigger:
    45.         if {tagged::%uuid of player%} is set:
    46.             send "You are currently in combat with %{tagged::%uuid of player%}% and must wait another %{tagged.time::%uuid of player%}% before you are no longer in combat."
    47.             stop
    48.         send "You are not in combat."
    https://hastebin.com/ureruqifud.sql
     
    KingAlterIV likes this.
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Only bump 24 hours AFTER the last post.
    I reported your bump for removal.
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Follow the rules if you want help.
    If you're going to be this way then think of it this way:
    If you're not going to be respectful to people and call them "lmao" and not follow the rules, are you really going to break a law in real life just because you're a dumbass and don't want to follow the speed limit? I mean seriously kid.
     
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    I will fix it and test it today.
     

Share This Page

Loading...