Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /wystaw [<number>]:
- 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 "Brak"
- remove {aukcja::Item} from player
- set {aukcja::Sprzedajacy} to player
- set {aukcja::Kupujacy} to "&fBrak"
- set {aukcja::Status} to true
- broadcast "================"
- broadcast " &6Aukcja&f:"
- broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
- broadcast "&6Przedmiot: &2%{aukcja::Item}%"
- broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
- broadcast "&6Cena: &2%{aukcja::Cena}%"
- broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
- broadcast "&6Do konca aukcji: &260 sekund"
- broadcast "================"
- wait 30 second
- broadcast "================"
- broadcast " &6Aukcja&f:"
- broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
- broadcast "&6Przedmiot: &2%{aukcja::Item}%"
- broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
- broadcast "&6Cena: &2%{aukcja::Cena}%"
- broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
- broadcast "&6Do konca aukcji: &230 sekund"
- broadcast "================"
- wait 10 second
- broadcast "================"
- broadcast " &6Aukcja&f:"
- broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
- broadcast "&6Przedmiot: &2%{aukcja::Item}%"
- broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
- broadcast "&6Cena: &2%{aukcja::Cena}%"
- broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
- broadcast "&6Do konca aukcji: &220 sekund"
- broadcast "================"
- wait 10 second
- broadcast "================"
- broadcast " &6Aukcja&f:"
- broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
- broadcast "&6Przedmiot: &2%{aukcja::Item}%"
- broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
- broadcast "&6Cena: &2%{aukcja::Cena}%"
- broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
- 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}
- set {aukcja::Status} to false
- wait 30 second
- clear {aukcja::Status}
- stop
- else:
- 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::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 30 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 30 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 [<number>]:
- permission: aukcja.podbij
- permission message: &cNie masz do tego uprawnien
- trigger:
- if {aukcja::Status} is true:
- 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
- if {aukcja::Status} is false:
- send "&cNie trwa rzadna aukcja"
- stop
- if {aukcja::Status} is not set:
- send "&cNie trwa rzadna aukcja"
- stop
- command /aukcja [<text>]:
- 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 "&6Autor: &2GrimoN"
- else:
- send "&cNie ma rzadnej aukcji"
- send "&6Autor: &2GrimoN"
- 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"
- stop
- command /aukcjaadmin [<text>] [<text>] [<text>]:
- permission: aukcja.admin
- permission message: &cNie masz do tego uprawnien
- aliases: aa, aadmin, aukcjaa
- trigger:
- if arg 1 is "playerblacklist" or "pbl":
- if arg 2 is "add" or "dodaj":
- if arg 3 is set:
- set {_player} to arg 3 parsed as player
- if {aukcja::Blacklist::Player::%{_player}%} is not set:
- set {aukcja::Blacklist::Player::%{_player}%} to true
- broadcast "&4[Aukcje]&6Gracz &2%{_player}% &6zostal dodany na czarna liste."
- stop
- else:
- send "&cTen gracz jest juz na czarnej liscie"
- stop
- else:
- send "&cMusisz podac nick gracza, ktorego chcesz dodac na czarna liste"
- stop
- if arg 2 is "usun" or "remove":
- if arg 3 is set:
- set {_player} to arg 3 parsed as player
- if {aukcja::Blacklist::Player::%{_player}%} is true:
- clear {aukcja::Blacklist::Player::%{_player}%}
- send "&6Gracz &2%{_player}%&6 zostal usuniety z czarnej listy."
- stop
- else:
- send "&cTego gracza nie ma na czarnej liscie"
- stop
- else:
- send "&cMusisz podac nick gracza, ktorego chcesz usunac z czarnej listy"
- stop
- if arg 1 is "itemblacklist" or "ibl":
- if arg 2 is "add" or "dodaj":
- if player's tool is air:
- send "&cNie mozna dodac powietrza na czarna liste"
- stop
- else:
- set {_item} to type of player's tool
- if {aukcja::Blacklist::Item::%{_item}%} is not set:
- set {aukcja::Blacklist::Item::%{_item}%} to true
- send "&6Przedmiot &2%{_item}% &6zostal dodany na czarna liste"
- stop
- else:
- send "&cTen przedmiot jest juz dodany na czarna liste"
- stop
- if arg 2 is "usun" or "remove":
- if player's tool is air:
- send "&cNie mozna usunac powietrza z czarnej listy"
- stop
- else:
- set {_item} to type of player's tool
- if {aukcja::Blacklist::Item::%{_item}%} is true:
- clear {aukcja::Blacklist::Item::%{_item}%}
- send "&6Przedmiot &2%{_item}% &6zostal usuniety z czarnej listy"
- stop
- else:
- send "&cTego przedmiotu nie ma na czarnej liscie"
- 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}
- on skript stop:
- clear {aukcja::Cena}
- clear {aukcja::Item}
- clear {aukcja::Item::Name}
- clear {aukcja::Sprzedajacy}
- set {aukcja::Kupujacy} to "&fBrak"
- clear {aukcja::Status}
Advertisement
Add Comment
Please, Sign In to add comment