Solved Potion Effect Loop

  • 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.
Yes I have SkQuery the Plugin
[doublepost=1501286788,1501286743][/doublepost]Idk if this will help but you are free to look at it, i appreciate your help
 

Attachments

  • Upgrades.sk
    41.6 KB · Views: 352
what skript version & server version & skquery version do you have?
 
I am on 1.8.8 btw
[doublepost=1501287227,1501287179][/doublepost]can you just send me the actual files themselves so i know that it will work? It would mean a lot
 
oh, well the thing is, I went to that skript site, and i use an older pasar version of script
[doublepost=1501287456,1501287414][/doublepost]I just cant find a good script version for 1.8.8 that fixes this problem
 
ok give me a sec testing
[doublepost=1501288346,1501288144][/doublepost]Still Nope
 
code_language.skript:
on damage:
    if {slowness_cooldown::%player%} is not set:      
        #apply slowness
        set {slowness_cooldown::%player%} to now
    if difference between {slowness_cooldown::%player%} and now is greater than 10 seconds:
        #apply slowness
        set {slowness_cooldown::%player%} to now
 
on damage:
if {Slowness::%attacker%} is more than 0:
set {_Slownessa} to 0.2 * {Slowness::%attacker%}
add 2 to {_Slownessa}
chance of 100%
apply potion of slowness 1 to victim for "%{_Slownessa}% seconds" parsed as a timespan

on damage:
if {slowness_cooldown::%victim%} is not set:
apply potion of slowness 1 to victim for "%{_Slownessa}% seconds" parsed as a timespan
set {slowness_cooldown::%victim%} to now
if difference between {slowness_cooldown::%victim%} and now is greater than 10 seconds:
apply potion of slowness 1 to victim for "%{_Slownessa}% seconds" parsed as a timespan
set {slowness_cooldown::%victim%} to now


HMM not working
[doublepost=1501289417,1501289295][/doublepost]:emoji_grinning: Nvm It works OMG Thank you so much... #Helpful So Much
 
Status
Not open for further replies.