# AUTOR SKRYPTU: GRZYBEEK # Moj Twitch: www.twitch.tv/grzybeek # Moj YT: www.youtube.com/xgrzybeek # Profil na skript.pl: https://skript.pl/u%C5%BCytkownik/3630-grzybeek/ function aukcjeKup(p: player , a: integer ): wait 5 tick open chest with 3 rows named " &5&lPotwierdz swoj zakup" to {_p} format slot 22 of {_p} with gold block named "&6Stan twoich punktów:&l %{aukcjapunkty::%{_p}%}%" with lore "&eKoszt przedmiotu:&l %{aukcja::%{_a}%.koszt}%" to be unstealable format slot 13 of {_p} with {aukcja::%{_a}%} to be unstealable format slot 10 of {_p} with red wool named "&c&lNIE" with lore "&cRezygnuje" to close format slot 16 of {_p} with light green wool named "&a&lTAK" with lore "&7Czy napewno chcesz kupic||&7ten item za &a&l%{aukcja::%{_a}%.koszt}% punktów?" to close then run [run {_p} command "/kupiono %{_a}%" as op] function aukcjeKupiono(p: player , a: integer ): if {aukcjapunkty::%{_p}%} is greater than or equal to {aukcja::%{_a}%.koszt}: wait 3 tick set lore of {aukcja::%{_a}%} to {aukcja::%{_a}%.lore} delete {aukcja::limit.%{aukcja::%{_a}%.wlasciciel}%} give {aukcja::%{_a}%} to {_p} add {aukcja::%{_a}%.koszt} to {aukcjapunkty::%{aukcja::%{_a}%.wlasciciel}%} send "&a&lPrzedmiot zostal sprzedany, dodano &6&l%{aukcja::%{_a}%.koszt}% &a&lpunktów do konta" to {aukcja::%{_a}%.wlasciciel} delete {aukcja::%{_a}%.wlasciciel} remove {aukcja::%{_a}%.koszt} from {aukcjapunkty::%{_p}%} set {aukcja::%{_a}%} to false send "&a&lKupiles przedmiot za &6&l%{aukcja::%{_a}%.koszt}% &a&lpunktów" to {_p} delete {aukcja::%{_a}%.koszt} else: send "&c&lNie masz tylu punktów aby to kupic" to {_p} options: #itemy oddzielac "or" a nie spacją albo przecinkiem itemy: bedrock delay: 15 #ile trwa aukcja (w minutach) ilosc: 5 #ilosc punktow po pierwszym wejsciu iloscs: 5 #ilosc punktow tracona po smierci iloscz: 5 #ilosc punktow zyskiwana po zabiciu on first join: set {aukcjapunkty::%player%} to {@ilosc} on join: if {aukcjapunkty::%player%} is not set: set {aukcjapunkty::%player%} to {@ilosc} on load: broadcast "&6Autor skryptu na aukcje: &b&lGRZYBEEK" every 1 hour: broadcast "&6Autor skryptu na aukcje: &b&lGRZYBEEK" on death of player: if attacker is a player: remove {@iloscs} from {aukcjapunkty::%victim%} add {@iloscz} to {aukcjapunkty::%attacker%} command /aukcje: aliases: ah trigger: wait 3 ticks open chest with 6 rows named " &5&lAukcje" to player format slot 0 of player with {aukcja::0} to close then run [run player command "/aukcjekup 0" as op] format slot 1 of player with {aukcja::1} to close then run [run player command "/aukcjekup 1" as op] format slot 2 of player with {aukcja::2} to close then run [run player command "/aukcjekup 2" as op] format slot 3 of player with {aukcja::3} to close then run [run player command "/aukcjekup 3" as op] format slot 4 of player with {aukcja::4} to close then run [run player command "/aukcjekup 4" as op] format slot 5 of player with {aukcja::5} to close then run [run player command "/aukcjekup 5" as op] format slot 6 of player with {aukcja::6} to close then run [run player command "/aukcjekup 6" as op] format slot 7 of player with {aukcja::7} to close then run [run player command "/aukcjekup 7" as op] format slot 8 of player with {aukcja::8} to close then run [run player command "/aukcjekup 8" as op] format slot 9 of player with {aukcja::9} to close then run [run player command "/aukcjekup 9" as op] format slot 10 of player with {aukcja::10} to close then run [run player command "/aukcjekup 10" as op] format slot 11 of player with {aukcja::11} to close then run [run player command "/aukcjekup 11" as op] format slot 12 of player with {aukcja::12} to close then run [run player command "/aukcjekup 12" as op] format slot 13 of player with {aukcja::13} to close then run [run player command "/aukcjekup 13" as op] format slot 14 of player with {aukcja::14} to close then run [run player command "/aukcjekup 14" as op] format slot 15 of player with {aukcja::15} to close then run [run player command "/aukcjekup 15" as op] format slot 16 of player with {aukcja::16} to close then run [run player command "/aukcjekup 16" as op] format slot 17 of player with {aukcja::17} to close then run [run player command "/aukcjekup 17" as op] format slot 18 of player with {aukcja::18} to close then run [run player command "/aukcjekup 18" as op] format slot 19 of player with {aukcja::19} to close then run [run player command "/aukcjekup 19" as op] format slot 20 of player with {aukcja::20} to close then run [run player command "/aukcjekup 20" as op] format slot 21 of player with {aukcja::21} to close then run [run player command "/aukcjekup 21" as op] format slot 22 of player with {aukcja::22} to close then run [run player command "/aukcjekup 22" as op] format slot 23 of player with {aukcja::23} to close then run [run player command "/aukcjekup 23" as op] format slot 24 of player with {aukcja::24} to close then run [run player command "/aukcjekup 24" as op] format slot 25 of player with {aukcja::25} to close then run [run player command "/aukcjekup 25" as op] format slot 26 of player with {aukcja::26} to close then run [run player command "/aukcjekup 26" as op] format slot 27 of player with {aukcja::27} to close then run [run player command "/aukcjekup 27" as op] format slot 28 of player with {aukcja::28} to close then run [run player command "/aukcjekup 28" as op] format slot 29 of player with {aukcja::29} to close then run [run player command "/aukcjekup 29" as op] format slot 30 of player with {aukcja::30} to close then run [run player command "/aukcjekup 30" as op] format slot 31 of player with {aukcja::31} to close then run [run player command "/aukcjekup 31" as op] format slot 32 of player with {aukcja::32} to close then run [run player command "/aukcjekup 32" as op] format slot 33 of player with {aukcja::33} to close then run [run player command "/aukcjekup 33" as op] format slot 34 of player with {aukcja::34} to close then run [run player command "/aukcjekup 34" as op] format slot 35 of player with {aukcja::35} to close then run [run player command "/aukcjekup 35" as op] format slot 45 of player with glowing bars named "&4&l " with lore " " to be unstealable format slot 46 of player with glowing bars named "&4&l " with lore " " to be unstealable format slot 47 of player with glowing bars named "&4&l " with lore " " to be unstealable format slot 48 of player with glowing bars named "&4&l " with lore " " to be unstealable format slot 49 of player with gold block named "&2&lStan punktow" with lore "&7Masz &a%{aukcjapunkty::%player%}% &7punktow" to be unstealable format slot 50 of player with glowing bars named "&4&l " with lore " " to be unstealable format slot 51 of player with glowing bars named "&4&l " with lore " " to be unstealable format slot 52 of player with glowing bars named "&4&l " with lore " " to be unstealable format slot 44 of player with light green dye named "&a&lNastepna strona " with lore "&7Kliknij aby przejsc do nastepnej strony " to be unstealable format slot 53 of player with barrier named "&4&lWyjdz" with lore "||&7&lKliknij aby wylaczyc to okienko" to close every 1 minute: remove 1 from {aukcja::0.delay} set line 8 of lore of {aukcja::0} to "&eWygasa za: &c&l%{aukcja::0.delay}% min" if {aukcja::0.delay} is equal to 1: send "&c&lZostala 1 minuta do konca twojej aukcji!" to {aukcja::0.wlasciciel} send "&c&lUpewnij sie ze masz miejsce w eq!" to {aukcja::0.wlasciciel} if {aukcja::0.delay} is equal to 0: set lore of {aukcja::0} to {aukcja::0.lore} give {aukcja::0} to {aukcja::0.wlasciciel} delete {aukcja::limit.%{aukcja::0.wlasciciel}%} send "&6&lAukcja sie skonczyla lecz nikt nie kupil przedmiotu" to {aukcja::0.wlasciciel} set {aukcja::0} to false loop 40 times: remove 1 from {aukcja::%loop-number%.delay} set line 8 of lore of {aukcja::%loop-number%} to "&eWygasa za: &c&l%{aukcja::%loop-number%.delay}% min" if {aukcja::%loop-number%.delay} is equal to 1: send "&c&lZostala 1 minuta do konca twojej aukcji!" to {aukcja::%loop-number%.wlasciciel} send "&c&lUpewnij sie ze masz miejsce w eq!" to {aukcja::%loop-number%.wlasciciel} if {aukcja::%loop-number%.delay} is equal to 0: set lore of {aukcja::%loop-number%} to {aukcja::%loop-number%.lore} delete {aukcja::limit.%{aukcja::%loop-number%.wlasciciel}%} give {aukcja::%loop-number%} to {aukcja::%loop-number%.wlasciciel} send "&6&lAukcja sie skonczyla lecz nikt nie kupil przedmiotu" to {aukcja::%loop-number%.wlasciciel} set {aukcja::%loop-number%} to false command /aukcja [] []: aliases: a trigger: if arg 1 is "dodaj": if arg 2 is greater than 0: if {aukcja::limit.%player%} is not set: player is not holding air or {@itemy}: if {aukcja::0} is false: set {aukcja::0} to tool of player set {aukcja::0.%player%} to tool of player set {aukcja::0.wlasciciel} to player set {gracz} to player set {aukcja::0.lore} to lore of tool set {aukcja::limit.%player%} to true send "&7&l>> &6&lWstawiles swoj przedmiot na aukcje" to player remove {aukcja::0} from player set {aukcja::0.koszt} to arg 2 set {aukcja::0.delay} to {@delay} set line 5 of lore of {aukcja::0} to "&6===========================" set line 6 of lore of {aukcja::0} to "&ePrzedmiot dodany przez &l%player%" set line 7 of lore of {aukcja::0} to "&eKoszt przedmiotu: &a&l%{aukcja::0.koszt}% punktów " set line 8 of lore of {aukcja::0} to "&eWygasa za: &c&l%{aukcja::0.delay}% min" set line 9 of lore of {aukcja::0} to "&6===========================" else: set {liczba} to 0 while {aukcja::%{liczba}%} is not false: add 1 to {liczba} if {aukcja::%{liczba}%} is false: set {aukcja::%{liczba}%} to tool of player set {aukcja::%{liczba}%.%player%} to tool of player set {aukcja::%{liczba}%.wlasciciel} to player set {aukcja::%{liczba}%.lore} to lore of tool set {aukcja::limit.%player%} to true set {gracz} to player send "&7&l>> &6&lWstawiles swoj przedmiot na aukcje" to player remove {aukcja::%{liczba}%} from player set {aukcja::%{liczba}%.koszt} to arg 2 set {aukcja::%{liczba}%.delay} to {@delay} set line 5 of lore of {aukcja::%{liczba}%} to "&6===========================" set line 6 of lore of {aukcja::%{liczba}%} to "&ePrzedmiot dodany przez &l%player%" set line 7 of lore of {aukcja::%{liczba}%} to "&eKoszt przedmiotu: &a&l%{aukcja::%{liczba}%.koszt}% punktów " set line 8 of lore of {aukcja::%{liczba}%} to "&eWygasa za: &c&l%{aukcja::%{liczba}%.delay}% min" set line 9 of lore of {aukcja::%{liczba}%} to "&6===========================" stop if {aukcja::35} is not false: send "&6&lNa aukcji nie ma miejsca, poczekaj chwile i sprobuj ponownie" to player stop else: if player is holding air or {@itemy}: send "&c&lZly przedmiot!" stop else: send "&c&lLimit przedmiotow na aukcji to 1" to player stop else: if arg 2 is less than 1: if player is not holding air or {@itemy}: send "&c&lCena musi byc wieksza niz 0" if arg 2 is not set: send "&a&l/aukcja dodaj " command /aukcjekup []: permission: aukcje.kup #niedodawac trigger: if {aukcja::0} is not false: if arg 1 is "0": wait 5 tick open chest with 3 rows named " &5&lPotwierdz swoj zakup" to player format slot 22 of player with gold block named "&6Stan twoich punktów:&l %{aukcjapunkty::%player%}%" with lore "&eKoszt przedmiotu:&l %{aukcja::0.koszt}%" to be unstealable format slot 13 of player with {aukcja::0} to be unstealable format slot 10 of player with red wool named "&c&lNIE" with lore "&cRezygnuje" to close format slot 16 of player with light green wool named "&a&lTAK" with lore "&7Czy napewno chcesz kupic||&7ten item za &a&l%{aukcja::0.koszt}% punktów?" to close then run [run player command "/kupiono 0" as op] if {aukcja::1} is not false: if arg 1 is "1": aukcjeKup(player, 1 ) if {aukcja::2} is not false: if arg 1 is "2": aukcjeKup(player, 2 ) if {aukcja::3} is not false: if arg 1 is "3": aukcjeKup(player, 3 ) if {aukcja::4} is not false: if arg 1 is "4": aukcjeKup(player, 4 ) if {aukcja::5} is not false: if arg 1 is "5": aukcjeKup(player, 5 ) if {aukcja::6} is not false: if arg 1 is "6": aukcjeKup(player, 6 ) if {aukcja::7} is not false: if arg 1 is "7": aukcjeKup(player, 7 ) if {aukcja::8} is not false: if arg 1 is "8": aukcjeKup(player, 8 ) if {aukcja::9} is not false: if arg 1 is "9": aukcjeKup(player, 9 ) if {aukcja::10} is not false: if arg 1 is "10": aukcjeKup(player, 10 ) if {aukcja::11} is not false: if arg 1 is "11": aukcjeKup(player, 11 ) if {aukcja::12} is not false: if arg 1 is "12": aukcjeKup(player, 12 ) if {aukcja::13} is not false: if arg 1 is "13": aukcjeKup(player, 13 ) if {aukcja::14} is not false: if arg 1 is "14": aukcjeKup(player, 14 ) if {aukcja::15} is not false: if arg 1 is "15": aukcjeKup(player, 15 ) if {aukcja::16} is not false: if arg 1 is "16": aukcjeKup(player, 16 ) if {aukcja::17} is not false: if arg 1 is "17": aukcjeKup(player, 17 ) if {aukcja::18} is not false: if arg 1 is "18": aukcjeKup(player, 18 ) if {aukcja::19} is not false: if arg 1 is "19": aukcjeKup(player, 19 ) if {aukcja::20} is not false: if arg 1 is "20": aukcjeKup(player, 20 ) if {aukcja::21} is not false: if arg 1 is "21": aukcjeKup(player, 21 ) if {aukcja::22} is not false: if arg 1 is "22": aukcjeKup(player, 22 ) if {aukcja::23} is not false: if arg 1 is "23": aukcjeKup(player, 23 ) if {aukcja::24} is not false: if arg 1 is "24": aukcjeKup(player, 24 ) if {aukcja::25} is not false: if arg 1 is "25": aukcjeKup(player, 25 ) if {aukcja::26} is not false: if arg 1 is "26": aukcjeKup(player, 26 ) if {aukcja::27} is not false: if arg 1 is "27": aukcjeKup(player, 27 ) if {aukcja::28} is not false: if arg 1 is "28": aukcjeKup(player, 28 ) if {aukcja::29} is not false: if arg 1 is "29": aukcjeKup(player, 29 ) if {aukcja::30} is not false: if arg 1 is "30": aukcjeKup(player, 30 ) if {aukcja::31} is not false: if arg 1 is "31": aukcjeKup(player, 31 ) if {aukcja::32} is not false: if arg 1 is "32": aukcjeKup(player, 32 ) if {aukcja::33} is not false: if arg 1 is "33": aukcjeKup(player, 33 ) if {aukcja::34} is not false: if arg 1 is "34": aukcjeKup(player, 34 ) if {aukcja::35} is not false: if arg 1 is "35": aukcjeKup(player, 35 ) command /kupiono []: permission: aukcje.kupiono #niedodawac trigger: if arg 1 is "0": if {aukcjapunkty::%player%} is greater than or equal to {aukcja::0.koszt}: wait 3 tick set lore of {aukcja::0} to {aukcja::0.lore} delete {aukcja::limit.%{aukcja::0.wlasciciel}%} give {aukcja::0} to the player add {aukcja::0.koszt} to {aukcjapunkty::%{aukcja::0.wlasciciel}%} send "&a&lPrzedmiot zostal sprzedany, dodano &6&l%{aukcja::0.koszt}% &a&lpunktów do konta" to {aukcja::0.wlasciciel} delete {aukcja::0.wlasciciel} remove {aukcja::0.koszt} from {aukcjapunkty::%player%} set {aukcja::0} to false send "&a&lKupiles przedmiot za &6&l%{aukcja::0.koszt}% &a&lpunktów" to player delete {aukcja::0.koszt} delete {aukcja::0.schowek} else: send "&c&lNie masz tylu punktów aby to kupic" to player if arg 1 is "1": aukcjeKupiono(player, 1 ) if arg 1 is "2": aukcjeKupiono(player, 2 ) if arg 1 is "3": aukcjeKupiono(player, 3 ) if arg 1 is "4": aukcjeKupiono(player, 4 ) if arg 1 is "5": aukcjeKupiono(player, 5 ) if arg 1 is "6": aukcjeKupiono(player, 6 ) if arg 1 is "7": aukcjeKupiono(player, 7 ) if arg 1 is "8": aukcjeKupiono(player, 8 ) if arg 1 is "9": aukcjeKupiono(player, 9 ) if arg 1 is "10": aukcjeKupiono(player, 10 ) if arg 1 is "11": aukcjeKupiono(player, 11 ) if arg 1 is "12": aukcjeKupiono(player, 12 ) if arg 1 is "13": aukcjeKupiono(player, 13 ) if arg 1 is "14": aukcjeKupiono(player, 14 ) if arg 1 is "15": aukcjeKupiono(player, 15 ) if arg 1 is "16": aukcjeKupiono(player, 16 ) if arg 1 is "17": aukcjeKupiono(player, 17 ) if arg 1 is "18": aukcjeKupiono(player, 18 ) if arg 1 is "19": aukcjeKupiono(player, 19 ) if arg 1 is "20": aukcjeKupiono(player, 20 ) if arg 1 is "21": aukcjeKupiono(player, 21 ) if arg 1 is "22": aukcjeKupiono(player, 22 ) if arg 1 is "23": aukcjeKupiono(player, 23 ) if arg 1 is "24": aukcjeKupiono(player, 24 ) if arg 1 is "25": aukcjeKupiono(player, 25 ) if arg 1 is "26": aukcjeKupiono(player, 26 ) if arg 1 is "27": aukcjeKupiono(player, 27 ) if arg 1 is "28": aukcjeKupiono(player, 28 ) if arg 1 is "29": aukcjeKupiono(player, 29 ) if arg 1 is "30": aukcjeKupiono(player, 30 ) if arg 1 is "31": aukcjeKupiono(player, 31 ) if arg 1 is "32": aukcjeKupiono(player, 32 ) if arg 1 is "33": aukcjeKupiono(player, 33 ) if arg 1 is "34": aukcjeKupiono(player, 34 ) if arg 1 is "35": aukcjeKupiono(player, 35 ) # AUTOR SKRYPTU: GRZYBEEK # Moj Twitch: www.twitch.tv/grzybeek # Moj YT: www.youtube.com/xgrzybeek # Profil na skript.pl: https://skript.pl/u%C5%BCytkownik/3630-grzybeek/