command /wystaw [] []: permission: aukcja.wystaw permission message: &cNie masz do tego uprawnien trigger: if arg 1 is set: if {aukcja::Status} is not set: if player's tool is not air: if {aukcja::Blacklist::Player::%player%} is not set: if {aukcja::Blacklist::Item::%type of player's tool%} is not set: if arg 1 is greater or equal to 0: set {aukcja::Cena} to arg 1 set {aukcja::Item} to player's tool set {aukcja::Item::Name} to name of player's tool if {aukcja::Item::Name} is not set: set {aukcja::Item::Name} to "&fBrak" remove {aukcja::Item} from player set {aukcja::Sprzedajacy} to player set {aukcja::Kupujacy} to "&fBrak" set {aukcja::Item::Lore} to lore of {aukcja::Item} if {aukcja::Item::Lore} is "": set {aukcja::Item::Lore} to "&fBrak" set {aukcja::Item::Durability} to durability of {aukcja::Item} set {aukcja::Status} to true set {aukcja::Item::Stack} to max stack size of {aukcja::Item} if {aukcja::Item::Stack} is equal to 1: set {aukcja::Item::Stack} to "&fNie" if {aukcja::Item::Stack} is greater than 1: if {aukcja::Item::Stack} is equal to 16: set {aukcja::Item::Stack} to "&fTak, 16" if {aukcja::Item::Stack} is equal to 64: set {aukcja::Item::Stack} to "&fTak, 64" if arg 2 is set: if arg 2 is greater or equal to 0: set {aukcja::KupTeraz::Status} to arg 2 else: send "&cCena kup teraz nie moze byc wieksza niz 0" stop if arg 2 is not set: set {aukcja::KupTeraz::Status} to "&fNie" broadcast "================" broadcast " &6Aukcja&f:" broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%" broadcast "&6Przedmiot: &2%{aukcja::Item}%" if {aukcja::Item::Name} is not "&fBrak": broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%" if {aukcja::Item::Lore} is not "&fBrak": broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%" broadcast "&6Cena: &2%{aukcja::Cena}%" broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%" broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%" if {aukcja::Kupujacy} is not "&fBrak": broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%" broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%" broadcast "&6Do konca aukcji: &260 sekund" broadcast "================" wait 30 second broadcast "================" broadcast " &6Aukcja&f:" broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%" broadcast "&6Przedmiot: &2%{aukcja::Item}%" if {aukcja::Item::Name} is not "&fBrak": broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%" if {aukcja::Item::Lore} is not "&fBrak": broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%" broadcast "&6Cena: &2%{aukcja::Cena}%" broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%" broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%" if {aukcja::Kupujacy} is not "&fBrak": broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%" broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%" broadcast "&6Do konca aukcji: &230 sekund" broadcast "================" wait 10 second broadcast "================" broadcast " &6Aukcja&f:" broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%" broadcast "&6Przedmiot: &2%{aukcja::Item}%" if {aukcja::Item::Name} is not "&fBrak": broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%" if {aukcja::Item::Lore} is not "&fBrak": broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%" broadcast "&6Cena: &2%{aukcja::Cena}%" broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%" broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%" if {aukcja::Kupujacy} is not "&fBrak": broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%" broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%" broadcast "&6Do konca aukcji: &220 sekund" broadcast "================" wait 10 second broadcast "================" broadcast " &6Aukcja&f:" broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%" broadcast "&6Przedmiot: &2%{aukcja::Item}%" if {aukcja::Item::Name} is not "&fBrak": broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%" if {aukcja::Item::Lore} is not "&fBrak": broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%" broadcast "&6Cena: &2%{aukcja::Cena}%" broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%" broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%" if {aukcja::Kupujacy} is not "&fBrak": broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%" broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%" broadcast "&6Do konca aukcji: &210 sekund" broadcast "================" wait 5 second broadcast "================" broadcast "&6Aukcja konczy sie za: &25 sekund" broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%" broadcast "================" wait 5 second broadcast "================" broadcast "&6Aukcja &4ZAKONCZONA" broadcast "&6Aukcje wygral: &2%{aukcja::Kupujacy}%" broadcast "================" if {aukcja::Kupujacy} is "&fBrak": give {aukcja::Item} to player clear {aukcja::Cena} clear {aukcja::Item} clear {aukcja::Item::Name} clear {aukcja::Sprzedajacy} clear {aukcja::KupTeraz} clear {aukcja::Item::Lore} clear {aukcja::KupTeraz::Status} clear {aukcja::Item::Durability} clear {aukcja::Item::Stack} set {aukcja::Status} to false wait 120 second clear {aukcja::Status} stop else: if {aukcja::KupTeraz} is set: if {aukcja::Cena} is greater than {aukcja::Rekordowa::Stawka}: set {aukcja::Rekordowa::Stawka} to {aukcja::Cena} set {aukcja::Rekordzistwa} to {aukcja::Kupujacy} broadcast "&6&lGracz &2&l%{aukcja::Kupujacy}% &6&lpodbil rekordowa stawke wynoszczaca &2&l%{aukcja::Rekordowa::Stawka}%" loop all players: play raw sound "random.levelup" at loop-player with pitch 1 volume 5 give {aukcja::Item} to {aukcja::Kupujacy} add {aukcja::KupTeraz::Status} to player's account remove {aukcja::KupTeraz::Status} from {aukcja::Kupujacy}'s account clear {aukcja::Cena} clear {aukcja::Item} clear {aukcja::KupTeraz::Status} clear {aukcja::KupTeraz} clear {aukcja::Item::Lore} clear {aukcja::Item::Stack} clear {aukcja::Item::Name} clear {aukcja::Item::Durability} if {aukcja::Pkt::%player%} is not set: set {aukcja::Pkt::%player%} to 0 add 1 to {aukcja::Pkt::%player%} clear {aukcja::Sprzedajacy} set {aukcja::Kupujacy} to "&fBrak" set {aukcja::Status} to false wait 120 second clear {aukcja::Status} stop else: if {aukcja::Cena} is greater than {aukcja::Rekordowa::Stawka}: set {aukcja::Rekordowa::Stawka} to {aukcja::Cena} set {aukcja::Rekordzistwa} to {aukcja::Kupujacy} broadcast "&6&lGracz &2&l%{aukcja::Kupujacy}% &6&lpodbil rekordowa stawke wynoszczaca &2&l%{aukcja::Rekordowa::Stawka}%" loop all players: play raw sound "random.levelup" at loop-player with pitch 1 volume 5 give {aukcja::Item} to {aukcja::Kupujacy} add {aukcja::Cena} to player's account remove {aukcja::Cena} from {aukcja::Kupujacy}'s account clear {aukcja::Cena} clear {aukcja::Item} clear {aukcja::Item::Lore} clear {aukcja::KupTeraz::Status} clear {aukcja::KupTeraz} clear {aukcja::Item::Stack} clear {aukcja::Item::Durability} clear {aukcja::Item::Name} if {aukcja::Pkt::%player%} is not set: set {aukcja::Pkt::%player%} to 0 add 1 to {aukcja::Pkt::%player%} clear {aukcja::Sprzedajacy} set {aukcja::Kupujacy} to "&fBrak" set {aukcja::Status} to false wait 120 second clear {aukcja::Status} stop else: send "&cCena nie moze byc mniejsza niz 0" stop else: send "&cNie mozesz wystawic tego przedmiotu na aukcje" stop else: send "&cNie mozesz wystawiac przedmiotow na aukcje" stop else: send "&cMusisz trzymac przedmiot w rece" stop if {aukcja::Status} is false: send "&cMusisz odczekac 120 sekund od zakonczenia ostatniej aukcji" stop if {aukcja::Status} is true: send "&cAukcja juz trwa" stop else: send "&cMusisz podac cene przedmiotu" stop command /podbij []: permission: aukcja.podbij permission message: &cNie masz do tego uprawnien trigger: if {aukcja::Status} is true: if {aukcja::KupTeraz} is not set: if arg 1 is set: if arg 1 is greater or equal to 1: if player's balance is greater or equal to {aukcja::Cena}+arg 1: if player is {aukcja::Sprzedajacy}: send "&cNie mozesz podbic wlasnej aukcji" stop else: set {aukcja::Cena} to {aukcja::Cena}+arg 1 set {aukcja::Kupujacy} to player broadcast "&2%player% &6podbija do &2%{aukcja::Cena}%" stop else: send "&cNie masz tyle kasy" stop else: send "&cNie mozesz podbic o mniej niz 1" stop if arg 1 is not set: if player's balance is greater or equal to {aukcja::Cena}+1: if player is {aukcja::Sprzedajacy}: send "&cNie mozesz podbic wlasnej aukcji" stop else: set {aukcja::Cena} to {aukcja::Cena}+1 set {aukcja::Kupujacy} to player broadcast "&2%player% &6podbija do &2%{aukcja::Cena}%" stop else: send "&cNie masz tyle kasy" stop else: send "&cKtos kupil ten przedmiot przez opcje Kup Teraz" stop if {aukcja::Status} is false: send "&cNie trwa zadna aukcja" stop if {aukcja::Status} is not set: send "&cNie trwa zadna aukcja" stop command /aukcja []: permission: aukcja.info permission message: &cNie masz do tego uprawnien trigger: if arg 1 is not set: if {aukcja::Status} is true: send "&6Aukcja&f:" send "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%" send "&6Przedmiot: &2%{aukcja::Item}%" send "&6Cena: &2%{aukcja::Cena}%" send "&6Kupujacy: &2%{aukcja::Kupujacy}%" send "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%" send "&6Wszelkie pytania z aukcjami kieruj do: &2DrBooker" else: send "&cNie ma zadnej aukcji" send "&6Wszelkie pytania z aukcjami kieruj do: &2DrBooker" if arg 1 is "top" or "top10": set {_num} to size of {aukcja::Pkt::*} loop {_num} times: loop {aukcja::Pkt::*}: {_v.%loop-number%} is not set: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index loop-value is greater than {_v.%loop-number%}: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index remove {_v.%loop-number%} from {aukcja::Pkt::*} loop {_num} times: loop-number is less than or equal to 10: send "%loop-number%. &6%{_n.%loop-number%}% &4(&2%{_v.%loop-number%}%&4)" set {aukcja::Pkt::%{_n.%loop-number%}%} to {_v.%loop-number%} {_num} is less than 10: set {_r} to {_num} loop 10 - {_num} times: add 1 to {_r} send "%{_r}%. &fPusto" if {aukcja::Rekordzistwa} is not set: set {aukcja::Rekordzistwa} to "&fBrak" send "&6Liczby w nawiasach &2(np. &4(&21&4)&2)&6 oznaczaja ilosc aukcji." if arg 1 is "pokaz" or "show": if {aukcja::Status} is true: set {_type} to type of {aukcja::Item} set {_lore} to lore of {aukcja::Item} set {_name} to name of {aukcja::Item} if {_name} is not set: if {_lore} is "": open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player format slot 4 of player with 1 of {_type} to be unstealable else: open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player format slot 4 of player with 1 of {_type} with lore "%{_lore}%" to be unstealable else: if {_lore} is not "": open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player format slot 4 of player with 1 of {_type} named "%{_name}%" with lore "%{_lore}%" to be unstealable else: open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player format slot 4 of player with 1 of {_type} named "%{_name}%" to be unstealable else: send "&cNie trwa zadna aukcja" stop command /kupteraz: permission: aukcja.kupteraz permission message: &cNie masz do tego uprawnien trigger: if {aukcja::Status} is true: if {aukcja::KupTeraz} is not set: if {aukcja::KupTeraz::Status} is "&fNie": send "&cNie ma ceny Kup Teraz" stop else: if player's balance is greater or equal to {aukcja::KupTeraz::Status}: if player is {aukcja::Sprzedajacy}: send "&cNie mozesz kupic wlasnej aukcji" stop else: set {aukcja::Kupujacy} to player set {aukcja::KupTeraz} to player broadcast "&2%player% &6uzyl opcji Kup Teraz" stop else: send "&cNie masz tyle kasy" stop else: send "&cKtos juz uzyl opcji Kup Teraz" stop else: send "&cNie trwa zadna aukcja" stop on skript start: clear {aukcja::Cena} clear {aukcja::Item} clear {aukcja::Item::Name} clear {aukcja::Sprzedajacy} set {aukcja::Kupujacy} to "&fBrak" clear {aukcja::Status} clear {aukcja::KupTeraz} clear {aukcja::KupTeraz::Status} if {aukcja::Rekordowa::Stawka} is not set: set {aukcja::Rekordowa::Stawka} to 0 on skript stop: clear {aukcja::Cena} clear {aukcja::Item} clear {aukcja::Item::Name} clear {aukcja::Sprzedajacy} set {aukcja::Kupujacy} to "&fBrak" clear {aukcja::Status}