Buggy things

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

xosmuits

Member
Feb 7, 2017
1
0
0
I'm trying to create a skill, it works nicely but when I use it when it's in cooldown, cooldown never ends. Otherwise if i weren't use it when it's in cooldown or use it when it's cooldown over it works perfectly, That's why I am opening this thread. And sorry for my bad england.
code_language.skript:
on leftclick with gunpowder:
    if {x.%player%} isn't set:
        set {x.%player%} to 1
        send "cd"
        player has permission "*"
        1.8 spawn 50 of particle smoke:0 offset by 1, 10, 1 at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 10, 1 at player with data 0
        wait 5 ticks
        1.8 spawn 50 of particle smoke:0 offset by 1, 9, 1  at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 9, 1 at player with data 0
        wait 5 ticks
        1.8 spawn 50 of particle smoke:0 offset by 1, 8, 1  at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 8, 1 at player with data 0
        wait 5 ticks
        1.8 spawn 50 of particle smoke:0 offset by 1, 7, 1 at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 7, 1 at player with data 0
        wait 5 ticks
        1.8 spawn 50 of particle smoke:0 offset by 1, 6, 1  at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 6, 1 at player with data 0
        wait 5 ticks
        1.8 spawn 50 of particle smoke:0 offset by 1, 5, 1  at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 5, 1 at player with data 0
        wait 5 ticks
        1.8 spawn 50 of particle smoke:0 offset by 1, 4, 1  at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 4, 1 at player with data 0
        wait 5 ticks
        1.8 spawn 50 of particle smoke:0 offset by 1, 3, 1  at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 3, 1 at player with data 0
        wait 5 ticks
        1.8 spawn 50 of particle smoke:0 offset by 1, 2, 1  at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 2, 1 at player with data 0
        wait 5 ticks
        1.8 spawn 50 of particle smoke:0 offset by 1, 1, 1  at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 1, 1 at player with data 0
        wait 5 ticks
        1.8 spawn 50 of particle smoke:0 offset by 1, 0, 1 at player with data 0
        1.8 spawn 50 of particle red dust:0 offset by 1, 0, 1 at player with data 0
        wait 2 seconds
        1.8 spawn 1 of particle huge explosion:0 offset by 1, 0, 1 at player with data 0
        wait 1 seconds
        1.8 spawn 1 of particle huge explosion:0 offset by 1, 0, 1 at player with data 0
        wait 1 seconds
        1.8 spawn 1 of particle huge explosion:0 offset by 1, 0, 1 at player with data 0
        wait 3 seconds
        1.8 spawn 1 of particle huge explosion:0 offset by 1, 0, 1 at player with data 0
        loop all entities in radius 10 around the player:
          damage the loop-entity by 5 hearts
          wait 5 seconds
          delete {x.%player%}
          send "cd over"
Thanks for all of your helps. Thanks!
[doublepost=1486662372,1486574659][/doublepost]No comments? :c
 
Moved to the Help Section;

Format is viable. He explains his problem fine.
 
Status
Not open for further replies.