xDravius 1 Opublikowano 9 lutego Udostępnij Opublikowano 9 lutego command /kowal: trigger: set {_item} to player's tool if {_item} is not netherite chestplate or netherite boots or netherite leggings or netherite helmet or diamond chestplate or diamond boots or diamond leggings or diamond helmet: send "&c➤ Trzymaj zbroję, którą można ulepszyć!" to player stop else: set {gui.kowal.%player%} to chest inventory with 3 rows named "Kowal" set slot 11 of {gui.kowal.%player%} to red dye named "&cAnuluj" set slot 13 of {gui.kowal.%player%} to {_item} set slot 15 of {gui.kowal.%player%} to lime dye named "&aUlepsz" open {gui.kowal.%player%} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "Kowal": cancel event if clicked slot is 11: close inventory of player if clicked slot is 15: execute console command "ukrytakomenda %player%" command /ukrytakomenda [<player>]: permission: op permission message: &cTaka komenda nie istnieje! trigger: if arg is not set: stop set {_gracz} to arg set {_item} to tool of {_gracz} if {_item} is air: send "&c➤ Trzymaj zbroję diamentową lub Anarchiczną!" to {_gracz} stop if {_item} is not netherite chestplate or netherite boots or netherite leggings or netherite helmet or diamond chestplate or diamond boots or diamond leggings or diamond helmet: send "&c➤ To nie jest zbroja możliwa do ulepszenia!" to {_gracz} stop if {_gracz} has 1 nether star named "&6Kamień Kowalski": remove 1 nether star named "&6Kamień Kowalski" from {_gracz}'s inventory else: send "&c➤ Potrzebujesz &6Kamienia Kowalskiego &caby ulepszyć zbroję! Stwórz go z 10 węgla i 35$ komendą &e/kamienkowalski" to {_gracz} stop if type of {_item} is netherite_chestplate or diamond_chestplate: set {_typ} to "Klata" set {_zbroja} to 8 else if type of {_item} is netherite_leggings or diamond_leggings: set {_typ} to "Spodnie" set {_zbroja} to 6 else if type of {_item} is netherite_boots or diamond_boots: set {_typ} to "Buty" set {_zbroja} to 3 else if type of {_item} is netherite_helmet or diamond_helmet: set {_typ} to "Hełm" set {_zbroja} to 3 set {_nazwa} to name of {_item} set {_poziom} to 0 if {_nazwa} contains "+1": set {_poziom} to 1 if {_nazwa} contains "+2": set {_poziom} to 2 if {_nazwa} contains "+3": set {_poziom} to 3 if {_nazwa} contains "+4": set {_poziom} to 4 if {_nazwa} contains "+5": set {_poziom} to 5 if {_nazwa} contains "+6": set {_poziom} to 6 if {_nazwa} contains "+7": set {_poziom} to 7 if {_poziom} >= 7: send "&e➤ Zbroja ma już maksymalny poziom (+7)!" to {_gracz} stop set {_szansa::0} to 100 set {_szansa::1} to 90 set {_szansa::2} to 80 set {_szansa::3} to 70 set {_szansa::4} to 60 set {_szansa::5} to 50 set {_szansa::6} to 40 set {_procent} to {_szansa::%{_poziom}%} set {_los} to random integer between 1 and 100 if {_los} > {_procent}: send "&c Ulepszenie się nie powiodło. Zbroja pozostała na poziomie +%{_poziom}%." to {_gracz} stop set {_nowy} to {_poziom} + 1 set {_bonus} to 0.5 * {_nowy} set {_laczny} to {_zbroja} + {_bonus} set name of {_item} to "&4%{_typ}% &c&l+%{_nowy}%" set lore of {_item} to "&b+%{_bonus}% odporności na obrażenia" set tool of {_gracz} to air wait 2 ticks give {_item} to {_gracz} send "&a Ulepszono zbroję do +%{_nowy}%!" to {_gracz} send "&7Nowy bonus pancerza: &b%{_bonus}% &7(łącznie: %{_laczny}% armor)" to {_gracz} execute console command "lp user %{_gracz}% permission set itemedit.itemedit.attribute true" execute {_gracz} command "/ie attribute remove armor" execute {_gracz} command "/ie attribute remove armor_toughness" wait 2 ticks execute {_gracz} command "/ie attribute add armor %{_laczny}%" execute {_gracz} command "/ie attribute add armor_toughness 3" execute console command "lp user %{_gracz}% permission set itemedit.itemedit.attribute false" command /kamienkowalski: trigger: if player has 10 coal: if player's balance >= 35: remove 10 coal from player remove 35 from player's balance give player nether star named "&6Kamień Kowalski" send "&a Otrzymałeś Kamień Kowalski!" else: send "&c Nie masz wystarczająco pieniędzy (35$)!" else: send "&c Brakuje ci 10 węgla!" command /dajkamien [<player>]: permission: op permission message: &cNie masz uprawnień do tej komendy! trigger: if arg is set: if arg is online: give arg 1 nether star named "&6Kamień Kowalski" send "&aDano Kamień Kowalski graczowi %arg%." else: send "&cGracz %arg% nie jest online!" else: give player 1 nether star named "&6Kamień Kowalski" send "&aDano Kamień Kowalski tobie." Cytuj Odnośnik do komentarza https://skript.pl/temat/59034-napisa%C5%82em-skript-na-kowala-anarchiagg-jak-cos-nie-dziala-napiszcie/ Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.