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.

need help fixing my skript

Discussion in 'Requests' started by 3dpixelartman, Mar 10, 2022.

  1. 3dpixelartman

    3dpixelartman Member

    Joined:
    Jun 23, 2021
    Messages:
    23
    Likes Received:
    0
    Code (Text):
    1. on right click with stick:
    2.     if {mana.%player%} is above 6:
    3.     if name of tool of player is "&c&lWand Of Escape":
    4.         chance of 50%:
    5.             apply speed 2 to player for 8 seconds
    6.             apply jump boost 2 to player for 8 seconds
    7.             apply invisibility 1 to player for 8 seconds
    8.             apply regeneration 2 to player for 8 seconds
    9.             send "&aYou got giving the ability to escape"
    10.         else:
    11.             apply slowness 10 to player for 3 seconds
    12.             send "&cYour spell backfired"
    13.        
    14. on right click with stick:
    15.     if {mana.%player%} is above 6:
    16.     if name of tool of player is "&a&lWand Of Attack":
    17.         chance of 50%:
    18.             apply strength 2 to player for 8 seconds
    19.             apply speed 2 to player for 8 seconds
    20.             apply resistance 2 to player for 8 seconds
    21.             send "&aYou got giving the ability to attack"
    22.         else:
    23.             apply weakness 5 to player for 8 seconds
    24.             send "&cYour spell backfired"
    25.            
    26. on right click with stick:
    27.     if {mana.%player%} is above 6:
    28.     if name of tool of player is "&d&lWand Of Regen":
    29.         chance of 50%:
    30.             apply regeneration 3 to player for 5 seconds
    31.         else:
    32.             apply poison 4 to player for 5 seconds
    33.             send "&cYour spell backfired"
    34. on right click with stick:
    35.     if name of tool of player is "&c&lWand Of Escape":
    36.         chance of 50%:
    37.             apply speed 2 to player for 8 seconds
    38.             apply jump boost 2 to player for 8 seconds
    39.             apply invisibility 1 to player for 8 seconds
    40.             apply regeneration 2 to player for 8 seconds
    41.             send "&aYou got giving the ability to escape"
    42.         else:
    43.             apply slowness 10 to player for 3 seconds
    44.             send "&cYour spell backfired"
    45.        
    46. on right click with stick:
    47.     if name of tool of player is "&a&lWand Of Attack":
    48.         chance of 50%:
    49.             apply strength 2 to player for 8 seconds
    50.             apply speed 2 to player for 8 seconds
    51.             apply resistance 2 to player for 8 seconds
    52.             send "&aYou got giving the ability to attack"
    53.         else:
    54.             apply weakness 5 to player for 8 seconds
    55.             send "&cYour spell backfired"
    56.            
    57. on right click with stick:
    58.     if name of tool of player is "&d&lWand Of Regen":
    59.         chance of 50%:
    60.             apply regeneration 3 to player for 5 seconds
    61.         else:
    62.             apply poison 4 to player for 5 seconds
    63.             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
     
  2. Orangesanta8415

    Supporter

    Joined:
    Nov 21, 2020
    Messages:
    40
    Likes Received:
    0
    Try using
    name of player's tool is "your name here":
     
  3. 3dpixelartman

    3dpixelartman Member

    Joined:
    Jun 23, 2021
    Messages:
    23
    Likes Received:
    0
    thanks! I will try it out
     

Share This Page

Loading...