variables: {damage10.%player%} = false {damage20.%player%} = false {damage30.%player%} = false {damage50.%player%} = false {potki.%player%} = false on rightclick: if player's tool is 373 named "&c&lSlaba Mikstura Krytyka" with lore "&3Szansa &b10%% &3na zadanie krytycznego ciosu": cancel event if {potki.%player%} is false: if {damage10.%player%} is false: cancel event remove 1 373 named "&c&lSlaba Mikstura Krytyka" with lore "&3Szansa &b10%% &3na zadanie krytycznego ciosu" from player set {damage10.%player%} to true send "&3MIKSTURY &2» &fCzuje sie silniejszy..." wait 5 minutes set {damage10.%player%} to false send "&3MIKSTURY &2» &fKrytyczny cios zakonczyl sie..." else: send "&3MIKSTURY &2» &fJestes juz silny..." else: send "&3MIKSTURY &2» &fJestes juz silny..." if player's tool is 373 named "&c&lMikstura Krytyka" with lore "&3Szansa &b20%% &3na zadanie krytycznego ciosu": cancel event if {potki.%player%} is false: if {damage20.%player%} is false: cancel event remove 1 373 named "&c&lMikstura Krytyka" with lore "&3Szansa &b20%% &3na zadanie krytycznego ciosu" from player set {damage20.%player%} to true send "&3MIKSTURY &2» &fCzuje sie silniejszy..." wait 5 minutes set {damage20.%player%} to false send "&3MIKSTURY &2» &fKrytyczny cios zakonczyl sie..." else: send "&3MIKSTURY &2» &fJestes juz silny..." else: send "&3MIKSTURY &2» &fJestes juz silny..." if player's tool is 373 named "&c&lDobra Mikstura Krytyka" with lore "&3Szansa &b30%% &3na zadanie krytycznego ciosu": cancel event if {potki.%player%} is false: if {damage30.%player%} is false: cancel event remove 1 373 named "&c&lDobra Mikstura Krytyka" with lore "&3Szansa &b30%% &3na zadanie krytycznego ciosu" from player set {damage30.%player%} to true send "&3MIKSTURY &2» &fCzuje sie silniejszy..." wait 5 minutes set {damage30.%player%} to false send "&3MIKSTURY &2» &fKrytyczny cios zakonczyl sie..." else: send "&3MIKSTURY &2» &fJestes juz silny..." else: send "&3MIKSTURY &2» &fJestes juz silny..." if player's tool is 373 named "&c&lElitarna Mikstura Krytyka" with lore "&3Szansa &b50%% &3na zadanie krytycznego ciosu": cancel event if {potki.%player%} is false: if {damage50.%player%} is false: remove 1 373 named "&c&lElitarna Mikstura Krytyka" with lore "&3Szansa &b50%% &3na zadanie krytycznego ciosu" from player set {damage50.%player%} to true send "&3MIKSTURY &2» &fCzuje sie silniejszy..." wait 5 minutes set {damage50.%player%} to false send "&3MIKSTURY &2» &fKrytyczny cios zakonczyl sie..." else: send "&3MIKSTURY &2» &fJestes juz silny..." else: send "&3MIKSTURY &2» &fJestes juz silny..." command /krytyki []: permission: krytyki trigger: if arg 1 is not set: send "&7Uzyj: &c/krytyki Slaba/Zwykla/Dobra/Elitarna" if arg 1 is not "Slaba" or "zwykla" or "dobra" or "elitarna": send "&7Uzyj: &c/krytyki Slaba/Zwykla/Dobra/Elitarna" if arg 1 is "Slaba": add 1 373 named "&c&lSlaba Mikstura Krytyka" with lore "&3Szansa &b10%% &3na zadanie krytycznego ciosu" to player if arg 1 is "Zwykla": add 1 373 named "&c&lMikstura Krytyka" with lore "&3Szansa &b20%% &3na zadanie krytycznego ciosu" to player if arg 1 is "Dobra": add 1 373 named "&c&lDobra Mikstura Krytyka" with lore "&3Szansa &b30%% &3na zadanie krytycznego ciosu" to player if arg 1 is "Elitarna": add 1 373 named "&c&lElitarna Mikstura Krytyka" with lore "&3Szansa &b50%% &3na zadanie krytycznego ciosu" to player on join: set {damage10.%player%} to false set {damage20.%player%} to false set {damage30.%player%} to false set {damage50.%player%} to false set {potki.%player%} to false on damage: if {potki.%attacker%} is false: if {damage10.%attacker%} is true: chance of 10%: damage victim by 20 heart if {damage20.%attacker%} is true: chance of 20%: damage victim by 20 heart if {damage30.%attacker%} is true: chance of 30%: damage victim by 20 heart if {damage50.%attacker%} is true: chance of 50%: damage victim by 20 heart