Why don't work? I wan't to add 10fire enchant to item (no set lvl 10 add +10lvl)
code_language.skript:
command /zus:
permission: hap
trigger:
if player has emerald named "&a&l+3000 eur" in his inventory:
if player is holding any sword:
remove emerald named "c" from player's inventory
set {_l} to level of fire aspect of the player's tool
add 10 to {_l}
enchant player's tool with fire aspect {_l}
send "&e&lHAP> &fZuslachtenie bolo &a&luspesne!"
else:
send "&e&lHAP> &c&lChyba! &fV ruke &c&lnedrzis ziadny &fnastroj!"
else:
send "&e&lHAP> &c&lChyba! &fNemas &a&lgem&f!"