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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

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

infinitely looping with no loop

Discussion in 'Skript' started by Terry Jackson, Jan 13, 2019.

Thread Status:
Not open for further replies.
  1. T

    Terry Jackson Member

    Joined:
    Aug 20, 2018
    Messages:
    1
    Likes Received:
    0
    When i added the "make attacker damage victim by 6" effect my script starts looping without any loops



    Code (Skript):
    1. on damage:
    2.     attacker is a player
    3.     {slampackage.%attacker%.souls} is greater than or equal to 20
    4.     {slampackage.%attacker%.toggle.rarity.gem} is "true"
    5.     if {divine.immolation.cooldown.%attacker%} is not set:
    6.         set {divine.immolation.cooldown.%attacker%} to 0  
    7.     if lore of attacker's tool contains "&cDivine Immolation":
    8.         if {divine.immolation.cooldown.%attacker%} is less than or equal to 0:
    9.             play 10 mob spawner flames at victim's location
    10.             execute console command "/playsound mob.enderdragon.growl %attacker% 1 1 1 100"
    11.             execute console command "/playsound mob.enderdragon.growl %victim% 1 1 1 100"
    12.             make attacker damage victim by 6
    13.             subtract 20 from {slampackage.%attacker%.souls}
    14.             set the name of {item} to "&c&lSoul Gem [&6&l%{slampackage.%attacker%.souls}%&c&l]"
    15.             set {divine.immolation.cooldown.%attacker%} to 1
    16.             wait 1 second
    17.             set {divine.immolation.cooldown.%attacker%} to 0
    18.             stop
     
  2. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    775
    Likes Received:
    50
    Medals:
    Probably because make damage triggers the on damage event
     
    • Agree Agree x 2
Thread Status:
Not open for further replies.
Loading...