help make custom enchant

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

ツナー

Member
Dec 20, 2020
16
0
1
23
Code:
on damage:
    if victim is wearing an armor:
        if victim's armor has custom enchantment Wolf:
            if level of custom enchantment Wolf of attacker's tool is 1:
                if {cooldown.%victim%} is true:
                    stop
                    cancel event
                if {cooldown.%victim%} is not set:
                    set {cooldown.%victim%} to false
                if {cooldown.%victim%} is false:
                    set {cooldown.%victim%} to true
                    spawn 3 wolf at victim's location
                    wait 1 ticks
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 1 ticks
                    spawn 1 wolf at victim's location
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 15 seconds
                    kill all animals where [input's name is "&7%victim% Wolf"]
                wait 25 seconds
                set {cooldown.%victim%} to false
        if victim's armor has custom enchantment Wolf:
            if level of custom enchantment Wolf of attacker's tool is 2:
                if {cooldown.%victim%} is true:
                    stop
                    cancel event
                if {cooldown.%victim%} is not set:
                    set {cooldown.%victim%} to false
                if {cooldown.%victim%} is false:
                    set {cooldown.%victim%} to true
                    spawn 3 wolf at victim's location
                    wait 1 ticks
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 1 ticks
                    spawn 1 wolf at victim's location
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 20 seconds
                    kill all animals where [input's name is "&7%victim% Wolf"]
                wait 30 seconds
                set {cooldown.%victim%} to false
        if victim's armor has custom enchantment Wolf:
            if level of custom enchantment Wolf of attacker's tool is 3:
                if {cooldown.%victim%} is true:
                    stop
                    cancel event
                if {cooldown.%victim%} is not set:
                    set {cooldown.%victim%} to false
                if {cooldown.%victim%} is false:
                    set {cooldown.%victim%} to true
                    spawn 5 wolf at victim's location
                    wait 1 ticks
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 1 ticks
                    spawn 1 wolf at victim's location
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 15 seconds
                    kill all animals where [input's name is "&7%victim% Wolf"]
                wait 25 seconds
                set {cooldown.%victim%} to false
yhVV9Id.png

Help me ;(
 
I need to see line 169, 190 and 211
Code:
on damage:
    if victim is wearing an armor:
        if victim's armor has custom enchantment Wolf:
            if level of custom enchantment Wolf of attacker's tool is 1:
                if {cooldown.%victim%} is true:
                    stop
                    cancel event
                if {cooldown.%victim%} is not set:
                    set {cooldown.%victim%} to false
                if {cooldown.%victim%} is false:
                    set {cooldown.%victim%} to true
                    spawn 3 wolf at victim's location
                    wait 1 ticks
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 1 ticks
                    spawn 1 wolf at victim's location
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 15 seconds
                    kill all animals where [input's name is "&7%victim% Wolf"]
                wait 25 seconds
                set {cooldown.%victim%} to false
        if victim's armor has custom enchantment Wolf:
            if level of custom enchantment Wolf of attacker's tool is 2:
                if {cooldown.%victim%} is true:
                    stop
                    cancel event
                if {cooldown.%victim%} is not set:
                    set {cooldown.%victim%} to false
                if {cooldown.%victim%} is false:
                    set {cooldown.%victim%} to true
                    spawn 3 wolf at victim's location
                    wait 1 ticks
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 1 ticks
                    spawn 1 wolf at victim's location
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 20 seconds
                    kill all animals where [input's name is "&7%victim% Wolf"]
                wait 30 seconds
                set {cooldown.%victim%} to false
        if victim's armor has custom enchantment Wolf:
            if level of custom enchantment Wolf of attacker's tool is 3:
                if {cooldown.%victim%} is true:
                    stop
                    cancel event
                if {cooldown.%victim%} is not set:
                    set {cooldown.%victim%} to false
                if {cooldown.%victim%} is false:
                    set {cooldown.%victim%} to true
                    spawn 5 wolf at victim's location
                    wait 1 ticks
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 1 ticks
                    spawn 1 wolf at victim's location
                    tame the last spawned wolf to the victim
                    set name of last spawned wolf to "&7%victim% Wolf"
                    wait 15 seconds
                    kill all animals where [input's name is "&7%victim% Wolf"]
                wait 25 seconds
                set {cooldown.%victim%} to false
Line 3, 24, and 45 error ;(
 
Status
Not open for further replies.