need help fixing my skript

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

  • 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.

3dpixelartman

Member
Jun 23, 2021
23
0
1
24
Code:
on right click with stick:
    if {mana.%player%} is above 6:
    if name of tool of player is "&c&lWand Of Escape":
        chance of 50%:
            apply speed 2 to player for 8 seconds
            apply jump boost 2 to player for 8 seconds
            apply invisibility 1 to player for 8 seconds
            apply regeneration 2 to player for 8 seconds
            send "&aYou got giving the ability to escape"
        else:
            apply slowness 10 to player for 3 seconds
            send "&cYour spell backfired"
        
on right click with stick:
    if {mana.%player%} is above 6:
    if name of tool of player is "&a&lWand Of Attack":
        chance of 50%:
            apply strength 2 to player for 8 seconds
            apply speed 2 to player for 8 seconds
            apply resistance 2 to player for 8 seconds
            send "&aYou got giving the ability to attack"
        else:
            apply weakness 5 to player for 8 seconds
            send "&cYour spell backfired"
            
on right click with stick:
    if {mana.%player%} is above 6:
    if name of tool of player is "&d&lWand Of Regen":
        chance of 50%:
            apply regeneration 3 to player for 5 seconds
        else:
            apply poison 4 to player for 5 seconds
            send "&cYour spell backfired"
on right click with stick:
    if name of tool of player is "&c&lWand Of Escape":
        chance of 50%:
            apply speed 2 to player for 8 seconds
            apply jump boost 2 to player for 8 seconds
            apply invisibility 1 to player for 8 seconds
            apply regeneration 2 to player for 8 seconds
            send "&aYou got giving the ability to escape"
        else:
            apply slowness 10 to player for 3 seconds
            send "&cYour spell backfired"
        
on right click with stick:
    if name of tool of player is "&a&lWand Of Attack":
        chance of 50%:
            apply strength 2 to player for 8 seconds
            apply speed 2 to player for 8 seconds
            apply resistance 2 to player for 8 seconds
            send "&aYou got giving the ability to attack"
        else:
            apply weakness 5 to player for 8 seconds
            send "&cYour spell backfired"
            
on right click with stick:
    if name of tool of player is "&d&lWand Of Regen":
        chance of 50%:
            apply regeneration 3 to player for 5 seconds
        else:
            apply poison 4 to player for 5 seconds
            send "&cYour spell backfired"

on the on name of tools lines skript tells me nothing is there. How can i fix it or can anyone give me a fixed copy
 
Formated code:
Code:
on right click with stick:
    if {mana.%player%} is above 6:
        if name of tool of player is "&c&lWand Of Escape":
            chance of 50%:
                apply speed 2 to player for 8 seconds
                apply jump boost 2 to player for 8 seconds
                apply invisibility 1 to player for 8 seconds
                apply regeneration 2 to player for 8 seconds
                send "&aYou got giving the ability to escape"
            else:
                apply slowness 10 to player for 3 seconds
                send "&cYour spell backfired"
       
on right click with stick:
    if {mana.%player%} is above 6:
        if name of tool of player is "&a&lWand Of Attack":
            chance of 50%:
                apply strength 2 to player for 8 seconds
                apply speed 2 to player for 8 seconds
                apply resistance 2 to player for 8 seconds
                send "&aYou got giving the ability to attack"
            else:
                apply weakness 5 to player for 8 seconds
                send "&cYour spell backfired"
           
on right click with stick:
    if {mana.%player%} is above 6:
        if name of tool of player is "&d&lWand Of Regen":
            chance of 50%:
                apply regeneration 3 to player for 5 seconds
            else:
                apply poison 4 to player for 5 seconds
                send "&cYour spell backfired"
on right click with stick:
    if name of tool of player is "&c&lWand Of Escape":
        chance of 50%:
            apply speed 2 to player for 8 seconds
            apply jump boost 2 to player for 8 seconds
            apply invisibility 1 to player for 8 seconds
            apply regeneration 2 to player for 8 seconds
            send "&aYou got giving the ability to escape"
        else:
            apply slowness 10 to player for 3 seconds
            send "&cYour spell backfired"
       
on right click with stick:
    if name of tool of player is "&a&lWand Of Attack":
        chance of 50%:
            apply strength 2 to player for 8 seconds
            apply speed 2 to player for 8 seconds
            apply resistance 2 to player for 8 seconds
            send "&aYou got giving the ability to attack"
        else:
            apply weakness 5 to player for 8 seconds
            send "&cYour spell backfired"
           
on right click with stick:
    if name of tool of player is "&d&lWand Of Regen":
        chance of 50%:
            apply regeneration 3 to player for 5 seconds
        else:
            apply poison 4 to player for 5 seconds
            send "&cYour spell backfired"
 
Status
Not open for further replies.